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 classFolderViewTransform.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_itemsListDeprecated.please use the results fromAbstractFolderTransform.getSortedList()orAbstractFolderTransform.getSortedChildUnits()instead.static intCM_FLAG_ALLDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_COPYDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_CREATE_SHORTCUTDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_DELETEDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_MOVEDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_PROPERTIESDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic intCM_FLAG_RENAMEDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFormalParametercontextMenuFlagsDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusstatic java.lang.StringFP_CONTEXT_MENU_FLAGSDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusprotected FormalParameteridIndicates the name of the outer shell for all folder modes.protected FormalParameterrenderLinksIndicates 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.MapaddSummaryAttribute()Return the Summary Attribute to be used in the table for the transform.booleancanCopy(WebObjectInfo object)Checks if all privileges and access control are enabled to make a copy of the object.booleancanCreateShortcut(WebObjectInfo object)Checks if all privileges and access control are enabled to create a Shortcut to the given object.booleancanDisplayProperties(WebObjectInfo object)Checks if all privileges and access control are enabled to display the properties of the given object.booleancanMove(WebObjectInfo object)Checks if all privileges and access control are enabled to change the location of the object.booleancanRename(WebObjectInfo object)Checks if all privileges and access control are enabled to rename the given object.booleancheckContextMenuFlag(int flag)Check if the level parameter value contains this flag.protected AnchorTaggenerateAnchor(WebEvent event)Generates anchor based on event.protected AnchorTaggenerateAnchor(WebEvent event, WebObjectInfo obj)Generates anchor based on event.protected java.lang.StringgetActionImageSrc(java.lang.String action)Get the image source to display as part of the action button.WebEventgetCopyEvent(WebObjectInfo object)Returns an event to make a copy of the object.WebEventgetCreateAnalysisFromReportEvent(WebObjectInfo object)WebEventgetCreateDocumentFromDossierEvent(WebObjectInfo object)WebEventgetCreateDocumentFromReportEvent(WebObjectInfo object)WebEventgetCreateDocumentFromThemeEvent(WebObjectInfo object)WebEventgetCreateHTML5VIFromReportEvent(WebObjectInfo object, boolean isJsonMode)WebEventgetCreateReportFromCubeEvent(WebObjectInfo object)WebEventgetCreateShortcutEvent(WebObjectInfo object)Returns an event to create a Shortcut to the given object.protected java.lang.StringgetDeleteTooltip(WebObjectInfo object)java.lang.StringgetDescription()Return the description for this TransformWebEventgetDisplayPropertiesEvent(WebObjectInfo object)Returns an event to show the properties of the given object.WebEventgetEditEvent(WebObjectInfo object)Returns an initializedWebEventto edit an object.WebEventgetEvent(WebObjectInfo object)Based on the object type on theWebObjectInfosent as parameter, it creates and initializes the correspondingWebEventfor having the object opened or run.WebEventgetEvent(WebObjectInfo object, boolean cubeRepublish)WebEventgetExportEvent(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 displayedWebEventgetFlashExportEvent(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.StringgetFolderName(WebFolder folder)java.util.ArrayListgetFolderObjects()Deprecated.please useAbstractFolderTransform.getSortedList()insteadWebEventgetHtmlExportEvent(WebObjectInfo object)java.lang.StringgetID()Returns the unique name of the component to be used as the ID for its shell.WebEventgetMoveEvent(WebObjectInfo object)Returns an event to change the location of the object.protected TaggetNameWrapperTag(WebObjectInfo object)WebEventgetNewFilterEvent()WebEventgetNewPromptEvent(java.lang.String promptType, java.lang.String promptExpressionType)java.lang.StringgetObjectID(WebObjectInfo object)protected ObjectManipulationDialogBeangetObjectManipulationBean()java.lang.StringgetObjectModificationTimeStamp(WebObjectInfo object)protected WebEventgetOpenObjectManipulationDialogEvent(WebObjectInfo object, int action)Returns an event to open the object manipulation dialog.WebEventgetPDFExportEvent(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 displayedWebEventgetRenameEvent(WebObjectInfo object)Returns an event to rename the given object.JsonGeneratorgetRepublishCubeConfigJSON(WebObjectInfo object, java.lang.String type)java.lang.StringgetTimestamp(WebObjectInfo object)booleanhasMultipleRunModesAvailable(WebObjectInfo object)booleanisActionsTabAvailable()Convenience method to check whether we need to render the Actions Tab based on the features available.booleanisFolderNotNull(WebObjectInfo object)Convenience method to check object is Null.voidrenderAnchorTag(MarkupOutput out, WebObjectInfo object)voidrenderContextMenu(WebObjectInfo object, Tag span)voidrenderDeleteInfo(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.voidrenderDescriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderBlankspace)Write out description information for a single object.voidrenderEditInfo(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 voidrenderEmptyCellForActions(MarkupOutput out, boolean renderCellAsText)Convenience method that renders the content for the action.voidrenderExport(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.voidrenderFolderDescription(MarkupOutput out)Renders the description of the current folder.voidrenderFolderName(MarkupOutput out)Renders the name of the current folder.voidrenderIconInfo(MarkupOutput out, WebObjectInfo object, boolean includeStyleAttribute)Write out the image information for a single object.voidrenderLayeredIconInfo(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).voidrenderLayeredIconInfo(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).voidrenderList(MarkupOutput out, WebDisplayUnits list)Deprecated.please use and customizeAbstractFolderTransform.renderList(MarkupOutput out)instead since this method will not be called by future releases.voidrenderMenuArrow(MarkupOutput out)Render a "down" arrow to open context menu when clickingvoidrenderModifiedInfo(MarkupOutput out, WebObjectInfo object)Write out modified time information for a single object.voidrenderOwnerInfo(MarkupOutput out, WebObjectInfo object)Write out owner information for a single objectvoidrenderPDFExport(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.voidrenderSendNowInfo(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.voidrenderSubscriptionInfo(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 booleanshouldDisplayDeleteInfo()-
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, 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
@Deprecated public static final int CM_FLAG_COPY
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Copy context menu entry shall be rendered by transform.
Value = 1- See Also:
- Constant Field Values
-
CM_FLAG_MOVE
@Deprecated public static final int CM_FLAG_MOVE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Move context menu entry shall be rendered by transform.
Value = 2- See Also:
- Constant Field Values
-
CM_FLAG_CREATE_SHORTCUT
@Deprecated public static final int CM_FLAG_CREATE_SHORTCUT
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Create Shortcut context menu entry shall be rendered by transform.
Value = 4- See Also:
- Constant Field Values
-
CM_FLAG_DELETE
@Deprecated public static final int CM_FLAG_DELETE
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Delete context menu entry shall be rendered by transform.
Value = 8- See Also:
- Constant Field Values
-
CM_FLAG_RENAME
@Deprecated public static final int CM_FLAG_RENAME
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Rename context menu entry shall be rendered by transform.
Value = 16- See Also:
- Constant Field Values
-
CM_FLAG_PROPERTIES
@Deprecated public static final int CM_FLAG_PROPERTIES
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusFlag value for thecontextMenuFlagsformal parameter. Specifies that the Properties context menu entry shall be rendered by transform.
Value = 32- See Also:
- Constant Field Values
-
CM_FLAG_ALL
@Deprecated public static final int CM_FLAG_ALL
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusValue for thecontextMenuFlagsformal parameter. Specifies that the all context menu entry shall be rendered by transform.
Value = 0xffffffff- See Also:
- Constant Field Values
-
FP_CONTEXT_MENU_FLAGS
@Deprecated public static final java.lang.String FP_CONTEXT_MENU_FLAGS
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusConstant specifying the name of the formal parameter for controlling context menu. Value is contextMenuFlags.- See Also:
- Constant Field Values
-
_itemsList
@Deprecated 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
@Deprecated public FormalParameter contextMenuFlags
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusIndicates 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:
Stringwith the description for the transform.
-
getNameWrapperTag
protected Tag getNameWrapperTag(WebObjectInfo object)
- Overrides:
getNameWrapperTagin classAbstractObjectInfoListTransform- Parameters:
object-WebObjectInfoinstance 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
@Deprecated 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:
renderListin classAbstractFolderTransform- Parameters:
out-MarkupOutputinstance with the output by this transformlist-WebDisplayUnitslist 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.Mapwith the attribute name (as key) and the value.
-
renderFolderName
public void renderFolderName(MarkupOutput out)
Renders the name of the current folder.- Parameters:
out-MarkupOutputinstance with the output by this transform
-
renderFolderDescription
public void renderFolderDescription(MarkupOutput out)
Renders the description of the current folder.- Parameters:
out-MarkupOutputinstance with the output by this transform
-
getFolderObjects
@Deprecated public java.util.ArrayList getFolderObjects()
Deprecated.please useAbstractFolderTransform.getSortedList()insteadRetrieve the list of the objects in the folder.- Returns:
java.util.ArrayListwith the contents asWebObjectInfoWebObjectInfo
-
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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto 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:
renderLayeredIconInfoin classAbstractObjectInfoListTransform- Parameters:
out-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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
ObjectManipulationDialogBeanitself.- 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:
getExportEventin classAbstractFolderTransform- Parameters:
object- theWebObjectInfoinstance which will be exported if the event is called.- Returns:
- an initialized
WebEventobject 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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:
getPDFExportEventin classAbstractFolderTransform- Parameters:
object- theWebObjectInfoinstance which will be exported if the event is called.- Returns:
- an initialized
WebEventobject 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:
getFlashExportEventin classAbstractFolderTransform- Parameters:
object- theWebObjectInfoinstance which will be exported if the event is called.- Returns:
- an initialized
WebEventobject if the application supports it. Otherwise, will returnnull. - Since:
- MicroStrategy Web 9.0.0
-
getHtmlExportEvent
public WebEvent getHtmlExportEvent(WebObjectInfo object)
- Overrides:
getHtmlExportEventin 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-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderLinkAsText-booleandetermine 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,delorexpare 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-WebObjectInfoObject 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-MarkupOutputinstance to write output to.renderCellAsText- for the text based rendering.
-
getObjectManipulationBean
protected ObjectManipulationDialogBean getObjectManipulationBean()
-
getFolderName
public java.lang.String getFolderName(WebFolder folder)
-
renderContextMenu
@Deprecated public void renderContextMenu(WebObjectInfo object, Tag span)
Deprecated.Render the Context Menu and attached to the tag being passed- Parameters:
object-WebObjectInfospan-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:AbstractAppTransformReturns 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:
getIDin interfaceTransform- Overrides:
getIDin classAbstractAppTransform- Returns:
- the component's unique id
- Since:
- MicroStrategy Web 9.0.0
-
getEditEvent
public WebEvent getEditEvent(WebObjectInfo object)
Description copied from class:AbstractFolderTransformReturns an initializedWebEventto edit an object.- Overrides:
getEditEventin classAbstractFolderTransform- Parameters:
object- theWebObjectInfoinstance of the object to edit.- Returns:
- the
WebEventinstance initialized if possible,nullif 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:AbstractFolderTransformBased on the object type on theWebObjectInfosent as parameter, it creates and initializes the correspondingWebEventfor having the object opened or run.- Overrides:
getEventin classAbstractFolderTransform- Parameters:
object- aWebObjectInfofor 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_EXECUTEevent,- For a
EnumDSSXMLObjectTypes.DssXmlTypeFolder, theEnumFolderBeanEvents.FOLDER_EVENT_BROWSEevent.- For a
EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition, theEnumDocumentBeanEvents.DOCUMENT_EVENT_EXECUTE_DOCUMENTevent.- For a
EnumDSSXMLObjectTypes.DssXmlTypeFilter, theEnumServletEvents.WebEventSelectFilterevent.- For a
EnumDSSXMLObjectTypes.DssXmlTypeTemplate, theEnumServletEvents.WebEventSelectTemplateevent.
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:
generateAnchorin classAbstractAppTransform- Parameters:
event-- Returns:
-
renderAnchorTag
public void renderAnchorTag(MarkupOutput out, WebObjectInfo object)
-
renderOwnerInfo
public void renderOwnerInfo(MarkupOutput out, WebObjectInfo object)
Description copied from class:AbstractObjectInfoListTransformWrite out owner information for a single object- Overrides:
renderOwnerInfoin classAbstractObjectInfoListTransform- Parameters:
out-MarkupOutputinstance where the contents generated will be stored.object-WebObjectInfoinstance to be rendered.
-
renderDescriptionInfo
public void renderDescriptionInfo(MarkupOutput out, WebObjectInfo object, boolean renderBlankspace)
Description copied from class:AbstractObjectInfoListTransformWrite out description information for a single object.- Overrides:
renderDescriptionInfoin classAbstractObjectInfoListTransform- Parameters:
out-MarkupOutputinstance where to save the contents to displayobject-WebObjectInfoto be rendered.renderBlankspace-booleanto 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:AbstractObjectInfoListTransformWrite out modified time information for a single object.- Overrides:
renderModifiedInfoin classAbstractObjectInfoListTransform- Parameters:
out-MarkupOutputinstance where the contents generated will be stored.object-WebObjectInfoinstance 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)
-
-