Class DefaultCMSWorkflowParticipantService

    • Constructor Detail

      • DefaultCMSWorkflowParticipantService

        public DefaultCMSWorkflowParticipantService()
    • Method Detail

      • 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​(java.util.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
      • setCmsWorkflowService

        public void setCmsWorkflowService​(CMSWorkflowService cmsWorkflowService)
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)