Class FolderProjectBrowserTransform
- 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.FolderSmallIconTransform
-
- com.microstrategy.web.app.transforms.FolderProjectBrowserTransform
-
- All Implemented Interfaces:
AppTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
FilterObjectBrowserTransform
,FolderAddDataSetTransform
,FolderAdminBrowserTransform
,FolderObjectBrowserTransform
,FolderSaveAsBrowserTransform
,ObjectSelectorProjectBrowserTransform
public class FolderProjectBrowserTransform extends FolderSmallIconTransform
Description: The class is used to transform a Folder Bean into it's Project Brwoser mode.- Since:
- MicroStrategy Web 8.0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
AbstractFolderTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description FormalParameter
allowBrowseDimension
Indicates wheter to render the browser in gaphic mode even in html mode.FormalParameter
checkImage
Formal parameter: The icon to use to submit the parent folders select box in HTML mode.FormalParameter
contextID
Formal parameter: The context for the object browser fodler linksprotected java.lang.String
cssBody
The className for the body of the project browser contentsprotected java.lang.String
cssFileSearch
The className for the search text boxFormalParameter
folderLinksLocation
Indicates where the Object Browser Folder Links will be rendered 1 - Root 2 - All Folders 3 - Projectstatic java.lang.String
FP_ALLOW_BROWSE_DIMENSION
Name for the formal parameter:allowBrowseDimension
static java.lang.String
FP_CHECK_IMAGE
Name for the formal parameter:checkImage
static java.lang.String
FP_CONTEXT_ID
Name for the formal parameter:contextID
static java.lang.String
FP_FOLDER_LINKS_LOCATION
Name for the formal parameter:renderForm
static java.lang.String
FP_HTML_GRAPHIC_MODE
Name for the formal parameter:htmlGraphicMode
static java.lang.String
FP_LEVEL_CHANGE_JS
Name for the formal parameter:levelChangeJS
static java.lang.String
FP_RENDER_FORM
Name for the formal parameter:renderForm
static java.lang.String
FP_RENDER_LINKS_ANCESTORS
Name for the formal parameter:renderLinksAncestors
static java.lang.String
FP_SEARCH_BOX_JS
Name for the formal parameter:searchBoxJS
static java.lang.String
FP_SEARCH_JS
Name for the formal parameter:searchJS
static java.lang.String
FP_UP_FOLDER_JS
Name for the formal parameter:upFolderJS
FormalParameter
htmlGraphicMode
Indicates wheter to render the browser in gaphic mode even in html mode.FormalParameter
levelChangeJS
Formal parameter: The javascript function to execute when you change the folder levelFormalParameter
renderForm
Indicates whether the transform will render it's own HTML formFormalParameter
renderLinksAncestors
Indicates whether the Ancestors of the Object Browser Folder Links will be renderedFormalParameter
searchBoxJS
Indicates the javascript function to execute when you key on the search boxFormalParameter
searchJS
Indicates the javascript function to execute when you click on the search image buttonprotected static java.lang.String
sSpaces
FormalParameter
upFolderJS
Formal parameter: The JavaScript code to execute when clicking on the up folder link to go to the parent folder-
Fields inherited from class com.microstrategy.web.app.transforms.FolderSmallIconTransform
folderJS, FP_FOLDER_JS, FP_OBJECT_CLICK_JS, objectClickJS
-
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 FolderProjectBrowserTransform()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected AnchorTag
generateAnchor(WebEvent event)
Creates an<a>
tag from the EventManager.protected WebEvent
getBrowseEvent()
Returns aWebEvent
instance containing the event to use when browsing the folder list displayed by the transform.protected WebEvent
getBrowseParentFolderEvent()
Returns aWebEvent
instance containing the event to use when browsing the folder list displayed by the transform.java.lang.String
getDescription()
Return the description for this TransformWebEvent
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.int
getFodlerLinksContextId()
Deprecated.please usegetFolderLinksContextId()
insteadprotected java.lang.String
getFolderContentsSelectNameHTML()
returns the name the select box for folder contentss in HTML will haveprotected java.lang.String
getFolderLinkClasses(WebObjectInfo object)
Returns the cssClass name to use when rendering the object browser folder linksjava.util.ArrayList
getFolderLinkList()
Returns a list containing the object browser folder links available for the current context.int
getFolderLinksContextId()
java.util.ArrayList
getFolderObjects()
Deprecated.please usegetNonFolderObjects()
insteadprotected WebObjectInfo
getFolderRoot()
Returns a (@link WebObjectInfo) as a reference to the folder being displayed by the transform.protected Tag
getForm(Tag content)
The method will check if the renderFOrm formal parameter is set to true, and if so it will create a new form tag, insert the contents passed as parameter and return the form.protected java.util.ArrayList
getHiddenInputsEventList()
Returns the list of events that will be included in the hidden inputs section.protected java.lang.String
getJavascriptTyAttribute(WebObjectInfo object)
Return the Javascript TY attribute to use for the generation of the HTML tag related with this object.java.util.Map
getLinkAttributes(WebObjectInfo object)
this function is added to help generate layered icon in prompt project browser editor Get attribute for folder link in smallIconViewjava.util.List
getNonFolderObjects()
java.lang.String
getObjectName(WebObjectInfo object)
Utility method for obtaining the name of the object being analyzedprotected java.lang.String
getProjectID()
Private method that gets the Project ID from the session managerprotected WebEvent
getSearchEvent()
Returns aWebEvent
instance containing the event to use when searching trhought the folder list displayed by the transform.java.util.ArrayList
getSubfolders()
Deprecated.please usegetSubFolders()
insteadjava.util.List
getSubFolders()
protected java.lang.String
getTooltipInfo(WebObjectInfo item)
Returns the tooltip to add to each individual item in the Folder's list.protected java.lang.String
getTooltipTitle(WebObjectInfo item)
Returns the descriptor to use for rendering the itemss tooltips.void
initializeCss()
Initializes the Css Classes to use.void
initializeImages()
Initializes the name of the images to use on this transform's output.void
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.protected boolean
isFolder(WebObjectInfo ob)
boolean
isNamedFolder(int folderName)
Returns true if the current folder corresponds to the system folder provided as a parametervoid
renderAncestorsSelector(MarkupOutput out)
Renders a select box containing a list of the folder's ancestorsvoid
renderBrowser(MarkupOutput out)
Renders the Project Browser based on the information provided by the fodler bean.void
renderBrowserContent(MarkupOutput out)
Renders the Project Browser's elements based on the information provided by the fodler bean.void
renderClearSearch(MarkupOutput out)
Renders a Link to clear search result and return to original contentvoid
renderFolderContentHTML(MarkupOutput out, WebObjectInfo woi)
Renders a single non-folder content item from the current folder in HTML modevoid
renderFolderContentsHTML(MarkupOutput out)
Renders the current folder's non-folder contents title when in HTML modevoid
renderFolderContentsSubmitButtonHTML(MarkupOutput out)
Renders the submit button for the folde's non-folder contents section in HTML modevoid
renderFolderContentsTitleHTML(MarkupOutput out)
Renders the current folder's non-folder contents title when in HTML modevoid
renderFolderLink(MarkupOutput out, WebObjectInfo link)
Renders a single Object Browser Folder Linkvoid
renderFolderLinkOptions(MarkupOutput out)
Renders a set of options for a select input containing the different object browser forlder links available for the current context.void
renderFolderLinks(MarkupOutput out)
renders the current's non-folder contensts as a listvoid
renderFolderObjects(MarkupOutput out)
renders the current's folder links as a listvoid
renderFoldersHTML(MarkupOutput out)
Renders the current folder's subfolders when in HTML modevoid
renderFoldersSubmitButtonHTML(MarkupOutput out)
Renders the submit button for the folde's subfolders section in HTML modevoid
renderFoldersTitleHTML(MarkupOutput out)
Renders the current folder's subfolders title when in HTML modevoid
renderHiddenInputs(MarkupOutput out)
Renders the hidden inputs of the events that can be handled by the beanvoid
renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean useLinkCss)
generate a SPAN tag which host background image and an inner SPAN for the layering effect in case an additional image has to be included on top of the original (for example, a shortcut arrow, a red error sign, etc).void
renderList(MarkupOutput out)
Renders the list of objects contained in the folder as a list with small icons.void
renderListHTML(MarkupOutput out)
Renders the current folder's content in HTML modevoid
renderNameInfo(MarkupOutput out, WebObjectInfo object)
Write out name information for a single object.void
renderObjectName(MarkupOutput out, WebObjectInfo object)
Renders only the name of the object passed as a parametervoid
renderOpenParentLink(MarkupOutput out)
Renders a link to the folder's parentvoid
renderSearchBox(MarkupOutput out)
Renders the search box for the project browservoid
renderSearchButton(MarkupOutput out)
Renders a Magnifier image as the search/filter button of the browservoid
renderSearchSection(MarkupOutput out)
Renders the search section of the project browser in DHTML modevoid
renderSubfolders(MarkupOutput out)
renders the current's folder subfolders as a listprotected void
setFolderRoot(WebObjectInfo oi)
protected void
setUpFolderJS(AnchorTag anchor)
Sets the JavaScript code to execute when clicking on the up folder link to go to the parent folder.boolean
shouldRenderFolderLinks()
Determines if the Object Browser Folder Links should be rendered.void
transformForRequestSuccessful(MarkupOutput out)
Transforms the assosciatedWebBean
when its status isEnumRequestStatus.WebBeanRequestSuccessful
.-
Methods inherited from class com.microstrategy.web.app.transforms.FolderSmallIconTransform
getContainerAttributes, getObjectAttributes, postAnchorGenerated, renderLayeredIconInfo, renderList, renderObject, setObjectClickJS
-
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, getEditEvent, getExportEvent, getExportEvent, getFeatures, getFlashExportEvent, getFolderBean, getFolderChildCount, getGoToArgument, getGoToEvent, getHtmlExportEvent, getImageName, getImageSrc, getListComparator, getMstrExportEvent, getOringalChildCount, getPDFExportEvent, getSendNowEvent, getSortedChildUnits, getSortedList, getSubscriptionsEvent, getSupportedBeanType, getViewMediaReportEvent, getViewMediaRWEvent, initializeSelectedItemsList, isEmptyList, isFeatureAvailable, isFolderEmpty, isObjectRunableinPauseMode, isObjectSelected, isObjectVisible, isViewableReport, newContext, renderEmptyList, renderEmptyList, renderImage, renderJavaScript, renderObjectCount, setBoneProperties
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
addCSSForObjectType, getCssName, getDereferenceShortcuts, getImageTooltip, getIncrementalFetchComponent, getListItemAttributes, getNameWrapperTag, getObjectAbbreviation, getObjectDescription, getObjectModificationTime, getOwnerName, getPathTransform, getVisualizationMode, getVisualizationMode, isUserEnabled, isVisualizationObject, isVisualizationObject, renderAbbreviationInfo, renderAbbreviationInfo, renderDescriptionInfo, renderDescriptionInfo, renderIconInfo, renderIncrementalFetch, renderIsUserEnabled, renderIsUserEnabled, renderLocationInfo, renderModifiedInfo, renderOwnerInfo
-
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, getID, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, 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, getID, getPreview, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Field Detail
-
sSpaces
protected static final java.lang.String sSpaces
- See Also:
- Constant Field Values
-
contextID
public FormalParameter contextID
Formal parameter: The context for the object browser fodler links
-
levelChangeJS
public FormalParameter levelChangeJS
Formal parameter: The javascript function to execute when you change the folder level
-
searchJS
public FormalParameter searchJS
Indicates the javascript function to execute when you click on the search image button
-
searchBoxJS
public FormalParameter searchBoxJS
Indicates the javascript function to execute when you key on the search box- Since:
- MicroStrategy Web 8.0.2
-
upFolderJS
public FormalParameter upFolderJS
Formal parameter: The JavaScript code to execute when clicking on the up folder link to go to the parent folder- Since:
- MicroStrategy Web 8.0.2
-
renderForm
public FormalParameter renderForm
Indicates whether the transform will render it's own HTML form
-
folderLinksLocation
public FormalParameter folderLinksLocation
Indicates where the Object Browser Folder Links will be rendered 1 - Root 2 - All Folders 3 - Project
-
renderLinksAncestors
public FormalParameter renderLinksAncestors
Indicates whether the Ancestors of the Object Browser Folder Links will be rendered
-
checkImage
public FormalParameter checkImage
Formal parameter: The icon to use to submit the parent folders select box in HTML mode. Used only in HTML mode. For DHTML mode, the CSS contains the image
-
htmlGraphicMode
public FormalParameter htmlGraphicMode
Indicates wheter to render the browser in gaphic mode even in html mode.
-
allowBrowseDimension
public FormalParameter allowBrowseDimension
Indicates wheter to render the browser in gaphic mode even in html mode.- Since:
- MicroStrategy Web 9.0.0
-
FP_UP_FOLDER_JS
public static final java.lang.String FP_UP_FOLDER_JS
Name for the formal parameter:upFolderJS
- Since:
- MicroStrategy Web 8.0.2
- See Also:
- Constant Field Values
-
FP_CONTEXT_ID
public static final java.lang.String FP_CONTEXT_ID
Name for the formal parameter:contextID
- See Also:
- Constant Field Values
-
FP_LEVEL_CHANGE_JS
public static final java.lang.String FP_LEVEL_CHANGE_JS
Name for the formal parameter:levelChangeJS
- See Also:
- Constant Field Values
-
FP_SEARCH_JS
public static final java.lang.String FP_SEARCH_JS
Name for the formal parameter:searchJS
- See Also:
- Constant Field Values
-
FP_SEARCH_BOX_JS
public static final java.lang.String FP_SEARCH_BOX_JS
Name for the formal parameter:searchBoxJS
- Since:
- MicroStrategy Web 8.0.2
- See Also:
- Constant Field Values
-
FP_RENDER_FORM
public static final java.lang.String FP_RENDER_FORM
Name for the formal parameter:renderForm
- See Also:
- Constant Field Values
-
FP_FOLDER_LINKS_LOCATION
public static final java.lang.String FP_FOLDER_LINKS_LOCATION
Name for the formal parameter:renderForm
- See Also:
- Constant Field Values
-
FP_RENDER_LINKS_ANCESTORS
public static final java.lang.String FP_RENDER_LINKS_ANCESTORS
Name for the formal parameter:renderLinksAncestors
- See Also:
- Constant Field Values
-
FP_CHECK_IMAGE
public static final java.lang.String FP_CHECK_IMAGE
Name for the formal parameter:checkImage
- See Also:
- Constant Field Values
-
FP_HTML_GRAPHIC_MODE
public static final java.lang.String FP_HTML_GRAPHIC_MODE
Name for the formal parameter:htmlGraphicMode
- See Also:
- Constant Field Values
-
FP_ALLOW_BROWSE_DIMENSION
public static final java.lang.String FP_ALLOW_BROWSE_DIMENSION
Name for the formal parameter:allowBrowseDimension
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
cssFileSearch
protected java.lang.String cssFileSearch
The className for the search text box
-
cssBody
protected java.lang.String cssBody
The className for the body of the project browser contents
-
-
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 classAbstractFolderTransform
- Parameters:
data
-Transformable
instance with the bean to be transformed.
-
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 classAbstractFolderTransform
-
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 classAbstractFolderTransform
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Transforms the assosciatedWebBean
when its status isEnumRequestStatus.WebBeanRequestSuccessful
.- Overrides:
transformForRequestSuccessful
in classAbstractFolderTransform
- Parameters:
out
-MarkupOutput
instance where the contents of this transform will be saved.- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
isNamedFolder
public boolean isNamedFolder(int folderName)
Returns true if the current folder corresponds to the system folder provided as a parameter- Parameters:
folderName
- int- Returns:
- boolean
-
renderHiddenInputs
public void renderHiddenInputs(MarkupOutput out)
Renders the hidden inputs of the events that can be handled by the bean- Parameters:
out
- MarkupOutput
-
renderBrowser
public void renderBrowser(MarkupOutput out) throws WebBeanException, WebObjectsException
Renders the Project Browser based on the information provided by the fodler bean.- Parameters:
out
- MarkupOutput- Throws:
WebBeanException
WebObjectsException
-
renderBrowserContent
public void renderBrowserContent(MarkupOutput out) throws WebObjectsException, WebBeanException
Renders the Project Browser's elements based on the information provided by the fodler bean. This method is called by the renderBrowser method.- Parameters:
out
- MarkupOutput- Throws:
WebObjectsException
WebBeanException
-
getSubFolders
public java.util.List getSubFolders()
-
getSubfolders
@Deprecated public java.util.ArrayList getSubfolders()
Deprecated.please usegetSubFolders()
insteadReturns an arraylist with the subfolders of the current folder- Returns:
- ArrayList
-
isFolder
protected boolean isFolder(WebObjectInfo ob)
-
getFolderObjects
@Deprecated public java.util.ArrayList getFolderObjects()
Deprecated.please usegetNonFolderObjects()
insteadReturns an arraylist with the non-folder contents of the current folder- Returns:
- ArrayList
-
getNonFolderObjects
public java.util.List getNonFolderObjects()
- Since:
- MicroStrategy Web 9.0.0
-
renderSubfolders
public void renderSubfolders(MarkupOutput out)
renders the current's folder subfolders as a list- Parameters:
out
- MarkupOutput
-
renderFolderLinks
public void renderFolderLinks(MarkupOutput out)
renders the current's non-folder contensts as a list- Parameters:
out
- MarkupOutput
-
renderFolderObjects
public void renderFolderObjects(MarkupOutput out)
renders the current's folder links as a list- Parameters:
out
- MarkupOutput
-
renderList
public void renderList(MarkupOutput out)
Renders the list of objects contained in the folder as a list with small icons.- Overrides:
renderList
in classAbstractFolderTransform
- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.
-
renderListHTML
public void renderListHTML(MarkupOutput out) throws java.lang.IndexOutOfBoundsException, WebObjectsException, WebBeanException, UnmodifiableException
Renders the current folder's content in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.- Throws:
WebObjectsException
WebBeanException
java.lang.IndexOutOfBoundsException
UnmodifiableException
-
renderFolderContentsHTML
public void renderFolderContentsHTML(MarkupOutput out) throws WebObjectsException, WebBeanException
Renders the current folder's non-folder contents title when in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.- Throws:
WebObjectsException
WebBeanException
-
renderFolderContentHTML
public void renderFolderContentHTML(MarkupOutput out, WebObjectInfo woi)
Renders a single non-folder content item from the current folder in HTML mode- Parameters:
out
- MarkupOutput
-
renderFolderContentsTitleHTML
public void renderFolderContentsTitleHTML(MarkupOutput out)
Renders the current folder's non-folder contents title when in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.
-
renderFolderContentsSubmitButtonHTML
public void renderFolderContentsSubmitButtonHTML(MarkupOutput out)
Renders the submit button for the folde's non-folder contents section in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.
-
renderFoldersHTML
public void renderFoldersHTML(MarkupOutput out) throws WebObjectsException, WebBeanException
Renders the current folder's subfolders when in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.- Throws:
WebObjectsException
WebBeanException
-
renderFoldersTitleHTML
public void renderFoldersTitleHTML(MarkupOutput out)
Renders the current folder's subfolders title when in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.
-
renderFoldersSubmitButtonHTML
public void renderFoldersSubmitButtonHTML(MarkupOutput out)
Renders the submit button for the folde's subfolders section in HTML mode- Parameters:
out
-MarkupOutput
instance where the HTML output is to be saved.
-
renderFolderLink
public void renderFolderLink(MarkupOutput out, WebObjectInfo link)
Renders a single Object Browser Folder Link- Parameters:
out
- MarkupOutputlink
- WebObjectInfo
-
renderFolderLinkOptions
public void renderFolderLinkOptions(MarkupOutput out)
Renders a set of options for a select input containing the different object browser forlder links available for the current context.- Parameters:
out
- MarkupOutput
-
getObjectName
public java.lang.String getObjectName(WebObjectInfo object)
Description copied from class:AbstractObjectInfoListTransform
Utility method for obtaining the name of the object being analyzed- Overrides:
getObjectName
in classAbstractObjectInfoListTransform
- Parameters:
object
-WebObjectInfo
instance to be processed.- Returns:
- value of the name property of the object. If handling a shortcut, it will obtain the property of the original target object and return this as result. By default the result will be encoded for its proper display on HTML.
- Since:
- MicroStrategy Web 9.0.0
-
renderObjectName
public void renderObjectName(MarkupOutput out, WebObjectInfo object)
Renders only the name of the object passed as a parameter- Overrides:
renderObjectName
in classFolderSmallIconTransform
- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
- WebObjectInfo
-
renderNameInfo
public void renderNameInfo(MarkupOutput out, WebObjectInfo object)
Write out name information for a single object. The string will be rendered as a link if the event according to the object type, provided by thegetEvent(com.microstrategy.web.objects.WebObjectInfo)
method is available.- Overrides:
renderNameInfo
in classFolderSmallIconTransform
- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.
-
getEvent
public WebEvent getEvent(WebObjectInfo object)
Description copied from class:AbstractFolderTransform
Based on the object type on theWebObjectInfo
sent as parameter, it creates and initializes the correspondingWebEvent
for having the object opened or run.- Overrides:
getEvent
in classAbstractFolderTransform
- Parameters:
object
- aWebObjectInfo
for which the "execution" event must be retrieved.- Returns:
- The default event associated with the execution of this object. i.e.
- For a
EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
, theEnumReportBeanEvents.REPORT_EVENT_EXECUTE
event,- For a
EnumDSSXMLObjectTypes.DssXmlTypeFolder
, theEnumFolderBeanEvents.FOLDER_EVENT_BROWSE
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
, theEnumDocumentBeanEvents.DOCUMENT_EVENT_EXECUTE_DOCUMENT
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeFilter
, theEnumServletEvents.WebEventSelectFilter
event.- For a
EnumDSSXMLObjectTypes.DssXmlTypeTemplate
, theEnumServletEvents.WebEventSelectTemplate
event.
If these events cannot be created or there are not enough privileges for the user to "execute" the object, it will returnnull
. - For a
- Since:
- MicroStrategy Web 9.0.0
-
getDescription
public java.lang.String getDescription()
Return the description for this Transform- Specified by:
getDescription
in interfaceTransform
- Overrides:
getDescription
in classFolderSmallIconTransform
- Returns:
String
with the description for the transform.
-
renderOpenParentLink
public void renderOpenParentLink(MarkupOutput out)
Renders a link to the folder's parent- Parameters:
out
- MarkupOutput
-
setUpFolderJS
protected void setUpFolderJS(AnchorTag anchor)
Sets the JavaScript code to execute when clicking on the up folder link to go to the parent folder.- Parameters:
anchor
- The anchor tag on which we want to set the JavaScript.
-
renderAncestorsSelector
public void renderAncestorsSelector(MarkupOutput out)
Renders a select box containing a list of the folder's ancestors- Parameters:
out
- MarkupOutput
-
renderSearchBox
public void renderSearchBox(MarkupOutput out)
Renders the search box for the project browser- Parameters:
out
- MarkupOutput
-
shouldRenderFolderLinks
public boolean shouldRenderFolderLinks()
Determines if the Object Browser Folder Links should be rendered.- Returns:
- boolean
-
renderSearchSection
public void renderSearchSection(MarkupOutput out)
Renders the search section of the project browser in DHTML mode- Parameters:
out
-MarkupOutput
-
renderSearchButton
public void renderSearchButton(MarkupOutput out)
Renders a Magnifier image as the search/filter button of the browser- Parameters:
out
- MarkupOutput
-
renderClearSearch
public void renderClearSearch(MarkupOutput out)
Renders a Link to clear search result and return to original content- Parameters:
out
- MarkupOutput- Since:
- MicroStrategy Web 9.0.0
-
getFolderLinkList
public java.util.ArrayList getFolderLinkList()
Returns a list containing the object browser folder links available for the current context.- Returns:
- SimpleList
-
getFolderRoot
protected WebObjectInfo getFolderRoot()
Returns a (@link WebObjectInfo) as a reference to the folder being displayed by the transform.- Returns:
- WebObjectInfo
-
setFolderRoot
protected void setFolderRoot(WebObjectInfo oi)
-
getBrowseEvent
protected WebEvent getBrowseEvent()
Returns aWebEvent
instance containing the event to use when browsing the folder list displayed by the transform.- Returns:
- WebEvent
-
getBrowseParentFolderEvent
protected WebEvent getBrowseParentFolderEvent()
Returns aWebEvent
instance containing the event to use when browsing the folder list displayed by the transform.- Returns:
- WebEvent
-
getSearchEvent
protected WebEvent getSearchEvent()
Returns aWebEvent
instance containing the event to use when searching trhought the folder list displayed by the transform.- Returns:
- WebEvent
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Description copied from class:AbstractAppTransform
Creates an<a>
tag from the EventManager.- Overrides:
generateAnchor
in classAbstractAppTransform
- Parameters:
event
- the WebEvent to generate the link with the request- Returns:
AnchorTag
instance initialized with the information from the event
-
getJavascriptTyAttribute
protected java.lang.String getJavascriptTyAttribute(WebObjectInfo object)
Return the Javascript TY attribute to use for the generation of the HTML tag related with this object.- Parameters:
object
- TheWebObjectInfo
for which it's ty attribute name is requested.- Returns:
- The Javascript TY attribute to use for the generation of the HTML tag related with
this object. If none is found given the object type,
null
will be returned.
-
getTooltipInfo
protected java.lang.String getTooltipInfo(WebObjectInfo item)
Returns the tooltip to add to each individual item in the Folder's list.- Overrides:
getTooltipInfo
in classFolderSmallIconTransform
- Parameters:
item
- WebObjectInfo the folder's child. It includes the name and description of the item.- Returns:
- String the tooltip to add to the HTML output.
-
getForm
protected Tag getForm(Tag content)
The method will check if the renderFOrm formal parameter is set to true, and if so it will create a new form tag, insert the contents passed as parameter and return the form. If the formal parameter is set to false, the method return the same tag passed as parameter.- Parameters:
content
- Tag- Returns:
- Tag
-
getTooltipTitle
protected java.lang.String getTooltipTitle(WebObjectInfo item)
Returns the descriptor to use for rendering the itemss tooltips.- Parameters:
item
- WebObjectInfo- Returns:
- String
-
getFolderLinkClasses
protected java.lang.String getFolderLinkClasses(WebObjectInfo object)
Returns the cssClass name to use when rendering the object browser folder links- Parameters:
object
- WebObjectInfo- Returns:
- String
-
getFolderContentsSelectNameHTML
protected java.lang.String getFolderContentsSelectNameHTML()
returns the name the select box for folder contentss in HTML will have- Returns:
- String
-
getProjectID
protected java.lang.String getProjectID()
Private method that gets the Project ID from the session manager- Overrides:
getProjectID
in classAbstractAppTransform
- Returns:
- String projectID
-
getHiddenInputsEventList
protected java.util.ArrayList getHiddenInputsEventList()
Returns the list of events that will be included in the hidden inputs section.- Returns:
- ArrayList
-
getFolderLinksContextId
public int getFolderLinksContextId()
- Since:
- MicroStrategy Web 9.0.0
-
getFodlerLinksContextId
@Deprecated public int getFodlerLinksContextId()
Deprecated.please usegetFolderLinksContextId()
insteadReturns the context id (from EnumObjectBrowserContexts) to use- Returns:
- int
-
getLinkAttributes
public java.util.Map getLinkAttributes(WebObjectInfo object)
this function is added to help generate layered icon in prompt project browser editor Get attribute for folder link in smallIconView- Parameters:
object
- -WebObjectInfo
web object to get attribute from- Returns:
- Map
- Since:
- MicroStrategy Web 9.0.0
-
renderLayeredIconInfo
public void renderLayeredIconInfo(MarkupOutput out, WebObjectInfo object, boolean useLinkCss)
generate a SPAN tag which host background image and an inner SPAN for the layering effect in case an additional image has to be included on top of the original (for example, a shortcut arrow, a red error sign, etc).- Overrides:
renderLayeredIconInfo
in classAbstractObjectInfoListTransform
- Parameters:
out
-MarkupOutput
instance where to save the contents to displayobject
-WebObjectInfo
to be rendered.useLinkCss
- flag for a largeIconView or listView- Since:
- MicroStrategy Web 9.0.0
-
-