Class FolderViewTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
-
- com.microstrategy.web.app.transforms.AbstractFolderTransform
-
- com.microstrategy.web.app.transforms.FolderViewTransform
-
- All Implemented Interfaces:
AppTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
AdminFolderViewTransform
,FolderSearchResultsXHTMLTransform
,FolderSummaryViewTransform
,FolderTreeTransform
,FolderViewWidgetTransform
,FolderViewXMLTransform
public class FolderViewTransform extends AbstractFolderTransform
This transform is used by MicroStrategy Web and Web Universal to display both the Icon View as well as the List View of folder contents. Each view's representation comes from a different layout XHTML file. See the MSDL to learn more about how Layout Transforms and Layout XML work and can be used in the Style Catalog. When no layout file is supplied to this transform, it renders the look and feel of Icon View by default.- Since:
- MicroStrategy Web 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
FolderViewTransform.ClientEvent
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
AbstractFolderTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected WebDisplayUnits
_itemsList
Deprecated.please use the results fromAbstractFolderTransform.getSortedList()
orAbstractFolderTransform.getSortedChildUnits()
instead.static int
CM_FLAG_ALL
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_COPY
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_CREATE_SHORTCUT
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_DELETE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_MOVE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_PROPERTIES
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static int
CM_FLAG_RENAME
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
FormalParameter
contextMenuFlags
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
static java.lang.String
FP_CONTEXT_MENU_FLAGS
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
protected FormalParameter
id
Indicates the name of the outer shell for all folder modes.protected FormalParameter
renderLinks
Indicates that if the user want's to render folder browsing links, by default it is set to true.-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
_bandingIndex, _imgHeight, _imgWidth, _sortedChildUnits, datamartImage, documentImage, execTarget, filterImage, folderImage, FP_CREATE_REPORT_DISPLAY_SECTION, FP_DATAMART_IMAGE, FP_DOCUMENT_IMAGE, FP_EXEC_TARGET, FP_FILTER_IMAGE, FP_FOLDER_IMAGE, FP_GRAPH_IMAGE, FP_GRID_GRAPH_IMAGE, FP_IMAGE_HEIGTH, FP_IMAGE_WIDTH, FP_LEVEL_FLAG, FP_MAX_OBJECT_TYPE_COUNT, FP_REPORT_IMAGE, FP_RW_DOCUMENT_IMAGE, FP_SORT_ASCENDING, FP_SORT_FIELD, FP_TABLE_ID, FP_TEMPLATE_IMAGE, graphImage, gridGraphImage, imageHeight, imageWidth, LEVEL_ALL, LEVEL_CONFIRM_DELETE, LEVEL_DELETE, LEVEL_DESCRIPTION, LEVEL_DISPLAY_HEADERS, LEVEL_EDIT, LEVEL_EMPTY_FOLDER_MESSAGE, LEVEL_EXPORT_EXCEL, LEVEL_EXPORT_PDF, LEVEL_FOLDER_INFORMATION, LEVEL_INCREMENTAL_FETCH, LEVEL_LOCATION, LEVEL_MODIFIED, LEVEL_NAME, LEVEL_OWNER, LEVEL_SEND_NOW, LEVEL_SUBSCRIPTION, levelFlag, maxObjectTypeCount, reportImage, rwDocumentImage, sortAscending, sortField, tableId, templateImage
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
FP_INCREMENTAL_FETCH_NAV_TYPE, FP_INCREMENTAL_FETCH_PAGE_BLOCK, imgBlank, incrementalFetchNavigationType, incrementalFetchPageBlock
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description FolderViewTransform()
Default no-argument constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map
addSummaryAttribute()
Return the Summary Attribute to be used in the table for the transform.boolean
canCopy(WebObjectInfo object)
Checks if all privileges and access control are enabled to make a copy of the object.boolean
canCreateShortcut(WebObjectInfo object)
Checks if all privileges and access control are enabled to create a Shortcut to the given object.boolean
canDisplayProperties(WebObjectInfo object)
Checks if all privileges and access control are enabled to display the properties of the given object.boolean
canMove(WebObjectInfo object)
Checks if all privileges and access control are enabled to change the location of the object.boolean
canRename(WebObjectInfo object)
Checks if all privileges and access control are enabled to rename the given object.boolean
checkContextMenuFlag(int flag)
Check if the level parameter value contains this flag.protected AnchorTag
generateAnchor(WebEvent event)
Generates anchor based on event.protected AnchorTag
generateAnchor(WebEvent event, WebObjectInfo obj)
Generates anchor based on event.protected java.lang.String
getActionImageSrc(java.lang.String action)
Get the image source to display as part of the action button.WebEvent
getCopyEvent(WebObjectInfo object)
Returns an event to make a copy of the object.WebEvent
getCreateAnalysisFromReportEvent(WebObjectInfo object)
WebEvent
getCreateDocumentFromDossierEvent(WebObjectInfo object)
WebEvent
getCreateDocumentFromReportEvent(WebObjectInfo object)
WebEvent
getCreateDocumentFromThemeEvent(WebObjectInfo object)
WebEvent
getCreateHTML5VIFromReportEvent(WebObjectInfo object, boolean isJsonMode)
WebEvent
getCreateReportFromCubeEvent(WebObjectInfo object)
WebEvent
getCreateShortcutEvent(WebObjectInfo object)
Returns an event to create a Shortcut to the given object.protected java.lang.String
getDeleteTooltip(WebObjectInfo object)
java.lang.String
getDescription()
Return the description for this TransformWebEvent
getDisplayPropertiesEvent(WebObjectInfo object)
Returns an event to show the properties of the given object.WebEvent
getEditEvent(WebObjectInfo object)
Returns an initializedWebEvent
to edit an object.WebEvent
getEvent(WebObjectInfo object)
Based on the object type on theWebObjectInfo
sent as parameter, it creates and initializes the correspondingWebEvent
for having the object opened or run.WebEvent
getEvent(WebObjectInfo object, boolean cubeRepublish)
WebEvent
getExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayedWebEvent
getFlashExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayedjava.lang.String
getFolderName(WebFolder folder)
java.util.ArrayList
getFolderObjects()
Deprecated.please useAbstractFolderTransform.getSortedList()
insteadWebEvent
getHtmlExportEvent(WebObjectInfo object)
java.lang.String
getID()
Returns the unique name of the component to be used as the ID for its shell.WebEvent
getMoveEvent(WebObjectInfo object)
Returns an event to change the location of the object.protected Tag
getNameWrapperTag(WebObjectInfo object)
WebEvent
getNewFilterEvent()
WebEvent
getNewPromptEvent(java.lang.String promptType, java.lang.String promptExpressionType)
java.lang.String
getObjectID(WebObjectInfo object)
protected ObjectManipulationDialogBean
getObjectManipulationBean()
java.lang.String
getObjectModificationTimeStamp(WebObjectInfo object)
protected WebEvent
getOpenObjectManipulationDialogEvent(WebObjectInfo object, int action)
Returns an event to open the object manipulation dialog.WebEvent
getPDFExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayedWebEvent
getRenameEvent(WebObjectInfo object)
Returns an event to rename the given object.JsonGenerator
getRepublishCubeConfigJSON(WebObjectInfo object, java.lang.String type)
java.lang.String
getTimestamp(WebObjectInfo object)
boolean
hasMultipleRunModesAvailable(WebObjectInfo object)
boolean
isActionsTabAvailable()
Convenience method to check whether we need to render the Actions Tab based on the features available.boolean
isFolderNotNull(WebObjectInfo object)
Convenience method to check object is Null.void
renderAnchorTag(MarkupOutput out, WebObjectInfo object)
void
renderContextMenu(WebObjectInfo object, Tag span)
void
renderDeleteInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out delete information for a single object, as a link based on the event generated by thegetDeleteEvent()
method and the user privileges.void
renderDescriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderBlankspace)
Write out description information for a single object.void
renderEditInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out edit information for a single object, as a link based on the event generated by thegetEditEvent()
method and the user privileges.protected void
renderEmptyCellForActions(MarkupOutput out, boolean renderCellAsText)
Convenience method that renders the content for the action.void
renderExport(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out information for exporting a single object, as a link based on the event generated by thegetExportEvent()
method and the user privileges.void
renderFolderDescription(MarkupOutput out)
Renders the description of the current folder.void
renderFolderName(MarkupOutput out)
Renders the name of the current folder.void
renderIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute)
Write out the image information for a single object.void
renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute)
Similar toAbstractObjectInfoListTransform.renderIconInfo(MarkupOutput, WebObjectInfo)
, but instead of generating an IMG tag, having a transparent image as its source and a background image assigned via the CSS style, it will now generate a SPAN tag which will have the same css class defined (where the background image is indicated) and an inner SPAN for the layering effect, in case an additional image has to be included, on top of the original (for example, a shortcut arrow, a red error sign, etc).void
renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute, boolean largeIconView)
NOTE: overloaded to accept additional parameter 'iconView' for new style process Similar toAbstractObjectInfoListTransform.renderIconInfo(MarkupOutput, WebObjectInfo)
, but instead of generating an IMG tag, having a transparent image as its source and a background image assigned via the CSS style, it will now generate a SPAN tag which will have the same css class defined (where the background image is indicated) and an inner SPAN for the layering effect, in case an additional image has to be included, on top of the original (for example, a shortcut arrow, a red error sign, etc).void
renderList(MarkupOutput out, WebDisplayUnits list)
Deprecated.please use and customizeAbstractFolderTransform.renderList(MarkupOutput out)
instead since this method will not be called by future releases.void
renderMenuArrow(MarkupOutput out)
Render a "down" arrow to open context menu when clickingvoid
renderModifiedInfo(MarkupOutput out, WebObjectInfo object)
Write out modified time information for a single object.void
renderOwnerInfo(MarkupOutput out, WebObjectInfo object)
Write out owner information for a single objectvoid
renderPDFExport(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out information for exporting to PDF a single object, as a link based on the event generated by thegetPDFExportEvent()
method and the user privileges.void
renderSendNowInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out narrocast send now information for a single object, as a link based on the event generated by thegetSendNowEvent()
method.void
renderSubscriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out subscription information for a single object, as a link based on the event generated by thegetSubscriptionsEvent()
method and the user privileges.protected boolean
shouldDisplayDeleteInfo()
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
addScriptDependency, canCreateSubscription, canDelete, canEdit, canExecute, canExport, canExportToPDF, canSendNow, checkLevel, getBlockPosition, getBlockSize, getChildCount, getContext, getContextMenu, getContextMenuAttributes, getDeleteEvent, getDeleteEvent, getExportEvent, getFeatures, getFolderBean, getFolderChildCount, getGoToArgument, getGoToEvent, getImageName, getImageSrc, getListComparator, getMstrExportEvent, getOringalChildCount, getSendNowEvent, getSortedChildUnits, getSortedList, getSubscriptionsEvent, getSupportedBeanType, getViewMediaReportEvent, getViewMediaRWEvent, initializeCss, initializeImages, initializeSelectedItemsList, initializeTransform, isEmptyList, isFeatureAvailable, isFolderEmpty, isObjectRunableinPauseMode, isObjectSelected, isObjectVisible, isViewableReport, newContext, renderEmptyList, renderEmptyList, renderImage, renderJavaScript, renderList, renderObjectCount, setBoneProperties, transformForRequestSuccessful
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
addCSSForObjectType, getCssName, getDereferenceShortcuts, getImageTooltip, getIncrementalFetchComponent, getListItemAttributes, getObjectAbbreviation, getObjectDescription, getObjectModificationTime, getObjectName, getOwnerName, getPathTransform, getVisualizationMode, getVisualizationMode, isUserEnabled, isVisualizationObject, isVisualizationObject, renderAbbreviationInfo, renderAbbreviationInfo, renderDescriptionInfo, renderIconInfo, renderIncrementalFetch, renderIsUserEnabled, renderIsUserEnabled, renderLayeredIconInfo, renderLocationInfo, renderNameInfo, renderObject
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getAttributesShellDiv, getBeanPath, getBoneId, getCancelEvent, getClientSideHelper, getContainerServices, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorMessage, getErrorTitle, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestInError, transformForRequestNotInited, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Field Detail
-
CM_FLAG_COPY
public static final int CM_FLAG_COPY
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Copy context menu entry shall be rendered by transform.
Value = 1- See Also:
- Constant Field Values
-
CM_FLAG_MOVE
public static final int CM_FLAG_MOVE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Move context menu entry shall be rendered by transform.
Value = 2- See Also:
- Constant Field Values
-
CM_FLAG_CREATE_SHORTCUT
public static final int CM_FLAG_CREATE_SHORTCUT
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Create Shortcut context menu entry shall be rendered by transform.
Value = 4- See Also:
- Constant Field Values
-
CM_FLAG_DELETE
public static final int CM_FLAG_DELETE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Delete context menu entry shall be rendered by transform.
Value = 8- See Also:
- Constant Field Values
-
CM_FLAG_RENAME
public static final int CM_FLAG_RENAME
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Rename context menu entry shall be rendered by transform.
Value = 16- See Also:
- Constant Field Values
-
CM_FLAG_PROPERTIES
public static final int CM_FLAG_PROPERTIES
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Flag value for thecontextMenuFlags
formal parameter. Specifies that the Properties context menu entry shall be rendered by transform.
Value = 32- See Also:
- Constant Field Values
-
CM_FLAG_ALL
public static final int CM_FLAG_ALL
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Value for thecontextMenuFlags
formal parameter. Specifies that the all context menu entry shall be rendered by transform.
Value = 0xffffffff- See Also:
- Constant Field Values
-
FP_CONTEXT_MENU_FLAGS
public static final java.lang.String FP_CONTEXT_MENU_FLAGS
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Constant specifying the name of the formal parameter for controlling context menu. Value is contextMenuFlags.- See Also:
- Constant Field Values
-
_itemsList
protected WebDisplayUnits _itemsList
Deprecated.please use the results fromAbstractFolderTransform.getSortedList()
orAbstractFolderTransform.getSortedChildUnits()
instead. This property is no longer used in the code.Property that holds the list of items to be rendered by this transform
-
contextMenuFlags
public FormalParameter contextMenuFlags
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenus
Indicates the options to display on each context menu for the different items on the folder. The options may include copy, create shortcut, move, etc. Multiple options might be rendered at the same time. For indicating which ones to show, the value to assign to this formal parameter should be a bitwise flag combining constants such asCM_FLAG_COPY
,CM_FLAG_MOVE
, etc. Usage: If copy and move options should be displayed, the value to assign to the formal parameter would be 3 (1 + 2). Default value isCM_FLAG_ALL
-
id
protected FormalParameter id
Indicates the name of the outer shell for all folder modes.- Since:
- MicroStrategy Web 9.0.0
-
renderLinks
protected FormalParameter renderLinks
Indicates that if the user want's to render folder browsing links, by default it is set to true.
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Return the description for this Transform- Returns:
String
with the description for the transform.
-
getNameWrapperTag
protected Tag getNameWrapperTag(WebObjectInfo object)
- Overrides:
getNameWrapperTag
in classAbstractObjectInfoListTransform
- Parameters:
object
-WebObjectInfo
instance to be rendered.- Returns:
- a Tag instance with the name of the object to render already embedded. Might return null, in which case
the object name will have to be obtained by calling the
AbstractObjectInfoListTransform.getObjectName(WebObjectInfo)
method separately. - Since:
- MicroStrategy Web 9.0.0
-
renderList
public void renderList(MarkupOutput out, WebDisplayUnits list)
Deprecated.please use and customizeAbstractFolderTransform.renderList(MarkupOutput out)
instead since this method will not be called by future releases.Renders the list of objects contained in the folder (AbstractFolderTransform.getSortedList()
) as an HTML TABLE. The header and each one of the objects inside the folder will be displayed as a row of the main table.
No Summary attribute will be added to the main table unless the user has selected Accessibility Mode from Preferences, in which case the localized string for This table displays the requested folder contents will be used by default.- Specified by:
renderList
in classAbstractFolderTransform
- Parameters:
out
-MarkupOutput
instance with the output by this transformlist
-WebDisplayUnits
list with the objects to render
-
addSummaryAttribute
public java.util.Map addSummaryAttribute()
Return the Summary Attribute to be used in the table for the transform.- Returns:
java.util.Map
with the attribute name (as key) and the value.
-
renderFolderName
public void renderFolderName(MarkupOutput out)
Renders the name of the current folder.- Parameters:
out
-MarkupOutput
instance with the output by this transform
-
renderFolderDescription
public void renderFolderDescription(MarkupOutput out)
Renders the description of the current folder.- Parameters:
out
-MarkupOutput
instance with the output by this transform
-
getFolderObjects
public java.util.ArrayList getFolderObjects()
Deprecated.please useAbstractFolderTransform.getSortedList()
insteadRetrieve the list of the objects in the folder.- Returns:
java.util.ArrayList
with the contents asWebObjectInfo
WebObjectInfo
-
renderIconInfo
public void renderIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute)
Write out the image information for a single object. The css class of the image (which defines the GIF to use) is determined by the object type. The image will be rendered as a link if the event according to the object type, provided by thegetEvent()
method, is available.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.includeStyleAttribute
- boolean value indicating if css style should be added to the icon information generated.
-
renderLayeredIconInfo
public void renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute)
Similar toAbstractObjectInfoListTransform.renderIconInfo(MarkupOutput, WebObjectInfo)
, but instead of generating an IMG tag, having a transparent image as its source and a background image assigned via the CSS style, it will now generate a SPAN tag which will have the same css class defined (where the background image is indicated) and an inner SPAN for the layering effect, in case an additional image has to be included, on top of the original (for example, a shortcut arrow, a red error sign, etc).- Overrides:
renderLayeredIconInfo
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.includeStyleAttribute
- boolean value indicating if css style should be added to the icon information generated.- Since:
- MicroStrategy Web 9.0.0
-
renderLayeredIconInfo
public void renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute, boolean largeIconView)
NOTE: overloaded to accept additional parameter 'iconView' for new style process Similar toAbstractObjectInfoListTransform.renderIconInfo(MarkupOutput, WebObjectInfo)
, but instead of generating an IMG tag, having a transparent image as its source and a background image assigned via the CSS style, it will now generate a SPAN tag which will have the same css class defined (where the background image is indicated) and an inner SPAN for the layering effect, in case an additional image has to be included, on top of the original (for example, a shortcut arrow, a red error sign, etc).- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.includeStyleAttribute
- boolean value indicating if css style should be added to the icon information generated.largeIconView
- flag indicating if it is generating a large icon view of folders- Since:
- MicroStrategy Web 9.0.0
-
renderSubscriptionInfo
public void renderSubscriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out subscription information for a single object, as a link based on the event generated by thegetSubscriptionsEvent()
method and the user privileges. with CSS class defined assub
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
renderSendNowInfo
public void renderSendNowInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out narrocast send now information for a single object, as a link based on the event generated by thegetSendNowEvent()
method. with CSS class defined assnd
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
getDeleteTooltip
protected java.lang.String getDeleteTooltip(WebObjectInfo object)
- Since:
- MicroStrategy Web 9.0.0
-
shouldDisplayDeleteInfo
protected boolean shouldDisplayDeleteInfo()
- Returns:
- boolean value indicating if the delete information should be displayed or not. By default, it tests on formal parameters and other environment conditions that determine if the delete link should be rendered. No test about privileges or security is done at this level.
- Since:
- MicroStrategy Web 9.0.0
-
renderDeleteInfo
public void renderDeleteInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out delete information for a single object, as a link based on the event generated by thegetDeleteEvent()
method and the user privileges. with CSS class defined asdel
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
renderEditInfo
public void renderEditInfo(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out edit information for a single object, as a link based on the event generated by thegetEditEvent()
method and the user privileges. with CSS class defined asedi
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
canCopy
public boolean canCopy(WebObjectInfo object)
Checks if all privileges and access control are enabled to make a copy of the object.- Parameters:
object
- the correspondingWebObjectInfo
-
canMove
public boolean canMove(WebObjectInfo object)
Checks if all privileges and access control are enabled to change the location of the object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canCreateShortcut
public boolean canCreateShortcut(WebObjectInfo object)
Checks if all privileges and access control are enabled to create a Shortcut to the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canRename
public boolean canRename(WebObjectInfo object)
Checks if all privileges and access control are enabled to rename the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canDisplayProperties
public boolean canDisplayProperties(WebObjectInfo object)
Checks if all privileges and access control are enabled to display the properties of the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
hasMultipleRunModesAvailable
public boolean hasMultipleRunModesAvailable(WebObjectInfo object)
- Since:
- MicroStrategy Web 9.0.0
-
getCopyEvent
public WebEvent getCopyEvent(WebObjectInfo object)
Returns an event to make a copy of the object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getMoveEvent
public WebEvent getMoveEvent(WebObjectInfo object)
Returns an event to change the location of the object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getCreateShortcutEvent
public WebEvent getCreateShortcutEvent(WebObjectInfo object)
Returns an event to create a Shortcut to the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getRenameEvent
public WebEvent getRenameEvent(WebObjectInfo object)
Returns an event to rename the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getDisplayPropertiesEvent
public WebEvent getDisplayPropertiesEvent(WebObjectInfo object)
Returns an event to show the properties of the given object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getOpenObjectManipulationDialogEvent
protected WebEvent getOpenObjectManipulationDialogEvent(WebObjectInfo object, int action)
Returns an event to open the object manipulation dialog. This event is the one actually triggered by several of the actions inside a folder, like copy/move/properties/rename. All these events internally call this passing the corresponding action. The actions are defined in the
ObjectManipulationDialogBean
itself.- Parameters:
object
- WebObjectInfo the object info to manipulateaction
- the action to trigger. Possible actions are defined in theObjectManipulationDialogBean
- Returns:
- WebEvent
- Since:
- MicroStrategy Web 8.0.1
-
getExportEvent
public WebEvent getExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayed- Overrides:
getExportEvent
in classAbstractFolderTransform
- Parameters:
object
- theWebObjectInfo
instance which will be exported if the event is called.- Returns:
- an initialized
WebEvent
object if the application supports it. Otherwise, will returnnull
.
-
renderExport
public void renderExport(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out information for exporting a single object, as a link based on the event generated by thegetExportEvent()
method and the user privileges. with CSS class defined asexp
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
getPDFExportEvent
public WebEvent getPDFExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayed- Overrides:
getPDFExportEvent
in classAbstractFolderTransform
- Parameters:
object
- theWebObjectInfo
instance which will be exported if the event is called.- Returns:
- an initialized
WebEvent
object if the application supports it. Otherwise, will returnnull
.
-
getFlashExportEvent
public WebEvent getFlashExportEvent(WebObjectInfo object)
Overwrites the parent method by assigning a target to the event, corresponding to the user preference on where the export result should be displayed- Overrides:
getFlashExportEvent
in classAbstractFolderTransform
- Parameters:
object
- theWebObjectInfo
instance which will be exported if the event is called.- Returns:
- an initialized
WebEvent
object if the application supports it. Otherwise, will returnnull
. - Since:
- MicroStrategy Web 9.0.0
-
getHtmlExportEvent
public WebEvent getHtmlExportEvent(WebObjectInfo object)
- Overrides:
getHtmlExportEvent
in classAbstractFolderTransform
- Since:
- MicroStrategy Web 9.0.0
-
renderPDFExport
public void renderPDFExport(MarkupOutput out, WebObjectInfo object, boolean renderLinkAsText)
Write out information for exporting to PDF a single object, as a link based on the event generated by thegetPDFExportEvent()
method and the user privileges. with CSS class defined aspdf
.- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderLinkAsText
-boolean
determine whether to render the URL as text. (otherwise it is rendered as an image).
-
getActionImageSrc
protected java.lang.String getActionImageSrc(java.lang.String action)
Get the image source to display as part of the action button. This method is called only when the user has turned on Accessibility mode under Preferences.- Parameters:
action
- String indicating the ID of the action from where the source should be calculated. For example, values likepdf
,sub
,del
orexp
are expected- Returns:
- String with the source to use for the image to display.
- Since:
- MicroStrategy Web 8.1.1
-
isFolderNotNull
public boolean isFolderNotNull(WebObjectInfo object)
Convenience method to check object is Null.- Parameters:
object
-WebObjectInfo
Object to be checked for null.- Returns:
- true if the object is not null.
-
isActionsTabAvailable
public boolean isActionsTabAvailable()
Convenience method to check whether we need to render the Actions Tab based on the features available.- Returns:
- true if there is atleast one feature is available. (PDF,Export,SendNow,Subscriptions,DesignMode,Delete).
-
renderEmptyCellForActions
protected void renderEmptyCellForActions(MarkupOutput out, boolean renderCellAsText)
Convenience method that renders the content for the action. If the renderCellAsText is false it renders a transparent blank image.- Parameters:
out
-MarkupOutput
instance to write output to.renderCellAsText
- for the text based rendering.
-
getObjectManipulationBean
protected ObjectManipulationDialogBean getObjectManipulationBean()
-
getFolderName
public java.lang.String getFolderName(WebFolder folder)
-
renderContextMenu
public void renderContextMenu(WebObjectInfo object, Tag span)
Deprecated.Render the Context Menu and attached to the tag being passed- Parameters:
object
-WebObjectInfo
span
-Tag
-
checkContextMenuFlag
public boolean checkContextMenuFlag(int flag)
Check if the level parameter value contains this flag. This method callscheckLevel(FormalParameter, int)
using the contextMenuFlags parameter- Parameters:
flag
- value to test for- Returns:
- true means the level flag is included in the levelFlag formal parameter value
-
getObjectID
public java.lang.String getObjectID(WebObjectInfo object)
- Since:
- MicroStrategy Web 9.0.0
-
getCreateDocumentFromReportEvent
public WebEvent getCreateDocumentFromReportEvent(WebObjectInfo object)
-
getCreateDocumentFromThemeEvent
public WebEvent getCreateDocumentFromThemeEvent(WebObjectInfo object)
-
getCreateDocumentFromDossierEvent
public WebEvent getCreateDocumentFromDossierEvent(WebObjectInfo object)
-
getCreateReportFromCubeEvent
public WebEvent getCreateReportFromCubeEvent(WebObjectInfo object)
-
getCreateAnalysisFromReportEvent
public WebEvent getCreateAnalysisFromReportEvent(WebObjectInfo object)
-
getCreateHTML5VIFromReportEvent
public WebEvent getCreateHTML5VIFromReportEvent(WebObjectInfo object, boolean isJsonMode)
-
getNewFilterEvent
public WebEvent getNewFilterEvent()
- Since:
- MicroStrategy Web 9.0.0
-
getNewPromptEvent
public WebEvent getNewPromptEvent(java.lang.String promptType, java.lang.String promptExpressionType)
- Since:
- MicroStrategy Web 9.0.0
-
getID
public java.lang.String getID()
Description copied from class:AbstractAppTransform
Returns the unique name of the component to be used as the ID for its shell. This id is used for updating the page using the iFrame technology, and as the id for the corresponding bone (if any).- Specified by:
getID
in interfaceTransform
- Overrides:
getID
in classAbstractAppTransform
- Returns:
- the component's unique id
- Since:
- MicroStrategy Web 9.0.0
-
getEditEvent
public WebEvent getEditEvent(WebObjectInfo object)
Description copied from class:AbstractFolderTransform
Returns an initializedWebEvent
to edit an object.- Overrides:
getEditEvent
in classAbstractFolderTransform
- Parameters:
object
- theWebObjectInfo
instance of the object to edit.- Returns:
- the
WebEvent
instance initialized if possible,null
if the application doesn't support it.
-
getEvent
public WebEvent getEvent(WebObjectInfo object, boolean cubeRepublish)
-
getRepublishCubeConfigJSON
public JsonGenerator getRepublishCubeConfigJSON(WebObjectInfo object, java.lang.String type)
-
getEvent
public WebEvent getEvent(WebObjectInfo object)
Description copied from class:AbstractFolderTransform
Based on the object type on theWebObjectInfo
sent as parameter, it creates and initializes the correspondingWebEvent
for having the object opened or run.- Overrides:
getEvent
in classAbstractFolderTransform
- Parameters:
object
- aWebObjectInfo
for which the "execution" event must be retrieved.- Returns:
- The default event associated with the execution of this object. i.e.
- For a
EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
, theEnumReportBeanEvents.REPORT_EVENT_EXECUTE
event,- For a
EnumDSSXMLObjectTypes.DssXmlTypeFolder
, theEnumFolderBeanEvents.FOLDER_EVENT_BROWSE
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
, theEnumDocumentBeanEvents.DOCUMENT_EVENT_EXECUTE_DOCUMENT
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeFilter
, theEnumServletEvents.WebEventSelectFilter
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeTemplate
, theEnumServletEvents.WebEventSelectTemplate
event.
If these events cannot be created or there are not enough privileges for the user to "execute" the object, it will returnnull
. - For a
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event, WebObjectInfo obj)
Generates anchor based on event. This method will check for ClientEvent, the type only known by this class- Parameters:
event
-obj
-- Returns:
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Generates anchor based on event. This method will check for ClientEvent, the type only known by this class- Overrides:
generateAnchor
in classAbstractAppTransform
- Parameters:
event
-- Returns:
-
renderAnchorTag
public void renderAnchorTag(MarkupOutput out, WebObjectInfo object)
-
renderOwnerInfo
public void renderOwnerInfo(MarkupOutput out, WebObjectInfo object)
Description copied from class:AbstractObjectInfoListTransform
Write out owner information for a single object- Overrides:
renderOwnerInfo
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where the contents generated will be stored.object
-WebObjectInfo
instance to be rendered.
-
renderDescriptionInfo
public void renderDescriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderBlankspace)
Description copied from class:AbstractObjectInfoListTransform
Write out description information for a single object.- Overrides:
renderDescriptionInfo
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.renderBlankspace
-boolean
to specify whether it should render a empty cell when it is empty. (otherwise no content is rendered).
-
renderModifiedInfo
public void renderModifiedInfo(MarkupOutput out, WebObjectInfo object)
Description copied from class:AbstractObjectInfoListTransform
Write out modified time information for a single object.- Overrides:
renderModifiedInfo
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where the contents generated will be stored.object
-WebObjectInfo
instance to be rendered.
-
renderMenuArrow
public void renderMenuArrow(MarkupOutput out)
Render a "down" arrow to open context menu when clicking
-
getTimestamp
public java.lang.String getTimestamp(WebObjectInfo object)
-
getObjectModificationTimeStamp
public java.lang.String getObjectModificationTimeStamp(WebObjectInfo object)
-
-