|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.workplace.editors.A_CmsPreEditorActionDefinition
public abstract class A_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.
| Field Summary | |
|---|---|
protected CmsParameterConfiguration |
m_configuration
Configuration parameters. |
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
A_CmsPreEditorActionDefinition()
Constructor, without parameters. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CmsParameterConfiguration m_configuration
| Constructor Detail |
|---|
public A_CmsPreEditorActionDefinition()
| Method Detail |
|---|
public void addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter in interface I_CmsConfigurationParameterHandlerparamName - 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 in interface I_CmsPreEditorActionDefinitionresource - the resource to be editeddialog - the dialog instanceoriginalParams - the original request parameters as String passed to the editor
java.lang.Exception - if something goes wrongI_CmsPreEditorActionDefinition.doPreAction(org.opencms.file.CmsResource, org.opencms.workplace.CmsDialog, java.lang.String)public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandlernull if the class does not need any parameters.
getConfiguration in interface I_CmsConfigurationParameterHandlernull if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()public I_CmsResourceType getResourceType()
I_CmsPreEditorActionDefinition
getResourceType in interface I_CmsPreEditorActionDefinitionI_CmsPreEditorActionDefinition.getResourceType()public java.lang.String getResourceTypeName()
I_CmsPreEditorActionDefinition
getResourceTypeName in interface I_CmsPreEditorActionDefinitionI_CmsPreEditorActionDefinition.getResourceTypeName()public final void initConfiguration()
I_CmsConfigurationParameterHandler
initConfiguration in interface I_CmsConfigurationParameterHandlerI_CmsConfigurationParameterHandler.initConfiguration()public void setResourceTypeName(java.lang.String resourceTypeName)
I_CmsPreEditorActionDefinition
setResourceTypeName in interface I_CmsPreEditorActionDefinitionresourceTypeName - the resource type nameI_CmsPreEditorActionDefinition.setResourceTypeName(java.lang.String)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||