Package de.hybris.platform.workflow.impl
Class DefaultWorkflowActionService
java.lang.Object
de.hybris.platform.workflow.impl.DefaultWorkflowActionService
- All Implemented Interfaces:
WorkflowActionService
- Direct Known Subclasses:
DefaultCMSWorkflowActionService
Default implementation of
WorkflowActionService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomplete(WorkflowActionModel action) Completes actioncreateWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow) Creates workflow action based on template and attach it to workflowdisable(WorkflowActionModel action) Disable actiongetActionForCode(WorkflowModel workflow, String code) getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType) Returns workflow actions with attachment that match type passed as a parametergetAllUserWorkflowActionsWithAttachment(String attachmentTypeCodeOrClassName) Returns workflow actions with attachment that match type or code passed as a parametergetAllUserWorkflowActionsWithAttachments(List<String> attachments) Returns workflow actions with attachment that match types passedgetAllUserWorkflowActionsWithAttachments(List<String> attachments, Collection<WorkflowActionStatus> actionStatuses) Returns workflow actions with attachment that match types passed and statusesgetEndWorkflowActions(WorkflowModel wfModel) Returns ended workflow actionsgetNormalWorkflowActions(WorkflowModel wfModel) Returns normal workflow actionsgetStartWorkflowActions(WorkflowModel wfModel) Returns start workflow actionsgetWorkflowActionsByType(WorkflowActionType type, WorkflowModel wfModel) Returns workflow actions by typeidle(WorkflowActionModel action) Idles actionbooleanisActive(WorkflowActionModel action) Returns true if action is activebooleanisCompleted(WorkflowActionModel action) Returns true if action is completedbooleanisDisabled(WorkflowActionModel action) Returns true if action is disabledbooleanisEndedByWorkflow(WorkflowActionModel action) Returns true if action is ended by a workdlowbooleanReturns true if user is assigned to actionvoidsetI18nService(I18NService i18nService) voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService) voidsetUserService(UserService userService) voidsetWorkflowActionDao(WorkflowActionDao workflowActionDao)
-
Constructor Details
-
DefaultWorkflowActionService
public DefaultWorkflowActionService()
-
-
Method Details
-
getAllUserWorkflowActionsWithAttachment
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(String attachmentTypeCodeOrClassName) Description copied from interface:WorkflowActionServiceReturns workflow actions with attachment that match type or code passed as a parameter- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowActionService- Parameters:
attachmentTypeCodeOrClassName- attachment typecode or class name
-
getAllUserWorkflowActionsWithAttachment
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType) Description copied from interface:WorkflowActionServiceReturns workflow actions with attachment that match type passed as a parameter- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowActionService- Parameters:
attachmentType- attachment type
-
getAllUserWorkflowActionsWithAttachments
Description copied from interface:WorkflowActionServiceReturns workflow actions with attachment that match types passed- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowActionService- Parameters:
attachments- attachment types
-
getAllUserWorkflowActionsWithAttachments
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachments, Collection<WorkflowActionStatus> actionStatuses) Description copied from interface:WorkflowActionServiceReturns workflow actions with attachment that match types passed and statuses- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowActionService- Parameters:
attachments- attachment typesactionStatuses- statuses that must match
-
isCompleted
Description copied from interface:WorkflowActionServiceReturns true if action is completed- Specified by:
isCompletedin interfaceWorkflowActionService- Parameters:
action- to be checked
-
createWorkflowAction
public WorkflowActionModel createWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow) Description copied from interface:WorkflowActionServiceCreates workflow action based on template and attach it to workflow- Specified by:
createWorkflowActionin interfaceWorkflowActionService- Parameters:
template- action templateworkflow- to which action will be attached to- Returns:
- created action
-
isUserAssignedPrincipal
Description copied from interface:WorkflowActionServiceReturns true if user is assigned to action- Specified by:
isUserAssignedPrincipalin interfaceWorkflowActionService- Returns:
- true if user is assigned to action, false otherwise
-
getStartWorkflowActions
Description copied from interface:WorkflowActionServiceReturns start workflow actions- Specified by:
getStartWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getNormalWorkflowActions
Description copied from interface:WorkflowActionServiceReturns normal workflow actions- Specified by:
getNormalWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getEndWorkflowActions
Description copied from interface:WorkflowActionServiceReturns ended workflow actions- Specified by:
getEndWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getWorkflowActionsByType
public List<WorkflowActionModel> getWorkflowActionsByType(WorkflowActionType type, WorkflowModel wfModel) Description copied from interface:WorkflowActionServiceReturns workflow actions by type- Specified by:
getWorkflowActionsByTypein interfaceWorkflowActionService- Parameters:
type- action typewfModel- to which actions belongs to
-
isActive
Description copied from interface:WorkflowActionServiceReturns true if action is active- Specified by:
isActivein interfaceWorkflowActionService- Parameters:
action- to be checked
-
isEndedByWorkflow
Description copied from interface:WorkflowActionServiceReturns true if action is ended by a workdlow- Specified by:
isEndedByWorkflowin interfaceWorkflowActionService- Parameters:
action- to be checked
-
isDisabled
Description copied from interface:WorkflowActionServiceReturns true if action is disabled- Specified by:
isDisabledin interfaceWorkflowActionService- Parameters:
action- to be checked
-
disable
Description copied from interface:WorkflowActionServiceDisable action- Specified by:
disablein interfaceWorkflowActionService- Parameters:
action- to be disabled
-
complete
Description copied from interface:WorkflowActionServiceCompletes action- Specified by:
completein interfaceWorkflowActionService- Parameters:
action- to be completed
-
idle
Description copied from interface:WorkflowActionServiceIdles action- Specified by:
idlein interfaceWorkflowActionService- Parameters:
action- to be idled
-
getActionForCode
- Specified by:
getActionForCodein interfaceWorkflowActionService
-
setModelService
- Parameters:
modelService- the modelService to set
-
setTypeService
- Parameters:
typeService- the typeService to set
-
setUserService
- Parameters:
userService- the userService to set
-
setI18nService
- Parameters:
i18nService- the i18nService to set
-
setWorkflowActionDao
- Parameters:
workflowActionDao- the workflowActionDao to set
-