Class WorkflowTasksComponent

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.workflow.WorkflowTasksComponent
All Implemented Interfaces:
Component, Configurable, LogEnabled, Serviceable, ThreadSafe
Direct Known Subclasses:
AbstractOdfWorkflowTasksComponent, WorkflowTasksComponent

Component for saxing tasks specific to an user.
The algorithm is the following :
  • First, we get all granted sites for the user with the right manager.
  • If there is at least one site allowed, we get all workflows associated with the granted sites.
  • Then for each step of each task from the configuration, we get all workflows where this step is in current steps and where the workflow is contains in the previous list.
  • For each workflow matching the previous conditions we test if the user has all the rights associated with the step (from the configuration) and then we get the content from this workflow.
  • Finally, for each content, we sax its first page in order to access it directly from an URL.