public interface I_CmsWorkflowManager
限定符和类型 | 方法和说明 |
---|---|
I_CmsPublishResourceFormatter |
createFormatter(CmsObject cms,
CmsWorkflow workflow,
CmsPublishOptions options)
Creates the formatter for formatting the resources to be displayed to the user.
|
CmsWorkflowResponse |
executeAction(CmsObject cms,
CmsWorkflowAction action,
CmsPublishListToken token)
Executes a workflow action for a publish list token instead of a resource list.
|
CmsWorkflowResponse |
executeAction(CmsObject userCms,
CmsWorkflowAction action,
CmsPublishOptions options,
java.util.List<CmsResource> resources)
Executes a workflow action in the context of the current user.
|
java.util.List<CmsProjectBean> |
getManageableProjects(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String> params)
Returns the current user's manageable projects.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Gets the parameters of the workflow manager.
|
CmsPublishListToken |
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.
|
I_CmsVirtualProject |
getRealOrVirtualProject(CmsUUID projectId)
Gets the virtual project object identified by the given id.
|
int |
getResourceLimit()
Gets the resource limit.
|
java.util.List<CmsResource> |
getWorkflowResources(CmsObject cms,
CmsWorkflow workflow,
CmsPublishOptions options)
Returns the resources for the given workflow and project.
|
java.util.Map<java.lang.String,CmsWorkflow> |
getWorkflows(CmsObject cms)
Returns the available workflows for the current user.
|
void |
initialize(CmsObject adminCms)
Initializes this workflow manager instance.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Sets the configuration parameters of the workflow manager.
|
I_CmsPublishResourceFormatter createFormatter(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options)
cms
- the CMS context to useworkflow
- the current workflowoptions
- the publish optionsCmsWorkflowResponse executeAction(CmsObject cms, CmsWorkflowAction action, CmsPublishListToken token) throws CmsException
cms
- the CMS context to useaction
- the action to performtoken
- the publish list token to useCmsException
- if something goes wrongCmsWorkflowResponse executeAction(CmsObject userCms, CmsWorkflowAction action, CmsPublishOptions options, java.util.List<CmsResource> resources) throws CmsException
userCms
- the current user's CMS contextaction
- the workflow actionoptions
- the publish optionsresources
- the resources to be processedCmsException
- if something goes wrongjava.util.List<CmsProjectBean> getManageableProjects(CmsObject cms, java.util.Map<java.lang.String,java.lang.String> params)
cms
- the CMS context to useparams
- the publish parametersjava.util.Map<java.lang.String,java.lang.String> getParameters()
CmsPublishListToken getPublishListToken(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options)
cms
- the CMS context to useworkflow
- the workflowoptions
- the publish optionsI_CmsVirtualProject getRealOrVirtualProject(CmsUUID projectId)
projectId
- the virtual project idint getResourceLimit()
Publish lists which exceed this limit (counted before adding any related resources, siblings etc.) are not displayed to the user.
java.util.List<CmsResource> getWorkflowResources(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options)
cms
- the user cms contextworkflow
- the workflowoptions
- the resource optionsjava.util.Map<java.lang.String,CmsWorkflow> getWorkflows(CmsObject cms)
cms
- the user cms contextvoid initialize(CmsObject adminCms)
adminCms
- the CMS context with admin privilegesvoid setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- the map of configuration parameters