Class FolderExportLink
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractFolderContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.FolderExportLink
-
- All Implemented Interfaces:
ContextMenuItemBuilder
- Direct Known Subclasses:
FolderShareLink
public class FolderExportLink extends AbstractFolderContextMenuItemBuilder
-
-
Constructor Summary
Constructors Constructor Description FolderExportLink(Shortcut definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkCSRF()
protected int
getContextMenuFlag()
Indicates the abstract class which is the context-menu flag associated with this item.protected WebEvent
getEvent(TransformContext context)
Provides the abstract class with the corresponding event to execution with this item.java.lang.String
getItemKey(TransformContext context)
Retrieve the key will be set on the context menu item corresponding to the context input.protected java.lang.String
getJSCode(TransformContext context)
Returns the javascript code to use with this context-menu-itemprotected java.lang.String
getJsCommand()
protected boolean
isActionEnabled(TransformContext context)
Indicates the abstract class if the corresponding action of this item is available.boolean
isItemAvailable(TransformContext context)
Returns true if the corresponding flag is on and the the corresponding action is available.-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractFolderContextMenuItemBuilder
createItem, getLinkForMenuItem, getObjectInfo, getTarget, getTransform, iframeParam
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getScript
-
-
-
-
Constructor Detail
-
FolderExportLink
public FolderExportLink(Shortcut definition)
-
-
Method Detail
-
isItemAvailable
public boolean isItemAvailable(TransformContext context)
Returns true if the corresponding flag is on and the the corresponding action is available.- Specified by:
isItemAvailable
in interfaceContextMenuItemBuilder
- Overrides:
isItemAvailable
in classAbstractFolderContextMenuItemBuilder
- Parameters:
context
- TransformContext with context information.- Returns:
true
if the context-menu-item is available and should be included.
-
isActionEnabled
protected boolean isActionEnabled(TransformContext context)
Description copied from class:AbstractFolderContextMenuItemBuilder
Indicates the abstract class if the corresponding action of this item is available.- Specified by:
isActionEnabled
in classAbstractFolderContextMenuItemBuilder
-
checkCSRF
protected boolean checkCSRF()
-
getEvent
protected WebEvent getEvent(TransformContext context)
Description copied from class:AbstractFolderContextMenuItemBuilder
Provides the abstract class with the corresponding event to execution with this item.- Overrides:
getEvent
in classAbstractFolderContextMenuItemBuilder
-
getJSCode
protected java.lang.String getJSCode(TransformContext context)
Description copied from class:AbstractFolderContextMenuItemBuilder
Returns the javascript code to use with this context-menu-item- Overrides:
getJSCode
in classAbstractFolderContextMenuItemBuilder
-
getJsCommand
protected java.lang.String getJsCommand()
-
getItemKey
public java.lang.String getItemKey(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilder
Retrieve 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:
getItemKey
in interfaceContextMenuItemBuilder
- Overrides:
getItemKey
in 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
null
will 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.
-
getContextMenuFlag
protected int getContextMenuFlag()
Description copied from class:AbstractFolderContextMenuItemBuilder
Indicates the abstract class which is the context-menu flag associated with this item.- Specified by:
getContextMenuFlag
in classAbstractFolderContextMenuItemBuilder
-
-