Package org.opencms.ui.actions
Class CmsPrefillPageAction
java.lang.Object
org.opencms.ui.actions.A_CmsWorkplaceAction
org.opencms.ui.actions.CmsPrefillPageAction
- All Implemented Interfaces:
I_CmsADEAction,I_CmsWorkplaceAction,I_CmsHasMenuItemVisibility
Action class for filling in container page content from a 'prefill template' configured via
the sitemap configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage key for the context menu - this is not in a message bundle class because it is not defined by default. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(I_CmsDialogContext context) Executes the action.Returns the client side command to execute.getId()The action id.Returns the optional dialog JSP.Returns the optional command parameters.Returns the localized action title.protected StringReturns the workplace message bundle key of the action title.getVisibility(CmsObject cms, List<CmsResource> resources) Gets the visibility for the current resource and CMS context.getVisibility(I_CmsDialogContext context) Gets the visibility for the current dialog context.booleanReturns whether the ADE context is supported.Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialog
-
Field Details
-
GUI_EXPLORER_CONTEXT_PREFILL_PAGE_0
Message key for the context menu - this is not in a message bundle class because it is not defined by default.- See Also:
-
-
Constructor Details
-
CmsPrefillPageAction
public CmsPrefillPageAction()
-
-
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:
-
getId
Description copied from interface:I_CmsWorkplaceActionThe action id.- Specified by:
getIdin interfaceI_CmsWorkplaceAction- Returns:
- the action id
- 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:
-
getTitle
Description copied from interface:I_CmsWorkplaceActionReturns the localized action title.- Specified by:
getTitlein interfaceI_CmsWorkplaceAction- Overrides:
getTitlein classA_CmsWorkplaceAction- Parameters:
locale- the user's workplace locale- Returns:
- the action title
- 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:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current dialog context.- Specified by:
getVisibilityin interfaceI_CmsHasMenuItemVisibility- Overrides:
getVisibilityin classA_CmsWorkplaceAction- Parameters:
context- the dialog context- 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:
-
getTitleKey
Description copied from class:A_CmsWorkplaceActionReturns the workplace message bundle key of the action title.- Specified by:
getTitleKeyin classA_CmsWorkplaceAction- Returns:
- the title message bundle key
- See Also:
-