Class AbstractUserMgrContextMenuItemBuilder
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractUserMgrContextMenuItemBuilder
-
- All Implemented Interfaces:
ContextMenuItemBuilder
- Direct Known Subclasses:
UserMgrDelete
,UserMgrEdit
,UserMgrNew
,UserMgrNewGroup
,UserMgrNewUser
public abstract class AbstractUserMgrContextMenuItemBuilder extends ContextMenu.DefaultContextMenuItemBuilder
- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractUserMgrContextMenuItemBuilder(Shortcut definition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ContextMenuItem
createItem(TransformContext context)
Creates and populates a ContextMenuItem based on the information in theShortcut
used as defintion.protected abstract WebEvent
getEvent(TransformContext context)
protected java.lang.String
getJSCode(TransformContext context)
protected WebObjectInfo
getObjectInfo(TransformContext context)
protected UserEntitiesTransform
getTransform(TransformContext context)
protected abstract boolean
isActionEnabled(TransformContext context)
boolean
isItemAvailable(TransformContext context)
Returnstrue
if the underlyingShortcut
used as definition is available (based on the features defined on the <shortcut> xml.-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript
-
-
-
-
Constructor Detail
-
AbstractUserMgrContextMenuItemBuilder
public AbstractUserMgrContextMenuItemBuilder(Shortcut definition)
-
-
Method Detail
-
isItemAvailable
public boolean isItemAvailable(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilder
Returns
true
if the underlyingShortcut
used as definition is available (based on the features defined on the <shortcut> xml.If this method returns
false
the context-menu-item should not be included as part of the available options in the menu.- Specified by:
isItemAvailable
in interfaceContextMenuItemBuilder
- Overrides:
isItemAvailable
in classContextMenu.DefaultContextMenuItemBuilder
- Parameters:
context
- TransformContext with context information.- Returns:
true
if the context-menu-item is available and should be included.
-
getTransform
protected UserEntitiesTransform getTransform(TransformContext context)
-
getJSCode
protected java.lang.String getJSCode(TransformContext context)
-
createItem
public ContextMenuItem createItem(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilder
Creates and populates a ContextMenuItem based on the information in theShortcut
used as defintion.- Specified by:
createItem
in interfaceContextMenuItemBuilder
- Overrides:
createItem
in classContextMenu.DefaultContextMenuItemBuilder
- Parameters:
context
- TransformContext with context information.- Returns:
- a new instance of a
ContextMenuItem
.
-
getObjectInfo
protected WebObjectInfo getObjectInfo(TransformContext context)
-
getEvent
protected abstract WebEvent getEvent(TransformContext context)
-
isActionEnabled
protected abstract boolean isActionEnabled(TransformContext context)
-
-