Package org.opencms.ui.actions
Class A_CmsEditFileAction
java.lang.Object
org.opencms.ui.actions.A_CmsWorkplaceAction
org.opencms.ui.actions.A_CmsEditFileAction
- All Implemented Interfaces:
I_CmsADEAction,I_CmsWorkplaceAction,I_CmsHasMenuItemVisibility
- Direct Known Subclasses:
CmsEditContentAction
Action to edit a file given by the file param.
Used within the ADE context only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(I_CmsDialogContext context) Executes the action.protected booleanexistsFile(I_CmsDialogContext context) Checks whether the file specified by the file param and the given context exists and is visible.Returns the client side command to execute.protected abstract StringReturns the file parameter.Returns the optional dialog JSP.Returns the optional command parameters.getVisibility(CmsObject cms, List<CmsResource> resources) Gets the visibility for the current resource and CMS context.booleanReturns whether the ADE context is supported.Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, getTitle, getTitleKey, getVisibility, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.ui.actions.I_CmsWorkplaceAction
getId
-
Constructor Details
-
A_CmsEditFileAction
public A_CmsEditFileAction()
-
-
Method Details
-
executeAction
Description copied from interface:I_CmsWorkplaceActionExecutes the action.- Specified by:
executeActionin interfaceI_CmsWorkplaceAction- Parameters:
context- the current dialog context.- See Also:
-
getCommandClassName
Description copied from interface:I_CmsADEActionReturns the client side command to execute.- Specified by:
getCommandClassNamein interfaceI_CmsADEAction- Returns:
- the client side command
- See Also:
-
getJspPath
Description copied from interface:I_CmsADEActionReturns the optional dialog JSP.- Specified by:
getJspPathin interfaceI_CmsADEAction- Returns:
- the dialog JSP
- See Also:
-
getParams
Description copied from interface:I_CmsADEActionReturns the optional command parameters.- Specified by:
getParamsin interfaceI_CmsADEAction- Returns:
- the command parameters
- See Also:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current resource and CMS context.- Specified by:
getVisibilityin interfaceI_CmsHasMenuItemVisibility- Parameters:
cms- the CMS context to useresources- the list of resources to check- Returns:
- the visibility
- See Also:
-
isAdeSupported
Description copied from interface:I_CmsADEActionReturns whether the ADE context is supported.- Specified by:
isAdeSupportedin interfaceI_CmsADEAction- Returns:
truein case the ADE context is supported- See Also:
-
existsFile
Checks whether the file specified by the file param and the given context exists and is visible.- Parameters:
context- the dialog context- Returns:
truein case the file exists and is visible
-
getFileParam
Returns the file parameter.- Returns:
- parameter of the file to edit
-