Class ProjectsTransform
- java.lang.Object
 - 
- com.microstrategy.web.transform.AbstractTransform
 - 
- com.microstrategy.web.transform.AbstractLayoutTransform
 - 
- com.microstrategy.web.app.transforms.AbstractAppTransform
 - 
- com.microstrategy.web.app.transforms.ProjectsTransform
 
 
 
 
 
- 
- All Implemented Interfaces:
 AppTransform,LayoutTransform,Transform
public class ProjectsTransform extends AbstractAppTransform implements LayoutTransform
This transform renders the list of projects to show to the user for logging in.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static intDISPLAY_ALLAllowed value for thedisplayFlagformal parameter.static intDISPLAY_DESCRIPTIONAllowed value for thedisplayFlagformal parameter.static intDISPLAY_IMAGEAllowed value for thedisplayFlagformal parameter.static intDISPLAY_NAMEAllowed value for thedisplayFlagformal parameter.static intDISPLAY_SERVER_NAMEAllowed value for thedisplayFlagformal parameter.FormalParameterdisplayFlagIndicates the flag that indicates which information should be displayed about the project.static java.lang.StringFP_DISPLAY_FLAGConstant specifying the name of the formal parameter that represents the flag that specifies the information to render from each project.static java.lang.StringFP_IMAGE_PROJECTDeprecated.The formal parameter this constant is related with has been deprecatedstatic java.lang.StringFP_IMAGE_PROJECT_HEIGHTDeprecated.The formal parameter this constant is related with has been deprecatedstatic java.lang.StringFP_IMAGE_PROJECT_WIDTHDeprecated.The formal parameter this constant is related with has been deprecatedstatic java.lang.StringFP_NUMBER_OF_COLUMNSConstant specifying the name of the formal parameter that represents the number of columns on the HTML table that will contain each project.static java.lang.StringFP_SORT_KEYConstant specifying the name of the formal parameter that represents the key to be used for sorting the projects.static java.lang.StringFP_SORT_ORDERConstant specifying the name of the formal parameter that represents the order in which the projects will be sorted.static java.lang.StringFP_USE_STYLE_SORTINGConstant specifying the name of the formal parameter that represents the flag that determines which settings are to be considered for project sorting.FormalParameterimageProjectDeprecated.source of image for projects will be obtained from CSS styleFormalParameterimageProjectHeightDeprecated.Size of image for projects will be obtained from CSS styleFormalParameterimageProjectWidthDeprecated.Size of image for projects will be obtained from CSS styleFormalParameternumColumnsIndicates the number of columns to use on the table that will hold each one of the projects to render.static intSORT_ASCENDINGAllowed value for thesortOrderformal parameter.static intSORT_DESCENDINGAllowed value for thesortOrderformal parameter.static intSORT_KEY_DEFAULTAllowed value for thesortKeyformal parameter.static intSORT_KEY_ISERVER_NAMEAllowed value for thesortKeyformal parameter.static intSORT_KEY_PROJECT_DESCRIPTIONAllowed value for thesortKeyformal parameter.static intSORT_KEY_PROJECT_NAMEAllowed value for thesortKeyformal parameter.FormalParametersortKeyIndicates the key to be used for sorting the project list before rendering it to users.FormalParametersortOrderIndicates the order to be used for sorting the project list before rendering it to users.FormalParameteruseStyleSortingIndicates the sorting settings to use for listing projects.- 
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 ProjectsTransform()Default constructor. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanareThereMessagesToDisplay()Determines if there are error messages to display to the userbooleanareThereProjectsToDisplay()Determines if there are projects to display to the user, where s/he can connect tostatic intcompareStrings(java.lang.String str1, java.lang.String str2)protected AnchorTaggenerateAnchor(WebEvent event)Overwrites the parent method by specifying the level of information to include on the links according to the event being associated with them.static HashListgenerateServerLists(java.util.ArrayList originalList)protected WebEventgetChangePasswordEvent(ProjectInformation projectInfo)Generate theWebEventthat will be used for allowing the user to change the password if it is required before showing the project list corresponding to an I-Server.static java.util.ComparatorgetConfigurationSortComparator()java.lang.StringgetDescription()Returns the textual description of the transformjava.util.ArrayListgetErrorProjectsList()Obtain the list of projects with connection errors to display to the userprotected WebEventgetOpenHomeEvent(ProjectInformation projectInfo)Generate theWebEventthat will indicate where to take the user once the password has been changed.protected WebEventgetOpenProjectEvent(ProjectInformation projectInfo)Generate theWebEventevent that will be used for rendering the project information as links.protected java.lang.StringgetProjectImageSrc()java.util.ArrayListgetProjectsList()Obtain the list of projects to display to the userprotected java.util.ComparatorgetSortComparator()Given the values of the formal parameters such assortKeysortOrderanduseStyleSorting, this method will generate aComparatorinstance to be used for sorting the project list to be rendered by this transform.java.lang.ClassgetSupportedBeanType()Returns the supported bean type.booleanhasNextProject(ProjectInformation projectInfo)voidinitializeTransform(Transformable data)This method initialize the private and protected fields of the transform.booleanisProjectDescriptionAvailable(ProjectInformation projectInfo)Utility method that checks on the project information if a description is available or notvoidrenderAnchorTag(MarkupOutput out, ProjectInformation projectInfo)Renders the project object's name as a link on the final HTML outputvoidrenderEmptyProjectList(MarkupOutput out)Renders a message to the users in case there are no projects in the projects listvoidrenderMessagesSection(MarkupOutput out)Render the section where any error message will be displayed to the user.voidrenderMessagesSection(MarkupOutput out, java.util.ArrayList projectErrorList)Render the section where any error message will be displayed to the user.voidrenderObject(MarkupOutput out, ProjectInformation projectInfo)Renders a single project object on the final HTML output, including all the fields indicated on thedisplayFlagformal parameter valuevoidrenderProjectDescription(MarkupOutput out, ProjectInformation projectInfo)Renders the project object's description on the final HTML outputvoidrenderProjectImage(MarkupOutput out, ProjectInformation projectInfo)Renders the image to be displayed as a link for the project on the final HTML output.voidrenderProjectImage(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)Deprecated.Image Icon no longer includes the event linkvoidrenderProjectList(MarkupOutput out, java.util.ArrayList projectsList)Render the section where the list of projects available to the user will be displayed.voidrenderProjectName(MarkupOutput out, ProjectInformation projectInfo)Renders the project object's name as a link on the final HTML output.voidrenderProjectName(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)Renders the project object's name as a link on the final HTML outputvoidrenderProjectNameWithoutAnchor(MarkupOutput out, ProjectInformation projectInfo)Renders the project object's name as a link on the final HTML outputvoidrenderServerAlias(MarkupOutput out, ProjectInformation projectInfo)Renders the project object's server alias on the final HTML outputprotected voidsortProjectList()Given the values of the formal parameters such assortKeyandsortOrder, aComparatorobject will be requested to thegetSortComparator()method for getting the project list to be rendered by this transform sorted.voidtransformForRequestSuccessful(MarkupOutput out)Generates the graphical output for theProjectsBeanwhen the bean's status isEnumRequestStatus.WebBeanRequestSuccessful.- 
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, getContext, 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, initializeCss, initializeImages, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderImage, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setBoneProperties, 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
- 
DISPLAY_IMAGE
public static final int DISPLAY_IMAGE
Allowed value for thedisplayFlagformal parameter. Indicates an image should be displayed next to each project.
Value is 1- See Also:
 - Constant Field Values
 
 
- 
DISPLAY_NAME
public static final int DISPLAY_NAME
Allowed value for thedisplayFlagformal parameter. Indicates the name of the project should be displayed.
Value is 2- See Also:
 - Constant Field Values
 
 
- 
DISPLAY_DESCRIPTION
public static final int DISPLAY_DESCRIPTION
Allowed value for thedisplayFlagformal parameter. Indicates the description of the project should be displayed.
Value is 4- See Also:
 - Constant Field Values
 
 
- 
DISPLAY_SERVER_NAME
public static final int DISPLAY_SERVER_NAME
Allowed value for thedisplayFlagformal parameter. Indicates the server name where this project is located should be displayed.
Value is 8- See Also:
 - Constant Field Values
 
 
- 
DISPLAY_ALL
public static final int DISPLAY_ALL
Allowed value for thedisplayFlagformal parameter. Convenience flag that indicates the image and all the information of the project should be displayed Value is 4294967295- See Also:
 - Constant Field Values
 
 
- 
SORT_ASCENDING
public static final int SORT_ASCENDING
Allowed value for thesortOrderformal parameter. Convenience flag that indicates the sort order for the project list will be ascending Value is 0- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
SORT_DESCENDING
public static final int SORT_DESCENDING
Allowed value for thesortOrderformal parameter. Convenience flag that indicates the sort order for the project list will be descending Value is 1- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
SORT_KEY_DEFAULT
public static final int SORT_KEY_DEFAULT
Allowed value for thesortKeyformal parameter. Convenience flag that indicates there will not be a particular sort key for the project list, they will be rendered in the same order as they were found. Value is 0- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
SORT_KEY_PROJECT_NAME
public static final int SORT_KEY_PROJECT_NAME
Allowed value for thesortKeyformal parameter. Convenience flag that indicates the sort for the project list will be based on the project name. Value is 1- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
SORT_KEY_PROJECT_DESCRIPTION
public static final int SORT_KEY_PROJECT_DESCRIPTION
Allowed value for thesortKeyformal parameter. Convenience flag that indicates the sort for the project list will be based on the project description. Value is 2- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
SORT_KEY_ISERVER_NAME
public static final int SORT_KEY_ISERVER_NAME
Allowed value for thesortKeyformal parameter. Convenience flag that indicates the sort for the project list will be based on the IServer name. Value is 3- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
useStyleSorting
public FormalParameter useStyleSorting
Indicates the sorting settings to use for listing projects. Determines whether sort settings will be taken from formal parameter definitions such assortOrderandsortKey, or if it should take into consideration sorting settings defined at the server configuration properties level.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
sortOrder
public FormalParameter sortOrder
Indicates the order to be used for sorting the project list before rendering it to users. Valid values include those defined on theSORT_ASCENDINGandSORT_DESCENDINGconstants.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
sortKey
public FormalParameter sortKey
Indicates the key to be used for sorting the project list before rendering it to users. Valid values include those defined on theSORT_KEY_PROJECT_NAME,SORT_KEY_PROJECT_DESCRIPTIONand similar constants.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
imageProject
public FormalParameter imageProject
Deprecated.source of image for projects will be obtained from CSS styleIndicates the image to be displayed next to each project.
The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter. The image specified here will be rendered at the left of the project name when this transform generates the HTML code to output. The size of the image will be specified by theimageProjectWidthandimageProjectHeightformal parameters. 
- 
displayFlag
public FormalParameter displayFlag
Indicates the flag that indicates which information should be displayed about the project.
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 asDISPLAY_NAME,DISPLAY_DESCRIPTION, etc. For a complete list, refer toProjectsTransform.
Usage: If name, description and server should be displayed, the value to assign to the formal parameter would be 17 (2 + 4 + 8). Default value isDISPLAY_ALL 
- 
numColumns
public FormalParameter numColumns
Indicates the number of columns to use on the table that will hold each one of the projects to render.
The value indicates how the HTML table will be generated. By default, the number of columns it will have is 2. 
- 
imageProjectWidth
public FormalParameter imageProjectWidth
Deprecated.Size of image for projects will be obtained from CSS styleIndicates the width of the image to be displayed next to each project.
If the default image to use specified on theimageProjectformal parameter is changed, chances are this value will need to be updated too. 
- 
imageProjectHeight
public FormalParameter imageProjectHeight
Deprecated.Size of image for projects will be obtained from CSS styleIndicates the height of the image to be displayed next to each project.
If the default image to use specified on theimageProjectformal parameter is changed, chances are this value will need to be updated too. 
- 
FP_SORT_ORDER
public static final java.lang.String FP_SORT_ORDER
Constant specifying the name of the formal parameter that represents the order in which the projects will be sorted. Value is sortOrder.- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
FP_SORT_KEY
public static final java.lang.String FP_SORT_KEY
Constant specifying the name of the formal parameter that represents the key to be used for sorting the projects. Value is sortKey.- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
FP_USE_STYLE_SORTING
public static final java.lang.String FP_USE_STYLE_SORTING
Constant specifying the name of the formal parameter that represents the flag that determines which settings are to be considered for project sorting. Value is useStyleSorting- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
FP_IMAGE_PROJECT
public static final java.lang.String FP_IMAGE_PROJECT
Deprecated.The formal parameter this constant is related with has been deprecatedConstant specifying the name of the formal parameter that represents the image to be displayed next to each project. Value is imageProject.- See Also:
 - Constant Field Values
 
 
- 
FP_DISPLAY_FLAG
public static final java.lang.String FP_DISPLAY_FLAG
Constant specifying the name of the formal parameter that represents the flag that specifies the information to render from each project. Value is displayFlag.- See Also:
 - Constant Field Values
 
 
- 
FP_NUMBER_OF_COLUMNS
public static final java.lang.String FP_NUMBER_OF_COLUMNS
Constant specifying the name of the formal parameter that represents the number of columns on the HTML table that will contain each project. Value is numColumns.- See Also:
 - Constant Field Values
 
 
- 
FP_IMAGE_PROJECT_WIDTH
public static final java.lang.String FP_IMAGE_PROJECT_WIDTH
Deprecated.The formal parameter this constant is related with has been deprecatedConstant specifying the name of the formal parameter that represents the width of the image to be displayed next to each project. Value is imageProjectWidth.- See Also:
 - Constant Field Values
 
 
- 
FP_IMAGE_PROJECT_HEIGHT
public static final java.lang.String FP_IMAGE_PROJECT_HEIGHT
Deprecated.The formal parameter this constant is related with has been deprecatedConstant specifying the name of the formal parameter that represents the height of the image to be displayed next to each project. Value is imageProjectHeight.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
initializeTransform
public void initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.- Specified by:
 initializeTransformin interfaceAppTransform- Overrides:
 initializeTransformin classAbstractAppTransform- Parameters:
 data- bean that will be transformed
 
- 
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Returns the supported bean type. This transform supportsProjectsBeaninstances- Specified by:
 getSupportedBeanTypein interfaceTransform- Overrides:
 getSupportedBeanTypein classAbstractAppTransform- Returns:
 - the 
ProjectsBeanclass 
 
- 
getDescription
public java.lang.String getDescription()
Returns the textual description of the transform- Specified by:
 getDescriptionin interfaceTransform- Returns:
 - the description of the transform
 
 
- 
renderProjectImage
public void renderProjectImage(MarkupOutput out, ProjectInformation projectInfo)
Renders the image to be displayed as a link for the project on the final HTML output. The event for the link is calculated internally based on thegetOpenProjectEventmethod.- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to show- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getProjectImageSrc
protected java.lang.String getProjectImageSrc()
- Returns:
 - String with the location of the project image icon to be displayed for projects, only in case where the user has enabled Accessibility. Otherwise, icon will be rendered using CSS styles.
 - Since:
 - MicroStrategy Web 8.1.1
 
 
- 
renderProjectImage
public void renderProjectImage(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)
Deprecated.Image Icon no longer includes the event linkRenders the image to be displayed as a link for the project on the final HTML output, as indicated on the formal parameter- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to showevent-WebEventinstance with the details of the event to associate to the image link to be displayed
 
- 
renderProjectName
public void renderProjectName(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML output. The event for the link is calculated internally based on thegetOpenProjectEventmethod.- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to show- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderProjectName
public void renderProjectName(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)
Renders the project object's name as a link on the final HTML output- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to showevent-WebEventinstance with the details of the event to associate to the link to be displayed
 
- 
renderProjectNameWithoutAnchor
public void renderProjectNameWithoutAnchor(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML output- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to showevent-WebEventinstance with the details of the event to associate to the link to be displayed
 
- 
renderAnchorTag
public void renderAnchorTag(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML output- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to showevent-WebEventinstance with the details of the event to associate to the link to be displayed
 
- 
hasNextProject
public boolean hasNextProject(ProjectInformation projectInfo)
 
- 
renderServerAlias
public void renderServerAlias(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's server alias on the final HTML output- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to show
 
- 
isProjectDescriptionAvailable
public boolean isProjectDescriptionAvailable(ProjectInformation projectInfo)
Utility method that checks on the project information if a description is available or not- Parameters:
 projectInfo- aProjectInformationinstance containing the details of the project to show- Returns:
 - boolean value of 
Trueif there's a description for the project, otherwise it returnsFalse. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderProjectDescription
public void renderProjectDescription(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's description on the final HTML output- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to show
 
- 
renderObject
public void renderObject(MarkupOutput out, ProjectInformation projectInfo)
Renders a single project object on the final HTML output, including all the fields indicated on thedisplayFlagformal parameter value- Parameters:
 out-MarkupOutputinstance where to save the HTML to renderprojectInfo- aProjectInformationinstance containing the details of the project to show
 
- 
renderEmptyProjectList
public void renderEmptyProjectList(MarkupOutput out)
Renders a message to the users in case there are no projects in the projects list- Parameters:
 out-MarkupOutputinstance where the HTML to be rendered is saved.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderProjectList
public void renderProjectList(MarkupOutput out, java.util.ArrayList projectsList)
Render the section where the list of projects available to the user will be displayed.- Parameters:
 out-MarkupOutputinstance where the contents to show to the user will be saved.projectsList-ArrayListofProjectInformationinstances with the details of the projects available to the user.
 
- 
renderMessagesSection
public void renderMessagesSection(MarkupOutput out)
Render the section where any error message will be displayed to the user. The information to render by default will come from the list of projects returned by thegetErrorProjectsListmethod, which are the ones where they or the I-Server is not available because change of password is required.- Parameters:
 out-MarkupOutputinstance where the contents to show to the user will be saved.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Overwrites the parent method by specifying the level of information to include on the links according to the event being associated with them.- Overrides:
 generateAnchorin classAbstractAppTransform- Parameters:
 event-WebEventinstance from where the details of the anchor are to be generated.- Returns:
 - an 
AnchorTaginstance initialized with the event information. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderMessagesSection
public void renderMessagesSection(MarkupOutput out, java.util.ArrayList projectErrorList)
Render the section where any error message will be displayed to the user. Typically this section will include information about the projects or I-Server not available because change of password is required or because the maximum number of user connections has been met for some I-servers.- Parameters:
 out-MarkupOutputinstance where the contents to show to the user will be saved.projectErrorList-ArrayListofProjectInformationinstances with the details of the projects or I-Server not available to the user because some error was generated while trying to access them.
 
- 
getProjectsList
public java.util.ArrayList getProjectsList()
Obtain the list of projects to display to the user- Returns:
 ArrayListinstance with the list of projects to render to the user- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getErrorProjectsList
public java.util.ArrayList getErrorProjectsList()
Obtain the list of projects with connection errors to display to the user- Returns:
 ArrayListinstance with the list of projects that had errors, to render to the user- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
areThereProjectsToDisplay
public boolean areThereProjectsToDisplay()
Determines if there are projects to display to the user, where s/he can connect to- Returns:
 - boolean value indicating if there are projects running where the user can connect to.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
areThereMessagesToDisplay
public boolean areThereMessagesToDisplay()
Determines if there are error messages to display to the user- Returns:
 - boolean value indicating if there are error messages that should be displayed.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Generates the graphical output for theProjectsBeanwhen the bean's status isEnumRequestStatus.WebBeanRequestSuccessful.- Specified by:
 transformForRequestSuccessfulin classAbstractAppTransform- Parameters:
 out-MarkupOutputinstance where to create the HTML output- See Also:
 AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
 
- 
sortProjectList
protected void sortProjectList()
Given the values of the formal parameters such assortKeyandsortOrder, aComparatorobject will be requested to thegetSortComparator()method for getting the project list to be rendered by this transform sorted.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateServerLists
public static HashList generateServerLists(java.util.ArrayList originalList)
 
- 
getSortComparator
protected java.util.Comparator getSortComparator()
Given the values of the formal parameters such assortKeysortOrderanduseStyleSorting, this method will generate aComparatorinstance to be used for sorting the project list to be rendered by this transform.- Returns:
 - a 
Comparatorinstance that will be used for sorting the list of projects according to the keys specified on the transform formal parameters. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getConfigurationSortComparator
public static java.util.Comparator getConfigurationSortComparator()
 
- 
getOpenHomeEvent
protected WebEvent getOpenHomeEvent(ProjectInformation projectInfo)
Generate theWebEventthat will indicate where to take the user once the password has been changed. This event information is used as argument for thegetChangePasswordEventmethod.- Parameters:
 projectInfo-ProjectInformationwith the details about the project to connect to- Returns:
 - a 
WebEventinstance for opening the home or welcome page of the application, or where the user should be taken to after expired passwords get changed. Returnsnullif the application does not support it. 
 
- 
getChangePasswordEvent
protected WebEvent getChangePasswordEvent(ProjectInformation projectInfo)
Generate theWebEventthat will be used for allowing the user to change the password if it is required before showing the project list corresponding to an I-Server.- Parameters:
 projectInfo-ProjectInformationinstance with the information about the server that didn't allow the user to see the projects until the password gets changed.- Returns:
 - a 
WebEventfor opening the change password page. Returnsnullif the application doesn't support it. 
 
- 
getOpenProjectEvent
protected WebEvent getOpenProjectEvent(ProjectInformation projectInfo)
Generate theWebEventevent that will be used for rendering the project information as links. This event will indicate where the user is supposed to be taken after s/he has selected the project to go to. By default, the event to use is the one for opening the Start Page selected by the user in Preferences.- Parameters:
 projectInfo-ProjectInformationinstance with the information about the project- Returns:
 - a 
WebEventfor opening the project information. Returnsnullif the application doesn't support it. 
 
- 
compareStrings
public static int compareStrings(java.lang.String str1, java.lang.String str2) 
 - 
 
 -