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 Details

    • ensureLockOnResource

      void ensureLockOnResource(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback)
      Tries to lock the given resource and returns true on success. If not successful a warning should be displayed.

      Parameters:
      structureId - the structure id of the resource to lock
      callback - 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

      void unlockResource(org.opencms.util.CmsUUID structureId)
      Unlocks the resource if appropriate.

      Parameters:
      structureId - the structure id of the resource to lock