Package org.opencms.xml.templatemapper
Class CmsTemplateMapperAction
- java.lang.Object
-
- org.opencms.ui.actions.A_CmsWorkplaceAction
-
- org.opencms.xml.templatemapper.CmsTemplateMapperAction
-
- All Implemented Interfaces:
I_CmsWorkplaceAction,I_CmsHasMenuItemVisibility
public class CmsTemplateMapperAction extends A_CmsWorkplaceAction
Action for replacing formatters in pages according to a template mapper configuration.
-
-
Constructor Summary
Constructors Constructor Description CmsTemplateMapperAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteAction(I_CmsDialogContext context)Executes the action.java.lang.StringgetId()The action id.protected java.lang.StringgetTitleKey()Returns the workplace message bundle key of the action title.CmsMenuItemVisibilityModegetVisibility(CmsObject cms, java.util.List<CmsResource> resources)Gets the visibility for the current resource and CMS context.-
Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, getTitle, getVisibility, hasBlockingLocks, isActive, openDialog, openDialog
-
-
-
-
Constructor Detail
-
CmsTemplateMapperAction
public CmsTemplateMapperAction()
-
-
Method Detail
-
executeAction
public void executeAction(I_CmsDialogContext context)
Description copied from interface:I_CmsWorkplaceActionExecutes the action.- Parameters:
context- the current dialog context.- See Also:
I_CmsWorkplaceAction.executeAction(org.opencms.ui.I_CmsDialogContext)
-
getId
public java.lang.String getId()
Description copied from interface:I_CmsWorkplaceActionThe action id.- Returns:
- the action id
- See Also:
I_CmsWorkplaceAction.getId()
-
getVisibility
public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current resource and CMS context.- Parameters:
cms- the CMS context to useresources- the list of resources to check- Returns:
- the visibility
- See Also:
I_CmsHasMenuItemVisibility.getVisibility(org.opencms.file.CmsObject, java.util.List)
-
getTitleKey
protected java.lang.String 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:
A_CmsWorkplaceAction.getTitleKey()
-
-