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
public class DefaultWorkflowActionService extends java.lang.Object implements WorkflowActionService
Default implementation ofWorkflowActionService
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowActionModelcomplete(WorkflowActionModel action)Completes actionWorkflowActionModelcreateWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow)Creates workflow action based on template and attach it to workflowWorkflowActionModeldisable(WorkflowActionModel action)Disable actionWorkflowActionModelgetActionForCode(WorkflowModel workflow, java.lang.String code)java.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType)Returns workflow actions with attachment that match type passed as a parameterjava.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentTypeCodeOrClassName)Returns workflow actions with attachment that match type or code passed as a parameterjava.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments)Returns workflow actions with attachment that match types passedjava.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments, java.util.Collection<WorkflowActionStatus> actionStatuses)Returns workflow actions with attachment that match types passed and statusesjava.util.List<WorkflowActionModel>getEndWorkflowActions(WorkflowModel wfModel)Returns ended workflow actionsjava.util.List<WorkflowActionModel>getNormalWorkflowActions(WorkflowModel wfModel)Returns normal workflow actionsjava.util.List<WorkflowActionModel>getStartWorkflowActions(WorkflowModel wfModel)Returns start workflow actionsjava.util.List<WorkflowActionModel>getWorkflowActionsByType(WorkflowActionType type, WorkflowModel wfModel)Returns workflow actions by typeWorkflowActionModelidle(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 workdlowbooleanisUserAssignedPrincipal(WorkflowActionModel action)Returns true if user is assigned to actionvoidsetI18nService(I18NService i18nService)voidsetModelService(ModelService modelService)voidsetTypeService(TypeService typeService)voidsetUserService(UserService userService)voidsetWorkflowActionDao(WorkflowActionDao workflowActionDao)
-
-
-
Method Detail
-
getAllUserWorkflowActionsWithAttachment
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.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 java.util.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
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments)
Description copied from interface:WorkflowActionServiceReturns workflow actions with attachment that match types passed- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowActionService- Parameters:
attachments- attachment types
-
getAllUserWorkflowActionsWithAttachments
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments, java.util.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
public boolean isCompleted(WorkflowActionModel action)
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
public boolean isUserAssignedPrincipal(WorkflowActionModel action)
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
public java.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel wfModel)
Description copied from interface:WorkflowActionServiceReturns start workflow actions- Specified by:
getStartWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getNormalWorkflowActions
public java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
Description copied from interface:WorkflowActionServiceReturns normal workflow actions- Specified by:
getNormalWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getEndWorkflowActions
public java.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
Description copied from interface:WorkflowActionServiceReturns ended workflow actions- Specified by:
getEndWorkflowActionsin interfaceWorkflowActionService- Parameters:
wfModel- to which actions belongs to
-
getWorkflowActionsByType
public java.util.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
public boolean isActive(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceReturns true if action is active- Specified by:
isActivein interfaceWorkflowActionService- Parameters:
action- to be checked
-
isEndedByWorkflow
public boolean isEndedByWorkflow(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceReturns true if action is ended by a workdlow- Specified by:
isEndedByWorkflowin interfaceWorkflowActionService- Parameters:
action- to be checked
-
isDisabled
public boolean isDisabled(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceReturns true if action is disabled- Specified by:
isDisabledin interfaceWorkflowActionService- Parameters:
action- to be checked
-
disable
public WorkflowActionModel disable(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceDisable action- Specified by:
disablein interfaceWorkflowActionService- Parameters:
action- to be disabled
-
complete
public WorkflowActionModel complete(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceCompletes action- Specified by:
completein interfaceWorkflowActionService- Parameters:
action- to be completed
-
idle
public WorkflowActionModel idle(WorkflowActionModel action)
Description copied from interface:WorkflowActionServiceIdles action- Specified by:
idlein interfaceWorkflowActionService- Parameters:
action- to be idled
-
getActionForCode
public WorkflowActionModel getActionForCode(WorkflowModel workflow, java.lang.String code)
- Specified by:
getActionForCodein interfaceWorkflowActionService
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
setTypeService
public void setTypeService(TypeService typeService)
- Parameters:
typeService- the typeService to set
-
setUserService
public void setUserService(UserService userService)
- Parameters:
userService- the userService to set
-
setI18nService
public void setI18nService(I18NService i18nService)
- Parameters:
i18nService- the i18nService to set
-
setWorkflowActionDao
public void setWorkflowActionDao(WorkflowActionDao workflowActionDao)
- Parameters:
workflowActionDao- the workflowActionDao to set
-
-