Package org.cyclos.impl.system
Interface CustomOperationServiceLocal
-
- All Superinterfaces:
CRUDService<CustomOperationDTO,CustomOperationData,Void>,CRUDServiceLocal<CustomOperation,CustomOperationDTO,CustomOperationData,Void>,CustomOperationService,Service
public interface CustomOperationServiceLocal extends CRUDServiceLocal<CustomOperation,CustomOperationDTO,CustomOperationData,Void>, CustomOperationService
Local interface forCustomOperationService
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ADScript attribute: theBasicAdstatic StringATTR_BULK_ACTIONScript attribute: theBulkActionbeing executedstatic StringATTR_CONTACTScript attribute: theContactstatic StringATTR_CONTACT_INFOScript attribute: theContactInfostatic StringATTR_CONTAINER_CUSTOM_OPERATIONScript attribute: theCustomOperationwhich has actionsstatic StringATTR_CURRENT_PAGEScript attribute: the current page, used when the result type is page resultsstatic StringATTR_CUSTOM_OPERATIONScript attribute: theCustomOperationstatic StringATTR_EXECUTIONScript attribute: theExternalRedirectExecutionbacking anCustomOperationResultType.EXTERNAL_REDIRECTstatic StringATTR_EXPORT_FORMATScript attribute: theExportFormatstatic StringATTR_EXTERNAL_REDIRECT_EXECUTIONAlias toATTR_EXECUTIONstatic StringATTR_FORM_PARAMETERSScript attribute: the form parameters (custom field values)static StringATTR_INPUT_FILEScript attribute: theFileInfofor the uploaded filestatic StringATTR_MENU_ITEMScript attribute: theMenuItemstatic StringATTR_PAGE_CONTEXTScript attribute: the pageContext.static StringATTR_PAGE_SIZEScript attribute: the page size, used when the result type is page resultsstatic StringATTR_PARAMETER_STORAGEScript attribute: Alias for storage.static StringATTR_RECORDScript attribute: theRecordstatic StringATTR_REQUESTScript attribute: theRequestInfoused on external redirect callbackstatic StringATTR_RETURN_URLScript attribute: the URL for the external service to call Cyclos and complete the operation, forCustomOperationResultType.EXTERNAL_REDIRECTstatic StringATTR_SCANNED_QR_CODEScript attribute: the scanned QR-code used to submit the formstatic StringATTR_SKIP_TOTAL_COUNTScript attribute: whether to ignore the total count on searchstatic StringATTR_STORAGEScript attribute: theObjectParameterStorageused on operations of type external redirect, both on first execution and on the callbackstatic StringATTR_TRANSFERScript attribute: theTransferstatic StringATTR_USERScript attribute: theUser
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SimpleEntitygetRelatedEntity(RunCustomOperationDataParams params)Returns the entity associated with the givenRunCustomOperationDataParamsSimpleEntitygetRelatedEntity(RunCustomOperationDTO params)Returns the entity associated with the givenRunCustomOperationDTOList<CustomOperation>getRunnableCustomOperationsForSystem()Lists the custom operations with scope =CustomOperationScope.SYSTEMthe logged user can runList<CustomOperation>getRunnableOperationsForAd(BasicAd ad)Returns the custom operations that can be run by the logged user over the given adList<CustomOperation>getRunnableOperationsForBulkActions()Returns the custom operations that can be run by the logged user as a bulk actionList<CustomOperation>getRunnableOperationsForContact(Contact contact)Returns the custom operations that can be run by the logged user over the given contactList<CustomOperation>getRunnableOperationsForContactInfo(ContactInfo contactInfo)Returns the custom operations that can be run by the logged user over the given public contact informationList<CustomOperation>getRunnableOperationsForMenu()Returns the custom operations which can be run as menu items for the current sessionList<CustomOperation>getRunnableOperationsForRecord(Record record)Returns the custom operations that can be run by the logged user over the given recordList<CustomOperation>getRunnableOperationsForTransfer(Transfer transfer)Returns the custom operations that can be run by the logged user over the given transferList<CustomOperation>getRunnableOperationsForUser(User user)Returns the custom operations that can be run by the logged user as a user actionList<CustomOperation>listAllowedToRun()Lists all custom operations the logged user is allowed to runList<CustomOperation>listByScope(CustomOperationScope... scopes)Lists the custom operations for the given scopesList<CustomOperation>listOperationsRedirectingTo(CustomOperation internal)Lists the custom operations that use the given internal operation, either as row action or as actionList<CustomOperation>listWithRecordScope(RecordTypeNature... natures)Lists the custom operations with scope record configured with at least one record type of the given nature(s)CustomOperationresolveCustomOperation(SimpleEntity entity, CustomOperationVO customOperation)Returns the custom operation associated to the given entity if corresponds.BulkActionUserResultrunForBulkAction(BulkActionUser user)Runs the custom operation for a bulk action executionvoidsetMissingFormParameters(RunnableCustomOperationVO runnable, CustomOperation customOperation)Sets toRunnableCustomOperationVO.MISSING_REQUIRED_PARAMETERSthe list of all required parameter and toRunnableCustomOperationVO.MISSING_OPTIONAL_PARAMETERSall the optional ones from the givenCustomOperation-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.system.CustomOperationService
getConfirmationPasswordInputForRun, getRunData, getRunnableOperationsForAd, getRunnableOperationsForContact, getRunnableOperationsForContactInfo, getRunnableOperationsForRecord, getRunnableOperationsForSystem, getRunnableOperationsForTransfer, getRunnableOperationsForUser, list, run, runExternalRedirectCallback, saveOrder
-
-
-
-
Field Detail
-
ATTR_CUSTOM_OPERATION
static final String ATTR_CUSTOM_OPERATION
Script attribute: theCustomOperation- See Also:
- Constant Field Values
-
ATTR_CONTAINER_CUSTOM_OPERATION
static final String ATTR_CONTAINER_CUSTOM_OPERATION
Script attribute: theCustomOperationwhich has actions- See Also:
- Constant Field Values
-
ATTR_USER
static final String ATTR_USER
Script attribute: theUser- See Also:
- Constant Field Values
-
ATTR_CONTACT
static final String ATTR_CONTACT
Script attribute: theContact- See Also:
- Constant Field Values
-
ATTR_CONTACT_INFO
static final String ATTR_CONTACT_INFO
Script attribute: theContactInfo- See Also:
- Constant Field Values
-
ATTR_AD
static final String ATTR_AD
Script attribute: theBasicAd- See Also:
- Constant Field Values
-
ATTR_RECORD
static final String ATTR_RECORD
Script attribute: theRecord- See Also:
- Constant Field Values
-
ATTR_TRANSFER
static final String ATTR_TRANSFER
Script attribute: theTransfer- See Also:
- Constant Field Values
-
ATTR_MENU_ITEM
static final String ATTR_MENU_ITEM
Script attribute: theMenuItem- See Also:
- Constant Field Values
-
ATTR_INPUT_FILE
static final String ATTR_INPUT_FILE
Script attribute: theFileInfofor the uploaded file- See Also:
- Constant Field Values
-
ATTR_FORM_PARAMETERS
static final String ATTR_FORM_PARAMETERS
Script attribute: the form parameters (custom field values)- See Also:
- Constant Field Values
-
ATTR_SCANNED_QR_CODE
static final String ATTR_SCANNED_QR_CODE
Script attribute: the scanned QR-code used to submit the form- See Also:
- Constant Field Values
-
ATTR_REQUEST
static final String ATTR_REQUEST
Script attribute: theRequestInfoused on external redirect callback- See Also:
- Constant Field Values
-
ATTR_BULK_ACTION
static final String ATTR_BULK_ACTION
Script attribute: theBulkActionbeing executed- See Also:
- Constant Field Values
-
ATTR_STORAGE
static final String ATTR_STORAGE
Script attribute: theObjectParameterStorageused on operations of type external redirect, both on first execution and on the callback- See Also:
- Constant Field Values
-
ATTR_PARAMETER_STORAGE
static final String ATTR_PARAMETER_STORAGE
Script attribute: Alias for storage. Kept for compatibility.- See Also:
- Constant Field Values
-
ATTR_RETURN_URL
static final String ATTR_RETURN_URL
Script attribute: the URL for the external service to call Cyclos and complete the operation, forCustomOperationResultType.EXTERNAL_REDIRECT- See Also:
- Constant Field Values
-
ATTR_EXECUTION
static final String ATTR_EXECUTION
Script attribute: theExternalRedirectExecutionbacking anCustomOperationResultType.EXTERNAL_REDIRECT- See Also:
- Constant Field Values
-
ATTR_EXTERNAL_REDIRECT_EXECUTION
static final String ATTR_EXTERNAL_REDIRECT_EXECUTION
Alias toATTR_EXECUTION- See Also:
- Constant Field Values
-
ATTR_CURRENT_PAGE
static final String ATTR_CURRENT_PAGE
Script attribute: the current page, used when the result type is page results- See Also:
- Constant Field Values
-
ATTR_PAGE_SIZE
static final String ATTR_PAGE_SIZE
Script attribute: the page size, used when the result type is page results- See Also:
- Constant Field Values
-
ATTR_SKIP_TOTAL_COUNT
static final String ATTR_SKIP_TOTAL_COUNT
Script attribute: whether to ignore the total count on search- See Also:
- Constant Field Values
-
ATTR_PAGE_CONTEXT
static final String ATTR_PAGE_CONTEXT
Script attribute: the pageContext. This is actually deprecated, but is there to not break old scripts- See Also:
- Constant Field Values
-
ATTR_EXPORT_FORMAT
static final String ATTR_EXPORT_FORMAT
Script attribute: theExportFormat- See Also:
- Constant Field Values
-
-
Method Detail
-
getRelatedEntity
SimpleEntity getRelatedEntity(RunCustomOperationDataParams params)
Returns the entity associated with the givenRunCustomOperationDataParams
-
getRelatedEntity
SimpleEntity getRelatedEntity(RunCustomOperationDTO params)
Returns the entity associated with the givenRunCustomOperationDTO
-
getRunnableCustomOperationsForSystem
List<CustomOperation> getRunnableCustomOperationsForSystem()
Lists the custom operations with scope =CustomOperationScope.SYSTEMthe logged user can run
-
getRunnableOperationsForAd
List<CustomOperation> getRunnableOperationsForAd(BasicAd ad)
Returns the custom operations that can be run by the logged user over the given ad
-
getRunnableOperationsForBulkActions
List<CustomOperation> getRunnableOperationsForBulkActions()
Returns the custom operations that can be run by the logged user as a bulk action
-
getRunnableOperationsForContact
List<CustomOperation> getRunnableOperationsForContact(Contact contact)
Returns the custom operations that can be run by the logged user over the given contact
-
getRunnableOperationsForContactInfo
List<CustomOperation> getRunnableOperationsForContactInfo(ContactInfo contactInfo)
Returns the custom operations that can be run by the logged user over the given public contact information
-
getRunnableOperationsForMenu
List<CustomOperation> getRunnableOperationsForMenu()
Returns the custom operations which can be run as menu items for the current session
-
getRunnableOperationsForRecord
List<CustomOperation> getRunnableOperationsForRecord(Record record)
Returns the custom operations that can be run by the logged user over the given record
-
getRunnableOperationsForTransfer
List<CustomOperation> getRunnableOperationsForTransfer(Transfer transfer)
Returns the custom operations that can be run by the logged user over the given transfer
-
getRunnableOperationsForUser
List<CustomOperation> getRunnableOperationsForUser(User user)
Returns the custom operations that can be run by the logged user as a user action
-
listAllowedToRun
List<CustomOperation> listAllowedToRun()
Lists all custom operations the logged user is allowed to run
-
listByScope
List<CustomOperation> listByScope(CustomOperationScope... scopes)
Lists the custom operations for the given scopes
-
listOperationsRedirectingTo
List<CustomOperation> listOperationsRedirectingTo(CustomOperation internal)
Lists the custom operations that use the given internal operation, either as row action or as action
-
listWithRecordScope
List<CustomOperation> listWithRecordScope(RecordTypeNature... natures)
Lists the custom operations with scope record configured with at least one record type of the given nature(s)
-
resolveCustomOperation
CustomOperation resolveCustomOperation(SimpleEntity entity, CustomOperationVO customOperation)
Returns the custom operation associated to the given entity if corresponds. Otherwise, the conversion of the given customOperationVO
-
runForBulkAction
BulkActionUserResult runForBulkAction(BulkActionUser user)
Runs the custom operation for a bulk action execution
-
setMissingFormParameters
void setMissingFormParameters(RunnableCustomOperationVO runnable, CustomOperation customOperation)
Sets toRunnableCustomOperationVO.MISSING_REQUIRED_PARAMETERSthe list of all required parameter and toRunnableCustomOperationVO.MISSING_OPTIONAL_PARAMETERSall the optional ones from the givenCustomOperation
-
-