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
public class CmsPreEditorActionDefinitionXmlContent extends A_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
Constructors Constructor Description CmsPreEditorActionDefinitionXmlContent()
Constructor, without parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doPreAction(CmsResource resource, CmsDialog dialog, java.lang.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 Detail
-
CmsPreEditorActionDefinitionXmlContent
public CmsPreEditorActionDefinitionXmlContent()
Constructor, without parameters.
-
-
Method Detail
-
doPreAction
public boolean doPreAction(CmsResource resource, CmsDialog dialog, java.lang.String originalParams) throws java.lang.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:
java.lang.Exception
- if something goes wrong- See Also:
I_CmsPreEditorActionDefinition.doPreAction(org.opencms.file.CmsResource, org.opencms.workplace.CmsDialog, java.lang.String)
-
-