Package org.opencms.ui.client
Class CmsGwtDialogExtensionConnector.ContextMenuHandler
java.lang.Object
org.opencms.ui.client.CmsGwtDialogExtensionConnector.ContextMenuHandler
- All Implemented Interfaces:
I_CmsActionHandler
,I_CmsContextMenuHandler
- Enclosing class:
- CmsGwtDialogExtensionConnector
public class CmsGwtDialogExtensionConnector.ContextMenuHandler
extends Object
implements I_CmsContextMenuHandler
Context menu handler.
-
Constructor Summary
-
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
Leaves the current page calling the target URI.void
onSiteOrProjectChange
(String sitePath, String serverLink) Called when site and or project have been changed.void
refreshResource
(org.opencms.util.CmsUUID structureId) Reloads the resource edited.void
unlockResource
(org.opencms.util.CmsUUID structureId) Unlocks the resource if appropriate.
-
Constructor Details
-
ContextMenuHandler
public ContextMenuHandler()
-
-
Method Details
-
ensureLockOnResource
public void ensureLockOnResource(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback) Description copied from interface:I_CmsContextMenuHandler
Tries to lock the given resource and returnstrue
on success. If not successful a warning should be displayed.- Specified by:
ensureLockOnResource
in interfaceI_CmsContextMenuHandler
- Parameters:
structureId
- the structure id of the resource to lockcallback
- the callback to execute- See Also:
-
getContextMenuCommands
Description copied from interface:I_CmsContextMenuHandler
Returns the available context menu commands as a map by class name.- Specified by:
getContextMenuCommands
in interfaceI_CmsContextMenuHandler
- Returns:
- the available context menu commands as a map by class name
- See Also:
-
getContextType
Description copied from interface:I_CmsContextMenuHandler
Returns the context type.- Specified by:
getContextType
in interfaceI_CmsContextMenuHandler
- Returns:
- the context type
- See Also:
-
getEditorHandler
Description copied from interface:I_CmsContextMenuHandler
Returns the editor handler.- Specified by:
getEditorHandler
in interfaceI_CmsContextMenuHandler
- Returns:
- the editor handler
- See Also:
-
leavePage
Description copied from interface:I_CmsActionHandler
Leaves the current page calling the target URI.- Specified by:
leavePage
in interfaceI_CmsActionHandler
- Parameters:
targetUri
- the target URI- See Also:
-
onSiteOrProjectChange
Description copied from interface:I_CmsActionHandler
Called when site and or project have been changed.- Specified by:
onSiteOrProjectChange
in interfaceI_CmsActionHandler
- Parameters:
sitePath
- the site path to the target resourceserverLink
- the server link to the resource- See Also:
-
refreshResource
Description copied from interface:I_CmsActionHandler
Reloads the resource edited.- Specified by:
refreshResource
in interfaceI_CmsActionHandler
- Parameters:
structureId
- the structure id of the resource to lock- See Also:
-
unlockResource
Description copied from interface:I_CmsContextMenuHandler
Unlocks the resource if appropriate.- Specified by:
unlockResource
in interfaceI_CmsContextMenuHandler
- Parameters:
structureId
- the structure id of the resource to lock- See Also:
-