Interface I_CmsWorkflowManager

All Known Implementing Classes:
A_CmsWorkflowManager, CmsDefaultWorkflowManager, CmsExtendedWorkflowManager

public interface I_CmsWorkflowManager
Workflow manager interface.

  • Method Details

    • createFormatter

      Creates the formatter for formatting the resources to be displayed to the user.

      Parameters:
      cms - the CMS context to use
      workflow - the current workflow
      options - the publish options
      Returns:
      the publish resource formatter to use
    • executeAction

      Executes a workflow action for a publish list token instead of a resource list.

      Parameters:
      cms - the CMS context to use
      action - the action to perform
      token - the publish list token to use
      Returns:
      the workflow response
      Throws:
      CmsException - if something goes wrong
    • executeAction

      Executes a workflow action in the context of the current user.

      Parameters:
      userCms - the current user's CMS context
      action - the workflow action
      options - the publish options
      resources - the resources to be processed
      Returns:
      the workflow response for the executed action
      Throws:
      CmsException - if something goes wrong
    • getManageableProjects

      Returns the current user's manageable projects.

      Parameters:
      cms - the CMS context to use
      params - the publish parameters
      Returns:
      the current user's manageable projects
    • getParameters

      Gets the parameters of the workflow manager.

      Returns:
      the configuration parameters of the workflow manager
    • getPublishListToken

      Gets a publish list token for the given parameters which can be used later to reconstruct the publish list.

      Parameters:
      cms - the CMS context to use
      workflow - the workflow
      options - the publish options
      Returns:
      the publish list token
    • getRealOrVirtualProject

      Gets the virtual project object identified by the given id.

      Parameters:
      projectId - the virtual project id
      Returns:
      the virtual project object
    • getResourceLimit

      Gets the resource limit.

      Publish lists which exceed this limit (counted before adding any related resources, siblings etc.) are not displayed to the user.

      Returns:
      the resource limit
    • getWorkflowForWorkflowProject

      Gets the workflow id which should be used for a given workflow project.

      Parameters:
      projectId - the project id
      Returns:
      the workflow id for the project
    • getWorkflowResources

      CmsWorkflowResources getWorkflowResources(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options, boolean canOverride, boolean ignoreLimit)
      Returns the resources for the given workflow and project.

      Parameters:
      cms - the user cms context
      workflow - the workflow
      options - the resource options
      canOverride - flag to indicate whether the workflow manager should be able to override the selected workflow
      ignoreLimit - true if the workflow manager's resource limit should be ignored
      Returns:
      the workflow resources
    • getWorkflows

      Returns the available workflows for the current user.

      Parameters:
      cms - the user cms context
      Returns:
      the available workflows
    • initialize

      void initialize(CmsObject adminCms)
      Initializes this workflow manager instance.

      Parameters:
      adminCms - the CMS context with admin privileges
    • setParameters

      void setParameters(Map<String,String> parameters)
      Sets the configuration parameters of the workflow manager.

      Parameters:
      parameters - the map of configuration parameters