public abstract class A_CmsEditFileAction extends A_CmsWorkplaceAction implements I_CmsADEAction
Used within the ADE context only.
| Constructor and Description |
|---|
A_CmsEditFileAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeAction(I_CmsDialogContext context)
Executes the action.
|
protected boolean |
existsFile(I_CmsDialogContext context)
Checks whether the file specified by the file param and the given context exists and is visible.
|
java.lang.String |
getCommandClassName()
Returns the client side command to execute.
|
protected abstract java.lang.String |
getFileParam()
Returns the file parameter.
|
java.lang.String |
getJspPath()
Returns the optional dialog JSP.
|
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Returns the optional command parameters.
|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
java.util.List<CmsResource> resources)
Gets the visibility for the current resource and CMS context.
|
boolean |
isAdeSupported()
Returns whether the ADE context is supported.
|
getDialogTitle, getDialogTitleKey, getTitle, getTitleKey, getVisibility, hasBlockingLocks, isActive, openDialogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic A_CmsEditFileAction()
public void executeAction(I_CmsDialogContext context)
I_CmsWorkplaceActionexecuteAction in interface I_CmsWorkplaceActioncontext - the current dialog context.I_CmsWorkplaceAction.executeAction(org.opencms.ui.I_CmsDialogContext)public java.lang.String getCommandClassName()
I_CmsADEActiongetCommandClassName in interface I_CmsADEActionI_CmsADEAction.getCommandClassName()public java.lang.String getJspPath()
I_CmsADEActiongetJspPath in interface I_CmsADEActionI_CmsADEAction.getJspPath()public java.util.Map<java.lang.String,java.lang.String> getParams()
I_CmsADEActiongetParams in interface I_CmsADEActionI_CmsADEAction.getParams()public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
I_CmsHasMenuItemVisibilitygetVisibility in interface I_CmsHasMenuItemVisibilitycms - the CMS context to useresources - the list of resources to checkI_CmsHasMenuItemVisibility.getVisibility(org.opencms.file.CmsObject, java.util.List)public boolean isAdeSupported()
I_CmsADEActionisAdeSupported in interface I_CmsADEActiontrue in case the ADE context is supportedI_CmsADEAction.isAdeSupported()protected boolean existsFile(I_CmsDialogContext context)
context - the dialog contexttrue in case the file exists and is visibleprotected abstract java.lang.String getFileParam()