Package org.opencms.ui.contextmenu
Class CmsBlockingLockCheck
- java.lang.Object
-
- org.opencms.ui.contextmenu.CmsBlockingLockCheck
-
- All Implemented Interfaces:
I_CmsContextMenuAction
public class CmsBlockingLockCheck extends java.lang.Object implements I_CmsContextMenuAction
A wrapper context menu action which first checks whether the resources for which the action is executed have any children locked by different users.If so, a dialog showing these resources will be displayed; otherwise the wrapped context menu action will be executed.
-
-
Constructor Summary
Constructors Constructor Description CmsBlockingLockCheck(I_CmsContextMenuAction nextAction)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeAction(I_CmsDialogContext context)
Executes this action.java.lang.String
toString()
-
-
-
Constructor Detail
-
CmsBlockingLockCheck
public CmsBlockingLockCheck(I_CmsContextMenuAction nextAction)
Creates a new instance.- Parameters:
nextAction
- the action to execute if we don't have blocking locked resources
-
-
Method Detail
-
executeAction
public void executeAction(I_CmsDialogContext context)
Description copied from interface:I_CmsContextMenuAction
Executes this action.- Specified by:
executeAction
in interfaceI_CmsContextMenuAction
- Parameters:
context
- a context object which provides both a CmsObject as well as information about the context in which the menu item was selected- See Also:
I_CmsContextMenuAction.executeAction(org.opencms.ui.I_CmsDialogContext)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-