Interface I_CmsContextMenuHandler
- All Superinterfaces:
I_CmsActionHandler
- All Known Subinterfaces:
I_CmsToolbarHandler
- All Known Implementing Classes:
A_CmsToolbarHandler
,CmsContainerpageHandler
,CmsContextMenuHandler
,CmsDialogContextMenuHandler
,CmsDirectEditToolbarHandler
,CmsGwtDialogExtensionConnector.ContextMenuHandler
,CmsPropertyDialogExtensionConnector.ContextMenuHandler
,CmsResultContextMenuHandler
,CmsSitemapToolbarHandler
Interface for context menu commands.
- Since:
- version 8.0.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureLockOnResource
(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback) Tries to lock the given resource and returnstrue
on success.Returns the available context menu commands as a map by class name.Returns the context type.Returns the editor handler.void
unlockResource
(org.opencms.util.CmsUUID structureId) Unlocks the resource if appropriate.Methods inherited from interface org.opencms.gwt.client.ui.contextmenu.I_CmsActionHandler
leavePage, onSiteOrProjectChange, refreshResource
-
Method Details
-
ensureLockOnResource
void ensureLockOnResource(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback) Tries to lock the given resource and returnstrue
on success. If not successful a warning should be displayed.- Parameters:
structureId
- the structure id of the resource to lockcallback
- the callback to execute
-
getContextMenuCommands
Returns the available context menu commands as a map by class name.- Returns:
- the available context menu commands as a map by class name
-
getContextType
Returns the context type.- Returns:
- the context type
-
getEditorHandler
Returns the editor handler.- Returns:
- the editor handler
-
unlockResource
Unlocks the resource if appropriate.- Parameters:
structureId
- the structure id of the resource to lock
-