Class DefaultCMSWorkflowParticipantService
java.lang.Object
de.hybris.platform.cms2.workflow.service.impl.DefaultCMSWorkflowParticipantService
- All Implemented Interfaces:
CMSWorkflowParticipantService
public class DefaultCMSWorkflowParticipantService
extends Object
implements CMSWorkflowParticipantService
Default implementation of
CMSWorkflowParticipantService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSWorkflowServiceFinds all principals for the given user.protected UserServicebooleanDetermines if the current session user is a participant of an active action of a workflow.booleanisActiveWorkflowActionParticipantForAttachmentItems(List<? extends CMSItemModel> cmsItems) Determines if the current session user is a participant of all active actions of the workflows containing the given CMS items as attachments.booleanisParticipantForAttachedItems(List<? extends CMSItemModel> cmsItems) Determines if the current session user is a participant of all workflows containing the given CMS items as attachments.booleanisWorkflowActionParticipant(WorkflowActionModel workflowAction) Determines if the current session user is a participant of the given workflow.booleanisWorkflowParticipant(WorkflowModel workflow) Determines if the current session user is a participant of the given workflow.voidsetCmsWorkflowService(CMSWorkflowService cmsWorkflowService) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultCMSWorkflowParticipantService
public DefaultCMSWorkflowParticipantService()
-
-
Method Details
-
isWorkflowParticipant
Description copied from interface:CMSWorkflowParticipantServiceDetermines if the current session user is a participant of the given workflow.- Specified by:
isWorkflowParticipantin interfaceCMSWorkflowParticipantService- Parameters:
workflow- - the workflow template containing the list of participants allowed to interact in the workflow- Returns:
TRUEwhen the current user is a participant in the workflow; otherwiseFALSE
-
isActiveWorkflowActionParticipant
Description copied from interface:CMSWorkflowParticipantServiceDetermines if the current session user is a participant of an active action of a workflow.- Specified by:
isActiveWorkflowActionParticipantin interfaceCMSWorkflowParticipantService- Parameters:
workflow- the workflow to verify- Returns:
- TRUE if the workflow has active action and the user is a participant of this action, FALSE otherwise.
-
isWorkflowActionParticipant
Description copied from interface:CMSWorkflowParticipantServiceDetermines if the current session user is a participant of the given workflow.- Specified by:
isWorkflowActionParticipantin interfaceCMSWorkflowParticipantService- Parameters:
workflowAction- - the workflow template containing the list of participants allowed to interact in the workflow- Returns:
TRUEwhen the current user is a participant in the workflow action; otherwiseFALSE
-
isParticipantForAttachedItems
Description copied from interface:CMSWorkflowParticipantServiceDetermines if the current session user is a participant of all workflows containing the given CMS items as attachments.- Specified by:
isParticipantForAttachedItemsin interfaceCMSWorkflowParticipantService- Parameters:
cmsItems- - the items saved as attachments to a workflow- Returns:
TRUEwhen the current user is a participant in all workflows containing the given items or when the items are not contained in any workflow; otherwiseFALSE
-
isActiveWorkflowActionParticipantForAttachmentItems
public boolean isActiveWorkflowActionParticipantForAttachmentItems(List<? extends CMSItemModel> cmsItems) Description copied from interface:CMSWorkflowParticipantServiceDetermines if the current session user is a participant of all active actions of the workflows containing the given CMS items as attachments.- Specified by:
isActiveWorkflowActionParticipantForAttachmentItemsin interfaceCMSWorkflowParticipantService- Parameters:
cmsItems- - the items saved as attachments to a workflow- Returns:
TRUEwhen the current user is a participant of all active actions of all workflows containing the given items or when the items are not contained in any workflow; otherwiseFALSE
-
getRelatedPrincipals
Description copied from interface:CMSWorkflowParticipantServiceFinds all principals for the given user. Note that a principal can be a user or a user group.- Specified by:
getRelatedPrincipalsin interfaceCMSWorkflowParticipantService- Parameters:
user- - the user for whom a list of principals is to be retrieved.- Returns:
- a list of principals.
-
getCmsWorkflowService
-
setCmsWorkflowService
-
getUserService
-
setUserService
-