Package org.opencms.workflow
Class A_CmsWorkflowManager
java.lang.Object
org.opencms.workflow.A_CmsWorkflowManager
- All Implemented Interfaces:
I_CmsWorkflowManager
- Direct Known Subclasses:
CmsDefaultWorkflowManager
Abstract class which provides common functionality for workflow managers, like initialization of
the configuration parameters.
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmsObject
The CMS context with admin privileges.The map of configuration parameters. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Locale
Gets the locale to use for a given CMS context.protected String
getParameter
(String key, String defaultValue) Gets the configuration parameter for a given key, and if it doesn't find one, returns a default value.Gets the parameters of the workflow manager.void
initialize
(CmsObject adminCms) Initializes this workflow manager instance.void
setParameters
(Map<String, String> parameters) Sets the configuration parameters of the workflow manager.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.workflow.I_CmsWorkflowManager
createFormatter, executeAction, executeAction, getManageableProjects, getPublishListToken, getRealOrVirtualProject, getResourceLimit, getWorkflowForWorkflowProject, getWorkflowResources, getWorkflows
-
Field Details
-
m_adminCms
The CMS context with admin privileges. -
m_parameters
The map of configuration parameters.
-
-
Constructor Details
-
A_CmsWorkflowManager
public A_CmsWorkflowManager()
-
-
Method Details
-
getParameters
Gets the parameters of the workflow manager.- Specified by:
getParameters
in interfaceI_CmsWorkflowManager
- Returns:
- the configuration parameters of the workflow manager
-
initialize
Description copied from interface:I_CmsWorkflowManager
Initializes this workflow manager instance.- Specified by:
initialize
in interfaceI_CmsWorkflowManager
- Parameters:
adminCms
- the CMS context with admin privileges- See Also:
-
setParameters
Sets the configuration parameters of the workflow manager.- Specified by:
setParameters
in interfaceI_CmsWorkflowManager
- Parameters:
parameters
- the map of configuration parameters
-
getLocale
Gets the locale to use for a given CMS context.- Parameters:
userCms
- the CMS context- Returns:
- the locale to use
-
getParameter
Gets the configuration parameter for a given key, and if it doesn't find one, returns a default value.- Parameters:
key
- the configuration keydefaultValue
- the default value to use when the configuration entry isn't found- Returns:
- the configuration value
-