Interface I_CmsContextMenuHandler

    • Method Detail

      • ensureLockOnResource

        void ensureLockOnResource​(org.opencms.util.CmsUUID structureId,
                                  I_CmsSimpleCallback<java.lang.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

        java.util.Map<java.lang.String,​I_CmsContextMenuCommandgetContextMenuCommands()
        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

        java.lang.String getContextType()
        Returns the context type.

        Returns:
        the context type
      • unlockResource

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

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