Package org.opencms.ui.actions
Class CmsLockAction
java.lang.Object
org.opencms.ui.actions.A_CmsWorkplaceAction
org.opencms.ui.actions.CmsLockAction
- All Implemented Interfaces:
I_CmsWorkplaceAction
,I_CmsHasMenuItemVisibility
Action to lock a folder if it isn't already locked, with a dialog asking to confirm your choice
if the folder contains resources locked by other users.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAction
(I_CmsDialogContext context) Executes the action.getId()
The action id.protected String
Returns 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.Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, getTitle, getVisibility, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialog
-
Field Details
-
ACTION_ID
The action id.- See Also:
-
-
Constructor Details
-
CmsLockAction
public CmsLockAction()
-
-
Method Details
-
executeAction
Description copied from interface:I_CmsWorkplaceAction
Executes the action.- Parameters:
context
- the current dialog context.- See Also:
-
getId
Description copied from interface:I_CmsWorkplaceAction
The action id.- Returns:
- the action id
- See Also:
-
getVisibility
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:
-
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:
-