Package org.opencms.workplace.editors
Class A_CmsPreEditorActionDefinition
java.lang.Object
org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler,I_CmsPreEditorActionDefinition
- Direct Known Subclasses:
CmsPreEditorActionDefinitionXmlContent
public abstract class A_CmsPreEditorActionDefinition
extends Object
implements I_CmsPreEditorActionDefinition
Defines an action to be performed before the workplace editor is opened for the first time.
Implements the basic methods to handle the resource type.
- Since:
- 6.5.4
-
Field Summary
FieldsFields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationParameter(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.abstract booleandoPreAction(CmsResource resource, CmsDialog dialog, String originalParams) Returns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.Returns the parameters of this configurable class instance, ornullif the class does not need any parameters.Returns the resource type for which the action should be performed.Returns the resource type name for which the action should be performed.final voidInitializes a configuration after all parameters have been added.voidsetResourceTypeName(String resourceTypeName) Sets the resource type name for which the action should be performed.
-
Field Details
-
m_configuration
Configuration parameters.
-
-
Constructor Details
-
A_CmsPreEditorActionDefinition
public A_CmsPreEditorActionDefinition()Constructor, without parameters.
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandlerAdds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameterin interfaceI_CmsConfigurationParameterHandler- Parameters:
paramName- the name of the parameterparamValue- the value for the parameter- See Also:
-
doPreAction
public abstract boolean doPreAction(CmsResource resource, CmsDialog dialog, String originalParams) throws Exception Description copied from interface:I_CmsPreEditorActionDefinitionReturns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.- Specified by:
doPreActionin interfaceI_CmsPreEditorActionDefinition- Parameters:
resource- the resource to be editeddialog- the dialog instanceoriginalParams- the original request parameters as String passed to the editor- Returns:
- true if an action has to be performed before opening the editor
- Throws:
Exception- if something goes wrong- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerReturns the parameters of this configurable class instance, ornullif the class does not need any parameters.- Specified by:
getConfigurationin interfaceI_CmsConfigurationParameterHandler- Returns:
- the parameters of this configurable class instance,
or
nullif the class does not need any parameters - See Also:
-
getResourceType
Description copied from interface:I_CmsPreEditorActionDefinitionReturns the resource type for which the action should be performed.- Specified by:
getResourceTypein interfaceI_CmsPreEditorActionDefinition- Returns:
- the resource type
- See Also:
-
getResourceTypeName
Description copied from interface:I_CmsPreEditorActionDefinitionReturns the resource type name for which the action should be performed.- Specified by:
getResourceTypeNamein interfaceI_CmsPreEditorActionDefinition- Returns:
- the resource type name
- See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerInitializes a configuration after all parameters have been added.- Specified by:
initConfigurationin interfaceI_CmsConfigurationParameterHandler- See Also:
-
setResourceTypeName
Description copied from interface:I_CmsPreEditorActionDefinitionSets the resource type name for which the action should be performed.- Specified by:
setResourceTypeNamein interfaceI_CmsPreEditorActionDefinition- Parameters:
resourceTypeName- the resource type name- See Also:
-