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 int
DISPLAY_ALL
Allowed value for thedisplayFlag
formal parameter.static int
DISPLAY_DESCRIPTION
Allowed value for thedisplayFlag
formal parameter.static int
DISPLAY_IMAGE
Allowed value for thedisplayFlag
formal parameter.static int
DISPLAY_NAME
Allowed value for thedisplayFlag
formal parameter.static int
DISPLAY_SERVER_NAME
Allowed value for thedisplayFlag
formal parameter.FormalParameter
displayFlag
Indicates the flag that indicates which information should be displayed about the project.static 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.static java.lang.String
FP_IMAGE_PROJECT
Deprecated.The formal parameter this constant is related with has been deprecatedstatic java.lang.String
FP_IMAGE_PROJECT_HEIGHT
Deprecated.The formal parameter this constant is related with has been deprecatedstatic java.lang.String
FP_IMAGE_PROJECT_WIDTH
Deprecated.The formal parameter this constant is related with has been deprecatedstatic 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.static 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.static 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.static 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.FormalParameter
imageProject
Deprecated.source of image for projects will be obtained from CSS styleFormalParameter
imageProjectHeight
Deprecated.Size of image for projects will be obtained from CSS styleFormalParameter
imageProjectWidth
Deprecated.Size of image for projects will be obtained from CSS styleFormalParameter
numColumns
Indicates the number of columns to use on the table that will hold each one of the projects to render.static int
SORT_ASCENDING
Allowed value for thesortOrder
formal parameter.static int
SORT_DESCENDING
Allowed value for thesortOrder
formal parameter.static int
SORT_KEY_DEFAULT
Allowed value for thesortKey
formal parameter.static int
SORT_KEY_ISERVER_NAME
Allowed value for thesortKey
formal parameter.static int
SORT_KEY_PROJECT_DESCRIPTION
Allowed value for thesortKey
formal parameter.static int
SORT_KEY_PROJECT_NAME
Allowed value for thesortKey
formal parameter.FormalParameter
sortKey
Indicates the key to be used for sorting the project list before rendering it to users.FormalParameter
sortOrder
Indicates the order to be used for sorting the project list before rendering it to users.FormalParameter
useStyleSorting
Indicates 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 boolean
areThereMessagesToDisplay()
Determines if there are error messages to display to the userboolean
areThereProjectsToDisplay()
Determines if there are projects to display to the user, where s/he can connect tostatic int
compareStrings(java.lang.String str1, java.lang.String str2)
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.static HashList
generateServerLists(java.util.ArrayList originalList)
protected WebEvent
getChangePasswordEvent(ProjectInformation projectInfo)
Generate theWebEvent
that 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.Comparator
getConfigurationSortComparator()
java.lang.String
getDescription()
Returns the textual description of the transformjava.util.ArrayList
getErrorProjectsList()
Obtain the list of projects with connection errors to display to the userprotected WebEvent
getOpenHomeEvent(ProjectInformation projectInfo)
Generate theWebEvent
that will indicate where to take the user once the password has been changed.protected WebEvent
getOpenProjectEvent(ProjectInformation projectInfo)
Generate theWebEvent
event that will be used for rendering the project information as links.protected java.lang.String
getProjectImageSrc()
java.util.ArrayList
getProjectsList()
Obtain the list of projects to display to the userprotected java.util.Comparator
getSortComparator()
Given the values of the formal parameters such assortKey
sortOrder
anduseStyleSorting
, this method will generate aComparator
instance to be used for sorting the project list to be rendered by this transform.java.lang.Class
getSupportedBeanType()
Returns the supported bean type.boolean
hasNextProject(ProjectInformation projectInfo)
void
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.boolean
isProjectDescriptionAvailable(ProjectInformation projectInfo)
Utility method that checks on the project information if a description is available or notvoid
renderAnchorTag(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML outputvoid
renderEmptyProjectList(MarkupOutput out)
Renders a message to the users in case there are no projects in the projects listvoid
renderMessagesSection(MarkupOutput out)
Render the section where any error message will be displayed to the user.void
renderMessagesSection(MarkupOutput out, java.util.ArrayList projectErrorList)
Render the section where any error message will be displayed to the user.void
renderObject(MarkupOutput out, ProjectInformation projectInfo)
Renders a single project object on the final HTML output, including all the fields indicated on thedisplayFlag
formal parameter valuevoid
renderProjectDescription(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's description on the final HTML outputvoid
renderProjectImage(MarkupOutput out, ProjectInformation projectInfo)
Renders the image to be displayed as a link for the project on the final HTML output.void
renderProjectImage(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)
Deprecated.Image Icon no longer includes the event linkvoid
renderProjectList(MarkupOutput out, java.util.ArrayList projectsList)
Render the section where the list of projects available to the user will be displayed.void
renderProjectName(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML output.void
renderProjectName(MarkupOutput out, ProjectInformation projectInfo, WebEvent event)
Renders the project object's name as a link on the final HTML outputvoid
renderProjectNameWithoutAnchor(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's name as a link on the final HTML outputvoid
renderServerAlias(MarkupOutput out, ProjectInformation projectInfo)
Renders the project object's server alias on the final HTML outputprotected void
sortProjectList()
Given the values of the formal parameters such assortKey
andsortOrder
, aComparator
object will be requested to thegetSortComparator()
method for getting the project list to be rendered by this transform sorted.void
transformForRequestSuccessful(MarkupOutput out)
Generates the graphical output for theProjectsBean
when 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 thedisplayFlag
formal 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 thedisplayFlag
formal 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 thedisplayFlag
formal 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 thedisplayFlag
formal 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 thedisplayFlag
formal 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 thesortOrder
formal 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 thesortOrder
formal 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 thesortKey
formal 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 thesortKey
formal 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 thesortKey
formal 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 thesortKey
formal 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 assortOrder
andsortKey
, 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_ASCENDING
andSORT_DESCENDING
constants.- 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_DESCRIPTION
and 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 theresourcesFolderImage
application 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 theimageProjectWidth
andimageProjectHeight
formal 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 theimageProject
formal 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 theimageProject
formal 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:
initializeTransform
in interfaceAppTransform
- Overrides:
initializeTransform
in classAbstractAppTransform
- Parameters:
data
- bean that will be transformed
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Returns the supported bean type. This transform supportsProjectsBean
instances- Specified by:
getSupportedBeanType
in interfaceTransform
- Overrides:
getSupportedBeanType
in classAbstractAppTransform
- Returns:
- the
ProjectsBean
class
-
getDescription
public java.lang.String getDescription()
Returns the textual description of the transform- Specified by:
getDescription
in 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 thegetOpenProjectEvent
method.- Parameters:
out
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance containing the details of the project to showevent
-WebEvent
instance 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 thegetOpenProjectEvent
method.- Parameters:
out
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance containing the details of the project to showevent
-WebEvent
instance 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance containing the details of the project to showevent
-WebEvent
instance 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance containing the details of the project to showevent
-WebEvent
instance 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance 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
- aProjectInformation
instance containing the details of the project to show- Returns:
- boolean value of
True
if 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
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance 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 thedisplayFlag
formal parameter value- Parameters:
out
-MarkupOutput
instance where to save the HTML to renderprojectInfo
- aProjectInformation
instance 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
-MarkupOutput
instance 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
-MarkupOutput
instance where the contents to show to the user will be saved.projectsList
-ArrayList
ofProjectInformation
instances 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 thegetErrorProjectsList
method, which are the ones where they or the I-Server is not available because change of password is required.- Parameters:
out
-MarkupOutput
instance 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:
generateAnchor
in classAbstractAppTransform
- Parameters:
event
-WebEvent
instance from where the details of the anchor are to be generated.- Returns:
- an
AnchorTag
instance 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
-MarkupOutput
instance where the contents to show to the user will be saved.projectErrorList
-ArrayList
ofProjectInformation
instances 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:
ArrayList
instance 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:
ArrayList
instance 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 theProjectsBean
when the bean's status isEnumRequestStatus.WebBeanRequestSuccessful
.- Specified by:
transformForRequestSuccessful
in classAbstractAppTransform
- Parameters:
out
-MarkupOutput
instance 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 assortKey
andsortOrder
, aComparator
object 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 assortKey
sortOrder
anduseStyleSorting
, this method will generate aComparator
instance to be used for sorting the project list to be rendered by this transform.- Returns:
- a
Comparator
instance 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 theWebEvent
that will indicate where to take the user once the password has been changed. This event information is used as argument for thegetChangePasswordEvent
method.- Parameters:
projectInfo
-ProjectInformation
with the details about the project to connect to- Returns:
- a
WebEvent
instance for opening the home or welcome page of the application, or where the user should be taken to after expired passwords get changed. Returnsnull
if the application does not support it.
-
getChangePasswordEvent
protected WebEvent getChangePasswordEvent(ProjectInformation projectInfo)
Generate theWebEvent
that 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
-ProjectInformation
instance with the information about the server that didn't allow the user to see the projects until the password gets changed.- Returns:
- a
WebEvent
for opening the change password page. Returnsnull
if the application doesn't support it.
-
getOpenProjectEvent
protected WebEvent getOpenProjectEvent(ProjectInformation projectInfo)
Generate theWebEvent
event 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
-ProjectInformation
instance with the information about the project- Returns:
- a
WebEvent
for opening the project information. Returnsnull
if the application doesn't support it.
-
compareStrings
public static int compareStrings(java.lang.String str1, java.lang.String str2)
-
-