|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.workflow.A_CmsWorkflowManager
org.opencms.workflow.CmsDefaultWorkflowManager
public class CmsDefaultWorkflowManager
The default implementation of the workflow manager interface, which offers only publish functionality.
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_FORCE_PUBLISH
The forced publish workflow action. |
static java.lang.String |
ACTION_PUBLISH
The publish workflow action. |
static java.lang.String |
WORKFLOW_PUBLISH
The name for the publish action. |
| Fields inherited from class org.opencms.workflow.A_CmsWorkflowManager |
|---|
m_adminCms, m_parameters |
| Constructor Summary | |
|---|---|
CmsDefaultWorkflowManager()
|
|
| Method Summary | |
|---|---|
protected CmsWorkflowResponse |
actionForcePublish(CmsObject userCms,
java.util.List<CmsResource> resources)
The implementation of the "forcepublish" workflow action. |
protected CmsWorkflowResponse |
actionPublish(CmsObject userCms,
CmsPublishOptions options,
java.util.List<CmsResource> resources)
The implementation of the "publish" workflow action. |
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.lang.String |
getLabel(CmsObject cms,
java.lang.String key)
Gets the localized label for a given CMS context and key. |
java.util.List<CmsPublishResource> |
getWorkflowPublishResources(CmsObject cms,
CmsWorkflow workflow,
CmsPublishOptions options)
Returns the publish resource beans for the given workflow and project. |
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. |
| Methods inherited from class org.opencms.workflow.A_CmsWorkflowManager |
|---|
getLocale, getParameter, getParameters, initialize, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACTION_FORCE_PUBLISH
public static final java.lang.String ACTION_PUBLISH
public static final java.lang.String WORKFLOW_PUBLISH
| Constructor Detail |
|---|
public CmsDefaultWorkflowManager()
| Method Detail |
|---|
public CmsWorkflowResponse executeAction(CmsObject userCms,
CmsWorkflowAction action,
CmsPublishOptions options,
java.util.List<CmsResource> resources)
throws CmsException
I_CmsWorkflowManager
userCms - the current user's CMS contextaction - the workflow actionoptions - the publish optionsresources - the resources to be processed
CmsException - if something goes wrongI_CmsWorkflowManager.executeAction(org.opencms.file.CmsObject, org.opencms.ade.publish.shared.CmsWorkflowAction, org.opencms.ade.publish.shared.CmsPublishOptions, java.util.List)
public java.lang.String getLabel(CmsObject cms,
java.lang.String key)
cms - the CMS contextkey - the localization key
public java.util.List<CmsPublishResource> getWorkflowPublishResources(CmsObject cms,
CmsWorkflow workflow,
CmsPublishOptions options)
I_CmsWorkflowManager
cms - the user cms contextworkflow - the workflowoptions - the resource options
I_CmsWorkflowManager.getWorkflowPublishResources(org.opencms.file.CmsObject, org.opencms.ade.publish.shared.CmsWorkflow, org.opencms.ade.publish.shared.CmsPublishOptions)
public java.util.List<CmsResource> getWorkflowResources(CmsObject cms,
CmsWorkflow workflow,
CmsPublishOptions options)
I_CmsWorkflowManager
cms - the user cms contextworkflow - the workflowoptions - the resource options
I_CmsWorkflowManager.getWorkflowResources(org.opencms.file.CmsObject, org.opencms.ade.publish.shared.CmsWorkflow, org.opencms.ade.publish.shared.CmsPublishOptions)public java.util.Map<java.lang.String,CmsWorkflow> getWorkflows(CmsObject cms)
I_CmsWorkflowManager
cms - the user cms context
I_CmsWorkflowManager.getWorkflows(org.opencms.file.CmsObject)
protected CmsWorkflowResponse actionForcePublish(CmsObject userCms,
java.util.List<CmsResource> resources)
throws CmsException
userCms - the user CMS contextresources - the resources which the action should process
CmsException - if something goes wrong
protected CmsWorkflowResponse actionPublish(CmsObject userCms,
CmsPublishOptions options,
java.util.List<CmsResource> resources)
throws CmsException
userCms - the user CMS contextoptions - the publish optionsresources - the resources which the action should process
CmsException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||