Package org.opencms.workflow
Interface I_CmsWorkflowManager
- All Known Implementing Classes:
A_CmsWorkflowManager
,CmsDefaultWorkflowManager
,CmsExtendedWorkflowManager
public interface I_CmsWorkflowManager
Workflow manager interface.
-
Method Summary
Modifier and TypeMethodDescriptioncreateFormatter
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) Creates the formatter for formatting the resources to be displayed to the user.executeAction
(CmsObject cms, CmsWorkflowAction action, CmsPublishListToken token) Executes a workflow action for a publish list token instead of a resource list.executeAction
(CmsObject userCms, CmsWorkflowAction action, CmsPublishOptions options, List<CmsResource> resources) Executes a workflow action in the context of the current user.getManageableProjects
(CmsObject cms, Map<String, String> params) Returns the current user's manageable projects.Gets the parameters of the workflow manager.getPublishListToken
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) Gets a publish list token for the given parameters which can be used later to reconstruct the publish list.getRealOrVirtualProject
(CmsUUID projectId) Gets the virtual project object identified by the given id.int
Gets the resource limit.getWorkflowForWorkflowProject
(CmsUUID projectId) Gets the workflow id which should be used for a given workflow project.getWorkflowResources
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options, boolean canOverride, boolean ignoreLimit) Returns the resources for the given workflow and project.getWorkflows
(CmsObject cms) Returns the available workflows for the current user.void
initialize
(CmsObject adminCms) Initializes this workflow manager instance.void
setParameters
(Map<String, String> parameters) Sets the configuration parameters of the workflow manager.
-
Method Details
-
getManageableProjects
Returns the current user's manageable projects.- Parameters:
cms
- the CMS context to useparams
- 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
-
getRealOrVirtualProject
Gets the virtual project object identified by the given id.- Parameters:
projectId
- the virtual project id- Returns:
- the virtual project object
-
getResourceLimit
int 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
-
getWorkflows
Returns the available workflows for the current user.- Parameters:
cms
- the user cms context- Returns:
- the available workflows
-
initialize
Initializes this workflow manager instance.- Parameters:
adminCms
- the CMS context with admin privileges
-
setParameters
Sets the configuration parameters of the workflow manager.- Parameters:
parameters
- the map of configuration parameters