Package org.opencms.workplace.editors
Class CmsPreEditorActionDefinitionXmlContent
java.lang.Object
org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
org.opencms.workplace.editors.CmsPreEditorActionDefinitionXmlContent
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsPreEditorActionDefinition
Pre editor action for XML content resource types, checks if model files are available for the XML content
to create in direct edit mode and shows the selection before opening the editor.
- Since:
- 6.5.4
-
Field Summary
Fields inherited from class org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
m_configuration
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doPreAction
(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.Methods inherited from class org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
addConfigurationParameter, getConfiguration, getResourceType, getResourceTypeName, initConfiguration, setResourceTypeName
-
Constructor Details
-
CmsPreEditorActionDefinitionXmlContent
Constructor, without parameters.
-
-
Method Details
-
doPreAction
public boolean doPreAction(CmsResource resource, CmsDialog dialog, String originalParams) throws Exception Description copied from interface:I_CmsPreEditorActionDefinition
Returns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.- Specified by:
doPreAction
in interfaceI_CmsPreEditorActionDefinition
- Specified by:
doPreAction
in classA_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:
-