Class FolderSimpleAction
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractFolderContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.FolderSimpleAction
-
- All Implemented Interfaces:
ContextMenuItemBuilder
- Direct Known Subclasses:
EditWithAppschema,FolderEdit,FolderNew,FolderOpen,FolderQueryBuilder,FolderRun,RepublishCube,ScheduleCube
public abstract class FolderSimpleAction extends AbstractFolderContextMenuItemBuilder
- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description FolderSimpleAction(Shortcut definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetContextMenuFlag()Indicates the abstract class which is the context-menu flag associated with this item.protected WebEventgetEvent(TransformContext context)Provides the abstract class with the corresponding event to execution with this item.java.lang.StringgetItemKey(TransformContext context)Retrieve the key will be set on the context menu item corresponding to the context input.protected java.lang.StringgetJSCodeForInvalidSFConfiguration(TransformContext context)Returns JS code to display a message if the salesforce is not properly configured and the object being handled is a salesforce cubeprotected java.lang.StringgetParentFolderId(TransformContext context, WebObjectInfo object)protected java.lang.StringiframeParam(FolderViewTransform transform)protected booleanisDDACube(WebObjectInfo object)protected booleanisEmmaCube(WebObjectInfo object)protected booleanisEmmaDICube(WebObjectInfo object)protected booleanisFolder(WebObjectInfo object)protected booleanisOldDICube(WebObjectInfo object)protected booleanisSparkCube(WebObjectInfo object)-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractFolderContextMenuItemBuilder
createItem, getJSCode, getLinkForMenuItem, getObjectInfo, getTarget, getTransform, isActionEnabled, isItemAvailable
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getScript
-
-
-
-
Constructor Detail
-
FolderSimpleAction
public FolderSimpleAction(Shortcut definition)
-
-
Method Detail
-
getContextMenuFlag
protected int getContextMenuFlag()
Description copied from class:AbstractFolderContextMenuItemBuilderIndicates the abstract class which is the context-menu flag associated with this item.- Specified by:
getContextMenuFlagin classAbstractFolderContextMenuItemBuilder
-
getEvent
protected WebEvent getEvent(TransformContext context)
Description copied from class:AbstractFolderContextMenuItemBuilderProvides the abstract class with the corresponding event to execution with this item.- Overrides:
getEventin classAbstractFolderContextMenuItemBuilder
-
iframeParam
protected java.lang.String iframeParam(FolderViewTransform transform)
- Overrides:
iframeParamin classAbstractFolderContextMenuItemBuilder
-
getItemKey
public java.lang.String getItemKey(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilderRetrieve the key will be set on the context menu item corresponding to the context input. The context menu item generated based on the same context input will have the same key. This method can be called by context menu before callingContextMenu.DefaultContextMenuItemBuilder.createItem(TransformContext)to check whether the item already exists in the menu to avoid unnecessary creation.- Specified by:
getItemKeyin interfaceContextMenuItemBuilder- Overrides:
getItemKeyin classAbstractFolderContextMenuItemBuilder- Parameters:
context- The context for context menu item creation- Returns:
- The key for the context menu item if created using the context. By default
nullwill be return, which means build has no knowledge about the item key. Then context menu item may generate the key by itself. For builder who wants avoid unnecessary item creation should take advantage of this method by overriding with a meaningful implementation.
-
isFolder
protected boolean isFolder(WebObjectInfo object)
-
isEmmaCube
protected boolean isEmmaCube(WebObjectInfo object)
-
isEmmaDICube
protected boolean isEmmaDICube(WebObjectInfo object)
-
isSparkCube
protected boolean isSparkCube(WebObjectInfo object)
-
isOldDICube
protected boolean isOldDICube(WebObjectInfo object)
-
isDDACube
protected boolean isDDACube(WebObjectInfo object)
-
getJSCodeForInvalidSFConfiguration
protected java.lang.String getJSCodeForInvalidSFConfiguration(TransformContext context)
Returns JS code to display a message if the salesforce is not properly configured and the object being handled is a salesforce cube- Parameters:
context-- Returns:
- JS code to display a message if the salesforce is not properly configured and the object being handled is a salesforce cube
-
getParentFolderId
protected java.lang.String getParentFolderId(TransformContext context, WebObjectInfo object)
- Parameters:
context-object-- Returns:
-
-