Class DefaultCMSWorkflowActionService
- java.lang.Object
-
- de.hybris.platform.workflow.impl.DefaultWorkflowActionService
-
- de.hybris.platform.cms2.workflow.service.impl.DefaultCMSWorkflowActionService
-
- All Implemented Interfaces:
CMSWorkflowActionService
,WorkflowActionService
public class DefaultCMSWorkflowActionService extends DefaultWorkflowActionService implements CMSWorkflowActionService
Default implementation ofCMSWorkflowActionService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSWorkflowActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResult<WorkflowActionModel>
findAllActiveWorkflowActionsByStatusAndPrincipals(java.util.Set<CronJobStatus> workflowStatuses, java.util.Collection<PrincipalModel> currentPrincipals, PageableData pageableData)
This method finds all the activeWorkflowActionModel
ofAbstractPageModel
attachment types for the given principals and specified workflow statuses.WorkflowDecisionModel
getActionDecisionForCode(WorkflowActionModel action, java.lang.String decisionCode)
Finds theWorkflowDecisionModel
for a givenWorkflowActionModel
that matches the provided decision code.protected CMSWorkflowActionDao
getCmsWorkflowActionDao()
WorkflowActionModel
getWorkflowActionForCode(WorkflowModel workflow, java.lang.String actionCode)
Finds theWorkflowActionModel
for a givenWorkflowModel
that matches the provided action code.void
setCmsWorkflowActionDao(CMSWorkflowActionDao cmsWorkflowActionDao)
-
Methods inherited from class de.hybris.platform.workflow.impl.DefaultWorkflowActionService
complete, createWorkflowAction, disable, getActionForCode, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachments, getAllUserWorkflowActionsWithAttachments, getEndWorkflowActions, getNormalWorkflowActions, getStartWorkflowActions, getWorkflowActionsByType, idle, isActive, isCompleted, isDisabled, isEndedByWorkflow, isUserAssignedPrincipal, setI18nService, setModelService, setTypeService, setUserService, setWorkflowActionDao
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.workflow.WorkflowActionService
complete, createWorkflowAction, disable, getActionForCode, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachments, getAllUserWorkflowActionsWithAttachments, getEndWorkflowActions, getNormalWorkflowActions, getStartWorkflowActions, getWorkflowActionsByType, idle, isActive, isCompleted, isDisabled, isEndedByWorkflow, isUserAssignedPrincipal
-
-
-
-
Method Detail
-
getWorkflowActionForCode
public WorkflowActionModel getWorkflowActionForCode(WorkflowModel workflow, java.lang.String actionCode)
Description copied from interface:CMSWorkflowActionService
Finds theWorkflowActionModel
for a givenWorkflowModel
that matches the provided action code.- Specified by:
getWorkflowActionForCode
in interfaceCMSWorkflowActionService
- Parameters:
workflow
- - theWorkflowModel
actionCode
- - the action code- Returns:
- the
WorkflowActionModel
-
getActionDecisionForCode
public WorkflowDecisionModel getActionDecisionForCode(WorkflowActionModel action, java.lang.String decisionCode)
Description copied from interface:CMSWorkflowActionService
Finds theWorkflowDecisionModel
for a givenWorkflowActionModel
that matches the provided decision code.- Specified by:
getActionDecisionForCode
in interfaceCMSWorkflowActionService
- Parameters:
action
- - theWorkflowActionModel
decisionCode
- - the decision code- Returns:
- the
WorkflowDecisionModel
-
findAllActiveWorkflowActionsByStatusAndPrincipals
public SearchResult<WorkflowActionModel> findAllActiveWorkflowActionsByStatusAndPrincipals(java.util.Set<CronJobStatus> workflowStatuses, java.util.Collection<PrincipalModel> currentPrincipals, PageableData pageableData)
Description copied from interface:CMSWorkflowActionService
This method finds all the activeWorkflowActionModel
ofAbstractPageModel
attachment types for the given principals and specified workflow statuses.- Specified by:
findAllActiveWorkflowActionsByStatusAndPrincipals
in interfaceCMSWorkflowActionService
- Parameters:
workflowStatuses
- - the workflow statuses used to filter the resultcurrentPrincipals
- - the principals for which to find the workflow actions that have active workflow actions to be acted upon.pageableData
- - the pagination object used to set the page index and page size.- Returns:
- the search result object containing the resulting list of
WorkflowActionModel
and the pagination object.
-
getCmsWorkflowActionDao
protected CMSWorkflowActionDao getCmsWorkflowActionDao()
-
setCmsWorkflowActionDao
public void setCmsWorkflowActionDao(CMSWorkflowActionDao cmsWorkflowActionDao)
-
-