public abstract class A_CmsPreEditorActionDefinition extends java.lang.Object implements I_CmsPreEditorActionDefinition
Implements the basic methods to handle the resource type.
限定符和类型 | 字段和说明 |
---|---|
protected CmsParameterConfiguration |
m_configuration
Configuration parameters.
|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
构造器和说明 |
---|
A_CmsPreEditorActionDefinition()
Constructor, without parameters.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter to this parameter configurable class instance.
|
abstract 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.
|
CmsParameterConfiguration |
getConfiguration()
Returns the parameters of this configurable class instance,
or
null if the class does not need any parameters. |
I_CmsResourceType |
getResourceType()
Returns the resource type for which the action should be performed.
|
java.lang.String |
getResourceTypeName()
Returns the resource type name for which the action should be performed.
|
void |
initConfiguration()
Initializes a configuration after all parameters have been added.
|
void |
setResourceTypeName(java.lang.String resourceTypeName)
Sets the resource type name for which the action should be performed.
|
protected CmsParameterConfiguration m_configuration
public A_CmsPreEditorActionDefinition()
public void addConfigurationParameter(java.lang.String paramName, java.lang.String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter
在接口中 I_CmsConfigurationParameterHandler
paramName
- the name of the parameterparamValue
- the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)
public abstract boolean doPreAction(CmsResource resource, CmsDialog dialog, java.lang.String originalParams) throws java.lang.Exception
I_CmsPreEditorActionDefinition
doPreAction
在接口中 I_CmsPreEditorActionDefinition
resource
- the resource to be editeddialog
- the dialog instanceoriginalParams
- the original request parameters as String passed to the editorjava.lang.Exception
- if something goes wrongI_CmsPreEditorActionDefinition.doPreAction(org.opencms.file.CmsResource, org.opencms.workplace.CmsDialog, java.lang.String)
public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandler
null
if the class does not need any parameters.getConfiguration
在接口中 I_CmsConfigurationParameterHandler
null
if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()
public I_CmsResourceType getResourceType()
I_CmsPreEditorActionDefinition
getResourceType
在接口中 I_CmsPreEditorActionDefinition
I_CmsPreEditorActionDefinition.getResourceType()
public java.lang.String getResourceTypeName()
I_CmsPreEditorActionDefinition
getResourceTypeName
在接口中 I_CmsPreEditorActionDefinition
I_CmsPreEditorActionDefinition.getResourceTypeName()
public final void initConfiguration()
I_CmsConfigurationParameterHandler
public void setResourceTypeName(java.lang.String resourceTypeName)
I_CmsPreEditorActionDefinition
setResourceTypeName
在接口中 I_CmsPreEditorActionDefinition
resourceTypeName
- the resource type nameI_CmsPreEditorActionDefinition.setResourceTypeName(java.lang.String)