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 Details

    • DefaultCMSWorkflowParticipantService

      public DefaultCMSWorkflowParticipantService()
  • Method Details

    • isWorkflowParticipant

      public boolean isWorkflowParticipant(WorkflowModel workflow)
      Description copied from interface: CMSWorkflowParticipantService
      Determines if the current session user is a participant of the given workflow.
      Specified by:
      isWorkflowParticipant in interface CMSWorkflowParticipantService
      Parameters:
      workflow - - the workflow template containing the list of participants allowed to interact in the workflow
      Returns:
      TRUE when the current user is a participant in the workflow; otherwise FALSE
    • isActiveWorkflowActionParticipant

      public boolean isActiveWorkflowActionParticipant(WorkflowModel workflow)
      Description copied from interface: CMSWorkflowParticipantService
      Determines if the current session user is a participant of an active action of a workflow.
      Specified by:
      isActiveWorkflowActionParticipant in interface CMSWorkflowParticipantService
      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

      public boolean isWorkflowActionParticipant(WorkflowActionModel workflowAction)
      Description copied from interface: CMSWorkflowParticipantService
      Determines if the current session user is a participant of the given workflow.
      Specified by:
      isWorkflowActionParticipant in interface CMSWorkflowParticipantService
      Parameters:
      workflowAction - - the workflow template containing the list of participants allowed to interact in the workflow
      Returns:
      TRUE when the current user is a participant in the workflow action; otherwise FALSE
    • isParticipantForAttachedItems

      public boolean isParticipantForAttachedItems(List<? extends CMSItemModel> cmsItems)
      Description copied from interface: CMSWorkflowParticipantService
      Determines if the current session user is a participant of all workflows containing the given CMS items as attachments.
      Specified by:
      isParticipantForAttachedItems in interface CMSWorkflowParticipantService
      Parameters:
      cmsItems - - the items saved as attachments to a workflow
      Returns:
      TRUE when the current user is a participant in all workflows containing the given items or when the items are not contained in any workflow; otherwise FALSE
    • isActiveWorkflowActionParticipantForAttachmentItems

      public boolean isActiveWorkflowActionParticipantForAttachmentItems(List<? extends CMSItemModel> cmsItems)
      Description copied from interface: CMSWorkflowParticipantService
      Determines if the current session user is a participant of all active actions of the workflows containing the given CMS items as attachments.
      Specified by:
      isActiveWorkflowActionParticipantForAttachmentItems in interface CMSWorkflowParticipantService
      Parameters:
      cmsItems - - the items saved as attachments to a workflow
      Returns:
      TRUE when 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; otherwise FALSE
    • getRelatedPrincipals

      public Collection<PrincipalModel> getRelatedPrincipals(PrincipalModel user)
      Description copied from interface: CMSWorkflowParticipantService
      Finds all principals for the given user. Note that a principal can be a user or a user group.
      Specified by:
      getRelatedPrincipals in interface CMSWorkflowParticipantService
      Parameters:
      user - - the user for whom a list of principals is to be retrieved.
      Returns:
      a list of principals.
    • getCmsWorkflowService

      protected CMSWorkflowService getCmsWorkflowService()
    • setCmsWorkflowService

      public void setCmsWorkflowService(CMSWorkflowService cmsWorkflowService)
    • getUserService

      protected UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)