Class AbstractFolderTransform
- 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
-
- All Implemented Interfaces:
AppTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
FolderBulletTransform
,FolderDeleteObjectTransform
,FolderDetailsTransform
,FolderIconRadioButtonTransform
,FolderIconTransform
,FolderListTransform
,FolderRadioButtonTransform
,FolderSmallIconTransform
,FolderViewTransform
public abstract class AbstractFolderTransform extends AbstractObjectInfoListTransform
AbstractFolderTransform is an abstract class that takes care of rendering folder-related information. All functional folder transform classes, such asFolderIconTransform
andFolderViewTransform
and others extend from it.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractFolderTransform.Context
ExtendsAbstractAppTransform.Context
by providing a link to the currentWebObjectInfo
.
-
Field Summary
Fields Modifier and Type Field Description protected int
_bandingIndex
protected int
_imgHeight
Property for holding the value specified to the imgHeight formal parameterprotected int
_imgWidth
Property for holding the value specified to the imgWidth formal parameterprotected WebDisplayUnits
_sortedChildUnits
FormalParameter
datamartImage
Indicates the image to use when displaying a datamart report.FormalParameter
documentImage
Indicates the image to use when displaying a document.FormalParameter
execTarget
Determines how the user want's to execute the Report/Document object.FormalParameter
filterImage
Indicates the image to use when displaying a filter.FormalParameter
folderImage
Indicates the image to use when displaying a folder.static java.lang.String
FP_CREATE_REPORT_DISPLAY_SECTION
Constant specifying the name of the formal parameter for defining which sections will be displayed in the Create Report page.static java.lang.String
FP_DATAMART_IMAGE
Constant specifying the name of the formal parameter for defining the datamart image.static java.lang.String
FP_DOCUMENT_IMAGE
Constant specifying the name of the formal parameter for defining the document image.static java.lang.String
FP_EXEC_TARGET
Determines how the user want's to execute the Report/Document object.static java.lang.String
FP_FILTER_IMAGE
Constant specifying the name of the formal parameter for defining the filter image.static java.lang.String
FP_FOLDER_IMAGE
Constant specifying the name of the formal parameter for defining the folder image.static java.lang.String
FP_GRAPH_IMAGE
Constant specifying the name of the formal parameter for defining the graph image.static java.lang.String
FP_GRID_GRAPH_IMAGE
Constant specifying the name of the formal parameter for defining the gridGraph image.static java.lang.String
FP_IMAGE_HEIGTH
Constant specifying the name of the formal parameter for defining the image height.static java.lang.String
FP_IMAGE_WIDTH
Constant specifying the name of the formal parameter for defining the image width.static java.lang.String
FP_LEVEL_FLAG
Constant specifying the name of the formal parameter for defining the level flag.static java.lang.String
FP_MAX_OBJECT_TYPE_COUNT
Constant specifying the name of the formal parameter for defining the maximum object type count.static java.lang.String
FP_REPORT_IMAGE
Constant specifying the name of the formal parameter for defining the report image.static java.lang.String
FP_RW_DOCUMENT_IMAGE
Constant specifying the name of the formal parameter for defining the report writing document image.static java.lang.String
FP_SORT_ASCENDING
Constant specifying the name of the formal parameter for defining the sort order of the folder contents.static java.lang.String
FP_SORT_FIELD
Constant specifying the name of the formal parameter for defining the field from which the folder contents will be sorted.static java.lang.String
FP_TABLE_ID
Constant specifying the name of the formal parameter for defining the table ID and NAME attributes of the HTML table to render.static java.lang.String
FP_TEMPLATE_IMAGE
Constant specifying the name of the formal parameter for defining the template image.FormalParameter
graphImage
Indicates the image to use when displaying a graph.FormalParameter
gridGraphImage
Indicates the image to use when displaying a grid-graph report.FormalParameter
imageHeight
Indicates the height of the images to be rendered next to the objects when displayed.FormalParameter
imageWidth
Indicates the width of the images to be rendered next to the objects when displayed.static int
LEVEL_ALL
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_CONFIRM_DELETE
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_DELETE
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_DESCRIPTION
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_DISPLAY_HEADERS
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_EDIT
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_EMPTY_FOLDER_MESSAGE
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_EXPORT_EXCEL
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_EXPORT_PDF
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_FOLDER_INFORMATION
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_INCREMENTAL_FETCH
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_LOCATION
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_MODIFIED
Allowed value for thecom.microstrategy.web.objects.rw.*; import com.microstrategy.web.tags.*; import com.microstrategy.web.transform.*; er. Specifies that the folder transform will display object's modified time.
Value = 8static int
LEVEL_NAME
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_OWNER
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_SEND_NOW
Allowed value for thelevelFlag
formal parameter.static int
LEVEL_SUBSCRIPTION
Allowed value for thelevelFlag
formal parameter.FormalParameter
levelFlag
Indicates the level of information to use when displaying each folder item.FormalParameter
maxObjectTypeCount
Indicates any object count limit based on the object type.FormalParameter
reportImage
Indicates the image to use when displaying a report.FormalParameter
rwDocumentImage
Indicates the image to use when displaying a report writing document.FormalParameter
sortAscending
Indicates the order to use while sorting the folder contents.FormalParameter
sortField
Indicates the field to use while sorting the folder contents.FormalParameter
tableId
Indicates the identifier to use when building up the HTML table to be rendered with the contents of the folder.FormalParameter
templateImage
Indicates the image to use when displaying a template.-
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 AbstractFolderTransform()
Default no-argument constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addScriptDependency(java.lang.String filename, java.lang.String loadCondition)
Add javascript dependenceboolean
canCreateSubscription(WebObjectInfo object)
Checks if all privileges and access control are enabled to create an iServer subscription for this object.boolean
canDelete(WebObjectInfo object)
Checks if all privileges and access control are enabled to delete this object.boolean
canEdit(WebObjectInfo object)
Checks if all privileges and access control are enabled to edit this object.boolean
canExecute(WebObjectInfo object)
boolean
canExport(WebObjectInfo object)
Checks if all privileges and access control are enabled to export this object.boolean
canExportToPDF(WebObjectInfo object)
Checks if all privileges and access control are enabled to export to PDF this object.boolean
canSendNow(WebObjectInfo object)
Checks if all privileges and access control are enabled to create a send-now subscription for this object.protected boolean
checkLevel(int level)
Check if the level parameter value contains this flag.protected int
getBlockPosition()
protected int
getBlockSize()
protected int
getChildCount()
protected TransformContext
getContext()
ExtendsAbstractAppTransform.getContext()
by setting to the context object a reference the currentWebObjectInfo
protected ContextMenu
getContextMenu(WebObjectInfo object)
Return the ContextMenu associated with the objectjava.util.Map
getContextMenuAttributes(WebObjectInfo object)
Returns the context-menu specific attributes to assign to the context-menu containerWebEvent
getDeleteEvent(WebObjectInfo object)
Returns an initializedWebEvent
to delete an object.WebEvent
getDeleteEvent(WebObjectInfo object, boolean confirmFirst)
Returns an initializedWebEvent
to delete an 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
getExportEvent(WebObjectInfo object)
Returns an initializedWebEvent
to go to the Export page for an object.WebEvent
getExportEvent(WebObjectInfo object, boolean fastLink)
Deprecated.protected JsonGenerator
getFeatures()
WebEvent
getFlashExportEvent(WebObjectInfo object)
Returns an initialized WebEvent to go to the FlashExport page for an object.protected FolderBean
getFolderBean()
Get the folderBean target of this transformprotected int
getFolderChildCount(WebFolder folder)
int
getGoToArgument()
WebEvent
getGoToEvent()
WebEvent
getHtmlExportEvent(WebObjectInfo object)
protected java.lang.String
getImageName(WebObjectInfo object)
Utility method that helps giving the image name to use - based on the information available on the formal parameters and on the the object type of theWebObjectInfo
instance.protected java.lang.String
getImageSrc(WebObjectInfo object)
Utility method that helps giving the source attribute for the image to use based on the object type of theWebObjectInfo
instance.protected java.util.Comparator
getListComparator()
WebEvent
getMstrExportEvent(WebObjectInfo object)
Returns web event to export VI Dashboard to .mstr formatprotected int
getOringalChildCount()
Return child count in the folde, including those shortcuts objects filtered out based on type restrictionsWebEvent
getPDFExportEvent(WebObjectInfo object)
Returns an initialized WebEvent to go to the PDF Export page for an object.WebEvent
getSendNowEvent(WebObjectInfo object)
Returns aWebEvent
to send an object through emailprotected WebDisplayUnits
getSortedChildUnits()
Returns a sorted list containing the folder's child unitsjava.util.List
getSortedList()
WebEvent
getSubscriptionsEvent(WebObjectInfo object)
Returns (if possible) an initializedWebEvent
to go to the subscriptions of an objectjava.lang.Class
getSupportedBeanType()
Get the class of objects this transform is able to handle, which are of theFolderBean
type.WebEvent
getViewMediaReportEvent(WebObjectInfo object, int viewMedia)
WebEvent
getViewMediaRWEvent(WebObjectInfo object, int viewMedia)
void
initializeCss()
Initializes the Css classes to use.void
initializeImages()
Initializes the name of the images to use on this transform's output.protected void
initializeSelectedItemsList()
Initialize selected items list, based on the objectID request paramter.void
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.boolean
isEmptyList()
Returnstrue
if the list of elements from this folder available for display (getSortedList()
) is empty or not.boolean
isFeatureAvailable(java.lang.String feature)
Extends isFeatureAvailable by maintaining a cache of the features to use.boolean
isFolderEmpty()
Deprecated.please useisEmptyList()
insteadprotected boolean
isObjectRunableinPauseMode(WebObjectInfo object)
protected boolean
isObjectSelected(WebObjectInfo object)
Utility method that checks if theWebObjectInfo
is among the selected list, based on its ID.protected boolean
isObjectVisible(WebObjectInfo object)
Utility method that checks if the object should be displayed or not, based on the information provided on themaxObjectTypeCount
formal parameter and the current number of objects of that type that have been rendered alreadyprotected boolean
isViewableReport(WebObjectInfo object)
A report is viewable if its subtype is not EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportDatamart, EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportNonInteractive or EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportCubeprotected TransformContext
newContext()
Creates a new instance of a TransformContext.void
renderEmptyList(MarkupOutput out)
Renders the folder when it has no children.void
renderEmptyList(MarkupOutput out, WebFolder folder)
Deprecated.please userenderEmptyList(MarkupOutput)
instead.void
renderImage(MarkupOutput out, java.lang.String image)
Renders a transform's image.void
renderJavaScript()
void
renderList(MarkupOutput out)
Renders the folder contents when it does have children, which will be obtained from thegetSortedChildUnits()
method.abstract void
renderList(MarkupOutput out, WebDisplayUnits children)
Deprecated.please note that this method will later on be replaced by usingrenderList(MarkupOutput out)
directly, having the list of children to be rendered there will come from thegetSortedList()
method.void
renderObjectCount(MarkupOutput out)
This method render the section that displays the number of objects found.protected void
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.void
transformForRequestSuccessful(MarkupOutput out)
Transforms the assosciatedWebBean
when its status isEnumRequestStatus.WebBeanRequestSuccessful
.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
addCSSForObjectType, getCssName, getDereferenceShortcuts, getImageTooltip, getIncrementalFetchComponent, getListItemAttributes, getNameWrapperTag, getObjectAbbreviation, getObjectDescription, getObjectModificationTime, getObjectName, getOwnerName, getPathTransform, getVisualizationMode, getVisualizationMode, isUserEnabled, isVisualizationObject, isVisualizationObject, renderAbbreviationInfo, renderAbbreviationInfo, renderDescriptionInfo, renderDescriptionInfo, renderIconInfo, renderIncrementalFetch, renderIsUserEnabled, renderIsUserEnabled, renderLayeredIconInfo, renderLayeredIconInfo, renderLocationInfo, renderModifiedInfo, renderNameInfo, renderObject, renderOwnerInfo
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchor, 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, getID, 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, getDescription, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Field Detail
-
LEVEL_NAME
public static final int LEVEL_NAME
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display object's name.
Value = 1- See Also:
- Constant Field Values
-
LEVEL_DESCRIPTION
public static final int LEVEL_DESCRIPTION
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display object's description.
Value = 2- See Also:
- Constant Field Values
-
LEVEL_OWNER
public static final int LEVEL_OWNER
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display object's owner.
Value = 4- See Also:
- Constant Field Values
-
LEVEL_MODIFIED
public static final int LEVEL_MODIFIED
Allowed value for thecom.microstrategy.web.objects.rw.*; import com.microstrategy.web.tags.*; import com.microstrategy.web.transform.*; er. Specifies that the folder transform will display object's modified time.
Value = 8- See Also:
- Constant Field Values
-
LEVEL_DELETE
public static final int LEVEL_DELETE
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display a link for deleting the object.
Value = 16- See Also:
- Constant Field Values
-
LEVEL_SUBSCRIPTION
public static final int LEVEL_SUBSCRIPTION
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the link for creating subscriptions to the object.
Value = 32- See Also:
- Constant Field Values
-
LEVEL_EDIT
public static final int LEVEL_EDIT
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the link for editing the object.
Value = 64- See Also:
- Constant Field Values
-
LEVEL_LOCATION
public static final int LEVEL_LOCATION
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the object's location (folder path).
Value = 128- See Also:
- Constant Field Values
-
LEVEL_EMPTY_FOLDER_MESSAGE
public static final int LEVEL_EMPTY_FOLDER_MESSAGE
Allowed value for thelevelFlag
formal parameter. Specifies that if the folder is empty, a message should be displayed about it
Value = 256- See Also:
- Constant Field Values
-
LEVEL_CONFIRM_DELETE
public static final int LEVEL_CONFIRM_DELETE
Allowed value for thelevelFlag
formal parameter. Specifies whether the delete link should use a confirm delete event, or the delete event directly
Value = 512- See Also:
- Constant Field Values
-
LEVEL_INCREMENTAL_FETCH
public static final int LEVEL_INCREMENTAL_FETCH
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform includes incremental fetch arrows
Value = 4096- See Also:
- Constant Field Values
-
LEVEL_SEND_NOW
public static final int LEVEL_SEND_NOW
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the link for performing Narrowcast Send Now action on the object.
Value = 8192- See Also:
- Constant Field Values
-
LEVEL_EXPORT_PDF
public static final int LEVEL_EXPORT_PDF
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the link for performing PDF exporting action on the object.
Value = 16384- See Also:
- Constant Field Values
-
LEVEL_EXPORT_EXCEL
public static final int LEVEL_EXPORT_EXCEL
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display the link for performing Excel exporting action on the object.
Value = 32768- See Also:
- Constant Field Values
-
LEVEL_DISPLAY_HEADERS
public static final int LEVEL_DISPLAY_HEADERS
Allowed value for thelevelFlag
formal parameter. Specifies that the folder transform will display its header before rendering the different columns with information about the contents of the folder. If the transform does not include a header, then this flag has no effect on the final result. Value = 65536- See Also:
- Constant Field Values
-
LEVEL_FOLDER_INFORMATION
public static final int LEVEL_FOLDER_INFORMATION
Allowed value for thelevelFlag
formal parameter. Specifies that the folder information (such as its description) will be displayed. Value = 131072- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
LEVEL_ALL
public static final int LEVEL_ALL
Allowed value for thelevelFlag
formal parameter. Convenience flag that includes all possible LEVEL values.
Value = 16777215- See Also:
- Constant Field Values
-
levelFlag
public FormalParameter levelFlag
Indicates the level of information to use when displaying each folder item.
The information may include object name, description and other information. Multiple fields might be rendered at the same time. For indicating which fields to show, the value to assign to this formal parameter should be a bitwise flag combining constants such asLEVEL_NAME
,LEVEL_DESCRIPTION
,LEVEL_OWNER
, etc. For a complete list, refer toAbstractFolderTransform
.
Please note that if a layout XML definition is being used for rendering the transform's output, thelevelFlag
formal parameter value will be ignored. Usage: If name, description and owner should be displayed, the value to assign to the formal parameter would be 7 (1 + 2 + 4). Default value is
LEVEL_ALL
-
maxObjectTypeCount
public FormalParameter maxObjectTypeCount
Indicates any object count limit based on the object type.
With this formal parameter, it can be specified how many objects of which types will be displayed with this transform. The value to assign should have the following format:objectType1:objectCount1;objectType2:objectCount2
where objectType is the numeric type of the object (EnumDSSXMLObjectTypes
), and objectCount is how many of these objects will be displayed.
Usage: If only up to five reports should be displayed, the value to assign to the formal parameter would be "3:5;-1:0", where 3 is the numberic object type for reports (EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
) and 5 indicates how many should be displayed as maximum. If a limit wants to be defined for all objects, regardless of their type, -1 can be used as object type, On the example it's value is zero, so it indicates no other types will be considered but Report Definition, For unlimited display, "-1" can be used as object count. By default no limit is set to any object type.
-
folderImage
public FormalParameter folderImage
Indicates the image to use when displaying a folder.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
graphImage
public FormalParameter graphImage
Indicates the image to use when displaying a graph.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
gridGraphImage
public FormalParameter gridGraphImage
Indicates the image to use when displaying a grid-graph report.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.- Since:
- MicroStrategy Web 7.5.0
-
reportImage
public FormalParameter reportImage
Indicates the image to use when displaying a report.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
datamartImage
public FormalParameter datamartImage
Indicates the image to use when displaying a datamart report.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
documentImage
public FormalParameter documentImage
Indicates the image to use when displaying a document.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
rwDocumentImage
public FormalParameter rwDocumentImage
Indicates the image to use when displaying a report writing document.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.- Since:
- MicroStrategy Web 7.5.0
-
filterImage
public FormalParameter filterImage
Indicates the image to use when displaying a filter.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
templateImage
public FormalParameter templateImage
Indicates the image to use when displaying a template.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImage
application configuration parameter.
-
imageWidth
public FormalParameter imageWidth
Indicates the width of the images to be rendered next to the objects when displayed.
The value indicated will be used for the images of all object types. If the default image formal parameters values are changed, chances are this value will have to be updated as well.
-
_imgWidth
protected int _imgWidth
Property for holding the value specified to the imgWidth formal parameter
-
imageHeight
public FormalParameter imageHeight
Indicates the height of the images to be rendered next to the objects when displayed.
The value indicated will be used for the images of all object types. If the default image formal parameters values are changed, chances are this value will have to be updated as well.
-
_imgHeight
protected int _imgHeight
Property for holding the value specified to the imgHeight formal parameter
-
tableId
public FormalParameter tableId
Indicates the identifier to use when building up the HTML table to be rendered with the contents of the folder. By default, the string to use for the ID and NAME attributes of the <TABLE> HTML tag is empty.
-
sortAscending
public FormalParameter sortAscending
Indicates the order to use while sorting the folder contents.
By default, the value of this parameter is true, which means that the folder contents will be sorted ascending.- Since:
- MicroStrategy Web 7.5.0
-
sortField
public FormalParameter sortField
Indicates the field to use while sorting the folder contents. The value of the formal parameter should be taken from theEnumWebObjectSort
enumeration, which indicates the type of field tu use, for example, sorting on name, description, owner, etc.
The default value isEnumWebObjectSort.WebObjectSortObjectNameFoldersFirst
.
ThesortAscending
andsortField
parameter are used in conjunction to sort by a particular field on the foder page.
For example: Setting these parameters to false, andEnumWebObjectSort.WebObjectSortObjectOwner
respectively will sort the contents of the folder page in descending order based on the Owner filed- Since:
- MicroStrategy Web 7.5.0
-
execTarget
public FormalParameter execTarget
Determines how the user want's to execute the Report/Document object. If set to "_blank" it will open a new window, if empty the link will be executed in the same window.
-
FP_LEVEL_FLAG
public static final java.lang.String FP_LEVEL_FLAG
Constant specifying the name of the formal parameter for defining the level flag. Value is levelFlag.- See Also:
- Constant Field Values
-
FP_MAX_OBJECT_TYPE_COUNT
public static final java.lang.String FP_MAX_OBJECT_TYPE_COUNT
Constant specifying the name of the formal parameter for defining the maximum object type count. Value is maxObjectTypeCount.- See Also:
- Constant Field Values
-
FP_TABLE_ID
public static final java.lang.String FP_TABLE_ID
Constant specifying the name of the formal parameter for defining the table ID and NAME attributes of the HTML table to render. Value is tableId.- See Also:
- Constant Field Values
-
FP_FOLDER_IMAGE
public static final java.lang.String FP_FOLDER_IMAGE
Constant specifying the name of the formal parameter for defining the folder image. Value is folderImage.- See Also:
- Constant Field Values
-
FP_GRAPH_IMAGE
public static final java.lang.String FP_GRAPH_IMAGE
Constant specifying the name of the formal parameter for defining the graph image. Value is graphImage.- See Also:
- Constant Field Values
-
FP_GRID_GRAPH_IMAGE
public static final java.lang.String FP_GRID_GRAPH_IMAGE
Constant specifying the name of the formal parameter for defining the gridGraph image. Value is gridGraphImage.- Since:
- MicroStrategy Web 7.5.0
- See Also:
- Constant Field Values
-
FP_REPORT_IMAGE
public static final java.lang.String FP_REPORT_IMAGE
Constant specifying the name of the formal parameter for defining the report image. Value is reportImage.- See Also:
- Constant Field Values
-
FP_DATAMART_IMAGE
public static final java.lang.String FP_DATAMART_IMAGE
Constant specifying the name of the formal parameter for defining the datamart image. Value is datamartImage.- See Also:
- Constant Field Values
-
FP_DOCUMENT_IMAGE
public static final java.lang.String FP_DOCUMENT_IMAGE
Constant specifying the name of the formal parameter for defining the document image. Value is documentImage.- See Also:
- Constant Field Values
-
FP_RW_DOCUMENT_IMAGE
public static final java.lang.String FP_RW_DOCUMENT_IMAGE
Constant specifying the name of the formal parameter for defining the report writing document image. Value is rwDocumentImage.- Since:
- MicroStrategy Web 7.5.0
- See Also:
- Constant Field Values
-
FP_FILTER_IMAGE
public static final java.lang.String FP_FILTER_IMAGE
Constant specifying the name of the formal parameter for defining the filter image. Value is filterImage.- See Also:
- Constant Field Values
-
FP_TEMPLATE_IMAGE
public static final java.lang.String FP_TEMPLATE_IMAGE
Constant specifying the name of the formal parameter for defining the template image. Value is templateImage.- See Also:
- Constant Field Values
-
FP_IMAGE_WIDTH
public static final java.lang.String FP_IMAGE_WIDTH
Constant specifying the name of the formal parameter for defining the image width. Value is imageWidth.- See Also:
- Constant Field Values
-
FP_IMAGE_HEIGTH
public static final java.lang.String FP_IMAGE_HEIGTH
Constant specifying the name of the formal parameter for defining the image height. Value is imageHeight.- See Also:
- Constant Field Values
-
FP_SORT_ASCENDING
public static final java.lang.String FP_SORT_ASCENDING
Constant specifying the name of the formal parameter for defining the sort order of the folder contents. Value is sortAscending.- Since:
- MicroStrategy Web 7.5.0
- See Also:
- Constant Field Values
-
FP_SORT_FIELD
public static final java.lang.String FP_SORT_FIELD
Constant specifying the name of the formal parameter for defining the field from which the folder contents will be sorted. Value is sortField.- Since:
- MicroStrategy Web 7.5.0
- See Also:
- Constant Field Values
-
FP_CREATE_REPORT_DISPLAY_SECTION
public static final java.lang.String FP_CREATE_REPORT_DISPLAY_SECTION
Constant specifying the name of the formal parameter for defining which sections will be displayed in the Create Report page. Value is displaySection.- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
FP_EXEC_TARGET
public static final java.lang.String FP_EXEC_TARGET
Determines how the user want's to execute the Report/Document object. If set to "_blank" it will open a new window, if empty the link will be executed in the same window.- See Also:
- Constant Field Values
-
_sortedChildUnits
protected WebDisplayUnits _sortedChildUnits
- Since:
- MicroStrategy Web 8.0.1
-
_bandingIndex
protected int _bandingIndex
- Since:
- MicroStrategy Web 9.0.0
-
-
Method Detail
-
initializeTransform
public void initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform. Extends initializeTransform by initializing the cache of this transform's Formal parameters.- Specified by:
initializeTransform
in interfaceAppTransform
- Overrides:
initializeTransform
in classAbstractAppTransform
- Parameters:
data
-Transformable
instance with the bean to be transformed.
-
initializeImages
public void initializeImages()
Initializes the name of the images to use on this transform's output. For each one of the images defined to be displayed, the resource folder information is added to its path and file name as specified on the formal parameters for the images.- Overrides:
initializeImages
in classAbstractObjectInfoListTransform
-
initializeCss
public void initializeCss()
Initializes the Css classes to use. For each one of the css classes to use, the prefix indicated on the formal parameter is added to the name of the class to use.- Overrides:
initializeCss
in classAbstractAppTransform
-
isFeatureAvailable
public boolean isFeatureAvailable(java.lang.String feature)
Extends isFeatureAvailable by maintaining a cache of the features to use. Since we ask for the same feature for all objects, it's faster to keep it on a cache than calculate it each time.- Overrides:
isFeatureAvailable
in classAbstractAppTransform
- Parameters:
feature
- the feature to check for.- Returns:
True
if the feature is available, otherwise returnsFalse
.
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Transforms the assosciatedWebBean
when its status isEnumRequestStatus.WebBeanRequestSuccessful
.- Overrides:
transformForRequestSuccessful
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where the contents of this transform will be saved.- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
getFeatures
protected JsonGenerator getFeatures()
-
getSortedList
public java.util.List getSortedList()
- Specified by:
getSortedList
in classAbstractObjectInfoListTransform
- Returns:
- a
List
instance with all the elements from the bean to be rendered by this transform. The contents will already be sorted if required. - Since:
- MicroStrategy Web 9.0.0
-
getSortedChildUnits
protected WebDisplayUnits getSortedChildUnits() throws WebBeanException, WebObjectsException
Returns a sorted list containing the folder's child units- Returns:
- a
WebDisplayUnits
} instance with the folder contents sorted as requested by thesortField
andsortAscending
formal parameters of the transform. - Throws:
WebBeanException
- if an error happens getting the child unitsWebObjectsException
- if an error happens getting the child units- Since:
- MicroStrategy Web 8.0.0
-
getListComparator
protected java.util.Comparator getListComparator()
- Returns:
Comparator
instance to be used to sort the children of the underlying folder to be rendered- Since:
- MicroStrategy Web 9.0.0
-
isFolderEmpty
@Deprecated public boolean isFolderEmpty()
Deprecated.please useisEmptyList()
instead- Since:
- MicroStrategy Web 8.0.1
-
isEmptyList
public boolean isEmptyList()
Returnstrue
if the list of elements from this folder available for display (getSortedList()
) is empty or not.- Specified by:
isEmptyList
in classAbstractObjectInfoListTransform
- Returns:
true
if the underlying object list is empty.- Since:
- MicroStrategy Web 9.0.0
-
renderEmptyList
@Deprecated public void renderEmptyList(MarkupOutput out, WebFolder folder)
Deprecated.please userenderEmptyList(MarkupOutput)
instead. The folder to access will be the available for this transform.Renders the folder when it has no children. The HTML to render for this case includes only a SPAN HTML tag, with the empty-list corresponding style, displaying the localized descriptor for This folder is empty.- Parameters:
out
-MarkupOutput
instance where the transform's output will be saved.folder
- theWebFolder
instance from theFolderBean
being transformed.
-
renderEmptyList
public void renderEmptyList(MarkupOutput out)
Renders the folder when it has no children. The HTML to render for this case includes only a SPAN HTML tag, with the empty-list corresponding style, displaying the localized descriptor for This folder is empty.- Overrides:
renderEmptyList
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where the transform's output will be saved.- Since:
- MicroStrategy Web 8.0.1
-
renderImage
public void renderImage(MarkupOutput out, java.lang.String image)
Renders a transform's image. If the image to display is one of the defined with the formal parameters, then theimageWidth
andimageHeight
formal parameter values will be applied to them.- Overrides:
renderImage
in classAbstractAppTransform
- Parameters:
out
-MarkupOutput
instance where to write the output of the method.image
-String
with the image name to display
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Get the class of objects this transform is able to handle, which are of theFolderBean
type.- Specified by:
getSupportedBeanType
in interfaceTransform
- Overrides:
getSupportedBeanType
in classAbstractAppTransform
- Returns:
- a
Class
instance with the information about the beans this transform is able to manipulate.
-
getGoToEvent
public WebEvent getGoToEvent()
- Specified by:
getGoToEvent
in classAbstractObjectInfoListTransform
- Returns:
WebEvent
instance with the information for handling incremental fetch requests on the list of objects being rendered by this transform. If not supported, it will returnnull
- Since:
- MicroStrategy Web 9.0.0
-
getGoToArgument
public int getGoToArgument()
- Specified by:
getGoToArgument
in classAbstractObjectInfoListTransform
- Returns:
- the identifier of the argument on the
AbstractObjectInfoListTransform.getGoToEvent()
event where the element to navigate to will be specified. - Since:
- MicroStrategy Web 9.0.0
-
getBlockPosition
protected int getBlockPosition()
- Specified by:
getBlockPosition
in classAbstractObjectInfoListTransform
- Returns:
- value of the property indicating the index of the first element currently being viewed as part of the list output. Used for incremental fetch purposes.
- Since:
- MicroStrategy Web 9.0.0
-
getBlockSize
protected int getBlockSize()
- Specified by:
getBlockSize
in classAbstractObjectInfoListTransform
- Returns:
- value of the property indicating the number of elements included on a single 'page' of the list output. Used for incremental fetch purposes.
- Since:
- MicroStrategy Web 9.0.0
-
getChildCount
protected int getChildCount()
- Specified by:
getChildCount
in classAbstractObjectInfoListTransform
- Returns:
- the total number of elements that are included on the list that could be rendered by this transform. Used for incremental fetch purposes.
- Since:
- MicroStrategy Web 9.0.0
-
getOringalChildCount
protected int getOringalChildCount()
Return child count in the folde, including those shortcuts objects filtered out based on type restrictions- Since:
- MicroStrategy Web 9.3.0
-
renderObjectCount
public void renderObjectCount(MarkupOutput out)
This method render the section that displays the number of objects found. Used for the report - all objects tab of the object browser- Parameters:
out
- MarkupOutput- Since:
- MicroStrategy Web 8.0.1
-
getFolderChildCount
protected int getFolderChildCount(WebFolder folder)
- Since:
- MicroStrategy Web 9.0.0
-
renderList
public void renderList(MarkupOutput out)
Renders the folder contents when it does have children, which will be obtained from thegetSortedChildUnits()
method.- Overrides:
renderList
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.- Since:
- MicroStrategy Web 8.0.1
-
renderList
@Deprecated public abstract void renderList(MarkupOutput out, WebDisplayUnits children)
Deprecated.please note that this method will later on be replaced by usingrenderList(MarkupOutput out)
directly, having the list of children to be rendered there will come from thegetSortedList()
method. Please consider then overwriting the code fromrenderList(MarkupOutput out)
instead of from this method.Renders the folder contents when it does have children.- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.children
-WebDisplayUnits
instance with the list of objects that will be rendered by this transform, as contents of the folder being analyzed.
-
canCreateSubscription
public boolean canCreateSubscription(WebObjectInfo object)
Checks if all privileges and access control are enabled to create an iServer subscription for this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canExecute
public boolean canExecute(WebObjectInfo object)
- Since:
- MicroStrategy Web 8.0.2
-
canExport
public boolean canExport(WebObjectInfo object)
Checks if all privileges and access control are enabled to export this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canExportToPDF
public boolean canExportToPDF(WebObjectInfo object)
Checks if all privileges and access control are enabled to export to PDF this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canSendNow
public boolean canSendNow(WebObjectInfo object)
Checks if all privileges and access control are enabled to create a send-now subscription for this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
canDelete
public boolean canDelete(WebObjectInfo object)
Checks if all privileges and access control are enabled to delete this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
isObjectRunableinPauseMode
protected boolean isObjectRunableinPauseMode(WebObjectInfo object)
-
canEdit
public boolean canEdit(WebObjectInfo object)
Checks if all privileges and access control are enabled to edit this object.- Parameters:
object
- the correspondingWebObjectInfo
- Since:
- MicroStrategy Web 8.0.1
-
getSubscriptionsEvent
public WebEvent getSubscriptionsEvent(WebObjectInfo object)
Returns (if possible) an initializedWebEvent
to go to the subscriptions of an object- Parameters:
object
- theWebObjectInfo
of the object to see its subscriptions- Returns:
- the
WebEvent
initialized if possible,null
if the application doesn't support it.
-
getExportEvent
@Deprecated public WebEvent getExportEvent(WebObjectInfo object, boolean fastLink)
Deprecated.Returns an initializedWebEvent
to go to the Export page for an object. Currently this method handles onlyEnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
andEnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
objects.- Parameters:
object
- theWebObjectInfo
instance which will be exported if the event is called.fastLink
-boolean
that indicates if the link to generate for the export is for a report or document that has not been yet run.- Returns:
- an initialized
WebEvent
object if the application supports it. Otherwise, will returnnull
.
-
getExportEvent
public WebEvent getExportEvent(WebObjectInfo object)
Returns an initializedWebEvent
to go to the Export page for an object. Currently this method handles onlyEnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
andEnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
objects.- 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
.
-
getPDFExportEvent
public WebEvent getPDFExportEvent(WebObjectInfo object)
Returns an initialized WebEvent to go to the PDF Export page for an object. Currently this method handles onlyEnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
andEnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
ofEnumDSSXMLObjectSubTypes.DssXmlSubTypeReportWritingDocument
subtype objects.- 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)
Returns an initialized WebEvent to go to the FlashExport page for an object. Currently this method handles onlyEnumDSSXMLObjectSubTypes.DssXmlSubTypeReportWritingDocument
subtype objects.- 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
-
getMstrExportEvent
public WebEvent getMstrExportEvent(WebObjectInfo object)
Returns web event to export VI Dashboard to .mstr format- 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.5
-
getHtmlExportEvent
public WebEvent getHtmlExportEvent(WebObjectInfo object)
- Since:
- MicroStrategy Web 9.0.0
-
isViewableReport
protected boolean isViewableReport(WebObjectInfo object)
A report is viewable if its subtype is not EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportDatamart, EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportNonInteractive or EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportCube- Parameters:
object
-- Returns:
- whether the report is viewable
- Since:
- MicroStrategy Web 9.0.0
-
getSendNowEvent
public WebEvent getSendNowEvent(WebObjectInfo object)
Returns aWebEvent
to send an object through email- Parameters:
object
- theWebObjectInfo
of the object to send- Returns:
- the
WebEvent
instance if possible otherwise,null
if the application doesn't support it.
-
getDeleteEvent
public WebEvent getDeleteEvent(WebObjectInfo object)
Returns an initializedWebEvent
to delete an object.- Parameters:
object
- theWebObjectInfo
instance of the object to delete.- Returns:
- the
WebEvent
instance initialized if possible,null
if the application doesn't support it.
-
getDeleteEvent
public WebEvent getDeleteEvent(WebObjectInfo object, boolean confirmFirst)
Returns an initializedWebEvent
to delete an object.- Parameters:
object
- theWebObjectInfo
instance of the object to delete.- Returns:
- the
WebEvent
instance initialized if possible,null
if the application doesn't support it. - Since:
- MicroStrategy Web 8.0.1
-
getEditEvent
public WebEvent getEditEvent(WebObjectInfo object)
Returns an initializedWebEvent
to edit an object.- Parameters:
object
- theWebObjectInfo
instance of the object to edit.- Returns:
- the
WebEvent
instance initialized if possible,null
if the application doesn't support it.
-
getViewMediaRWEvent
public WebEvent getViewMediaRWEvent(WebObjectInfo object, int viewMedia)
- Since:
- MicroStrategy Web 9.0.0
-
getViewMediaReportEvent
public WebEvent getViewMediaReportEvent(WebObjectInfo object, int viewMedia)
- Since:
- MicroStrategy Web 9.0.0
-
getEvent
public 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.- Specified by:
getEvent
in classAbstractObjectInfoListTransform
- 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
-
getFolderBean
protected FolderBean getFolderBean()
Get the folderBean target of this transform- Returns:
- the
FolderBean
instance used with this transform
-
checkLevel
protected boolean checkLevel(int level)
Check if the level parameter value contains this flag. This method callsAbstractAppTransform.checkLevel(int level, FormalParameter parameter)
using thelevelFlag
formal parameter.- Parameters:
level
- flag value to check for.- Returns:
- true means the level flag is included in the levelFlag formal parameter value
-
getImageName
protected java.lang.String getImageName(WebObjectInfo object)
Utility method that helps giving the image name to use - based on the information available on the formal parameters and on the the object type of theWebObjectInfo
instance.- Overrides:
getImageName
in classAbstractObjectInfoListTransform
- Parameters:
object
- TheWebObjectInfo
for which it's image name is required.- Returns:
- a
String
with the name of the image associated with theWebObjectInfo
. If the type specified does not match the predefined list of styles, then it returns the file name and path for the blank (transparent) image.
-
getImageSrc
protected java.lang.String getImageSrc(WebObjectInfo object)
Utility method that helps giving the source attribute for the image to use based on the object type of theWebObjectInfo
instance. This method is used only when the user has turned on the Accessibility preference.- Parameters:
object
- TheWebObjectInfo
for which it's image name is required.- Returns:
- a
String
with the image path that should be associated with theWebObjectInfo
information to display. If the type specified does not match the predefined list of styles, then it returns a blank image. - Since:
- MicroStrategy Web 8.1.1
-
isObjectVisible
protected boolean isObjectVisible(WebObjectInfo object)
Utility method that checks if the object should be displayed or not, based on the information provided on themaxObjectTypeCount
formal parameter and the current number of objects of that type that have been rendered already- Parameters:
object
-WebObjectInfo
with the object to check for.- Returns:
True
if the object should be displayed, otherwise returnsFalse
-
isObjectSelected
protected boolean isObjectSelected(WebObjectInfo object)
Utility method that checks if theWebObjectInfo
is among the selected list, based on its ID. This is controled by the objectID request parameter value specified.- Parameters:
object
-WebObjectInfo
with the object to check for.- Returns:
True
if the object is selected, otherwise returnsFalse
-
initializeSelectedItemsList
protected void initializeSelectedItemsList()
Initialize selected items list, based on the objectID request paramter. Each element is separated by;
-
setBoneProperties
protected void setBoneProperties(JsonGenerator boneProps)
Description copied from class:AbstractAppTransform
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.- Overrides:
setBoneProperties
in classAbstractAppTransform
- Parameters:
boneProps
- the JsonGenerator object that contains the collection of bone properties.
-
getContextMenuAttributes
public java.util.Map getContextMenuAttributes(WebObjectInfo object)
Returns the context-menu specific attributes to assign to the context-menu container- Parameters:
object
- WebObjectInfo- Returns:
- Map
- Since:
- MicroStrategy Web 8.0.1
-
getContextMenu
protected ContextMenu getContextMenu(WebObjectInfo object)
Return the ContextMenu associated with the object- Parameters:
object
-WebObjectInfo
- Returns:
- ContextMenu
ContextMenu
- Since:
- MicroStrategy Web 8.0.1
-
getContext
protected TransformContext getContext()
ExtendsAbstractAppTransform.getContext()
by setting to the context object a reference the currentWebObjectInfo
- Overrides:
getContext
in classAbstractAppTransform
- Since:
- MicroStrategy Web 8.0.1
- See Also:
AbstractAppTransform.getContextMenu(java.lang.String)
-
newContext
protected TransformContext newContext()
Description copied from class:AbstractAppTransform
Creates a new instance of a TransformContext. It's used by the getContext method the first time is invoked. Transforms who require to include extra information in the context should create their own TransformContext implementation (possibly a subclass of AppTransformContext) and returns a new instance in this method.- Overrides:
newContext
in classAbstractAppTransform
- Since:
- MicroStrategy Web 8.0.1
-
addScriptDependency
public void addScriptDependency(java.lang.String filename, java.lang.String loadCondition)
Add javascript dependence
-
renderJavaScript
public void renderJavaScript()
-
-