Package org.opencms.ui.actions
Class CmsUserInfoDialogAction
- java.lang.Object
-
- org.opencms.ui.actions.A_CmsWorkplaceAction
-
- org.opencms.ui.actions.CmsUserInfoDialogAction
-
- All Implemented Interfaces:
I_CmsWorkplaceAction
,I_CmsHasMenuItemVisibility
public class CmsUserInfoDialogAction extends A_CmsWorkplaceAction
User info dialog action, used only for sitemap and page editor toolbar.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_ID
The action id.
-
Constructor Summary
Constructors Constructor Description CmsUserInfoDialogAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeAction(I_CmsDialogContext context)
Executes the action.java.lang.String
getDialogTitle()
Gets the title to use for the dialog.java.lang.String
getId()
The action id.java.lang.String
getTitle(java.util.Locale locale)
Returns the localized action title.protected java.lang.String
getTitleKey()
Returns the workplace message bundle key of the action title.CmsMenuItemVisibilityMode
getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
Gets the visibility for the current resource and CMS context.CmsMenuItemVisibilityMode
getVisibility(I_CmsDialogContext context)
Gets the visibility for the current dialog context.-
Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitleKey, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialog
-
-
-
-
Field Detail
-
ACTION_ID
public static final java.lang.String ACTION_ID
The action id.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsUserInfoDialogAction
public CmsUserInfoDialogAction()
-
-
Method Detail
-
executeAction
public void executeAction(I_CmsDialogContext context)
Description copied from interface:I_CmsWorkplaceAction
Executes the action.- Parameters:
context
- the current dialog context.- See Also:
I_CmsWorkplaceAction.executeAction(org.opencms.ui.I_CmsDialogContext)
-
getDialogTitle
public java.lang.String getDialogTitle()
Description copied from class:A_CmsWorkplaceAction
Gets the title to use for the dialog.- Overrides:
getDialogTitle
in classA_CmsWorkplaceAction
- Returns:
- the title to use for the dialog
- See Also:
A_CmsWorkplaceAction.getDialogTitle()
-
getId
public java.lang.String getId()
Description copied from interface:I_CmsWorkplaceAction
The action id.- Returns:
- the action id
- See Also:
I_CmsWorkplaceAction.getId()
-
getTitle
public java.lang.String getTitle(java.util.Locale locale)
Description copied from interface:I_CmsWorkplaceAction
Returns the localized action title.- Specified by:
getTitle
in interfaceI_CmsWorkplaceAction
- Overrides:
getTitle
in classA_CmsWorkplaceAction
- Parameters:
locale
- the user's workplace locale- Returns:
- the action title
- See Also:
A_CmsWorkplaceAction.getTitle(java.util.Locale)
-
getVisibility
public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
Description copied from interface:I_CmsHasMenuItemVisibility
Gets 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)
-
getVisibility
public CmsMenuItemVisibilityMode getVisibility(I_CmsDialogContext context)
Description copied from interface:I_CmsHasMenuItemVisibility
Gets the visibility for the current dialog context.- Specified by:
getVisibility
in interfaceI_CmsHasMenuItemVisibility
- Overrides:
getVisibility
in classA_CmsWorkplaceAction
- Parameters:
context
- the dialog context- Returns:
- the visibility
- See Also:
I_CmsHasMenuItemVisibility.getVisibility(org.opencms.ui.I_CmsDialogContext)
-
getTitleKey
protected java.lang.String getTitleKey()
Description copied from class:A_CmsWorkplaceAction
Returns the workplace message bundle key of the action title.- Specified by:
getTitleKey
in classA_CmsWorkplaceAction
- Returns:
- the title message bundle key
- See Also:
A_CmsWorkplaceAction.getTitleKey()
-
-