Class LoginTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.LoginTransform
-
- All Implemented Interfaces:
AppTransform,Transform
- Direct Known Subclasses:
LoginXHTMLTransform
public class LoginTransform extends AbstractAppTransform
This transform renders the login dialog to the user, displaying the different options according to what the Administrator has marked as enabled for users given the IServer and Project selected.- 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 FormalParameter_fpImgLowLeftIndicates the image to be displayed at the bottom left corner of the login box.FormalParameter_fpImgLowRightIndicates the image to be displayed at the bottom right corner of the login box.FormalParameter_fpImgUpLeftIndicates the image to be displayed at the top left corner of the login box.FormalParameter_fpImgUpRightIndicates the image to be displayed at the top right corner of the login box.static java.lang.StringFP_IMAGE_LOW_LEFT_CORNERName of the formal parameter that represents the image to be displayed at the bottom left corner of the login box.static java.lang.StringFP_IMAGE_LOW_RIGHT_CORNERName of the formal parameter that represents the image to be displayed at the bottom right corner of the login box.static java.lang.StringFP_IMAGE_UP_LEFT_CORNERName of the formal parameter that represents the image to be displayed at the top left corner of the login box.static java.lang.StringFP_IMAGE_UP_RIGHT_CORNERName of the formal parameter that represents the image to be displayed at the top right corner of the login box.-
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 LoginTransform()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgetArgumentName(WebEvent event, int argumentId)Get the name of the argument assigned to theWebEvent, based on the indicated id.protected WebEventgetCancelEvent(LoginBean bean)Generate theWebEventinstance to be used when users cancel the request to login.java.lang.StringgetDescription()Returns the textual description of the transformprotected WebEventgetHelpEvent(LoginBean bean)Generate theWebEventinstance to be used when users requests for help when login.LoginBeangetLoginBean()Get theLoginBeaninstance being transformedprotected WebEventgetLoginEvent(LoginBean bean)Generate theWebEventinstance to be used for login.protected java.lang.StringgetLoginEventFormAction(LoginBean bean, WebEvent event, int eventEnabled)For the event to use for login, if the user has enabled to keep the information of the current session available on the URL, then we need to pass these details on the URL (form ACTION attribute) since otherwise users won't be able to bookmark the resulting page after login.java.lang.ClassgetSupportedBeanType()Returns the supported bean type.voidinitializeImages()Initialize the images to be used by this transform.booleanisAutoCompleteEnabled()Utility method to verify if autocomplete is enabled on login for security reasonsprotected booleanisLoginFirst()Utility method that determines if the environment currently defined by the administrator is set as login first.voidrenderGuestAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for guest authentication to show to users for log into a projectvoidrenderLoginDialog(MarkupOutput out)Render the actual login dialog.voidrenderLoginDialog(MarkupOutput out, LoginBean bean)Deprecated.userenderLoginDialog(MarkupOutput out)instead.voidrenderLoginDialogFooter(MarkupOutput out)Render the footer in the table of the login dialog as an HTML TR element.voidrenderLoginDialogFooter(MarkupOutput out, LoginBean bean)Deprecated.userenderLoginDialogFooter(MarkupOutput out)instead.voidrenderLoginDialogHeader(MarkupOutput out)Render the header in the table of the login dialog as an HTML TR element.voidrenderLoginDialogHeader(MarkupOutput out, LoginBean bean)Deprecated.userenderLoginDialogHeader(MarkupOutput out)instead.voidrenderNTGuestLoginSection(MarkupOutput out)Generates the HTML to present the user with the options for logging into a project with NT and/or Guest authentication modes, according to what the Administrator enabled.voidrenderNTGuestLoginSection(MarkupOutput out, LoginBean bean, WebEvent loginEvent, WebEvent cancelEvent)Deprecated.userenderNTGuestLoginSection(MarkupOutput out)instead.voidrenderPortletWarning(MarkupOutput out)voidrenderProjectSection(MarkupOutput out)Render the project information available.voidrenderServerSection(MarkupOutput out)Render the server information availablevoidrenderSSPAuthenticationLink(MarkupOutput out, WebEvent event)voidrenderStandardLoginSection(MarkupOutput out)Generates the HTML to present the user with the options for logging into a project with the authentication modes that require entering user name and password, according to what the Administrator enabled.voidrenderStandardLoginSection(MarkupOutput out, LoginBean bean, WebEvent loginEvent, WebEvent cancelEvent)Deprecated.userenderLoginDialogFooter(MarkupOutput out)instead.voidrenderWindowsAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for Windows (NT) authentication to show to users for log into a projectvoidtransformForRequestSuccessful(MarkupOutput out)Generates the graphical output for the Projects BeanvoidtransformForRequestWaitingForUserInput(MarkupOutput out)Generates the output when the bean's status isEnumRequestStatus.WebBeanRequestWaitingForUserInput, that is when the bean needs to answer prompts.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchor, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, 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, initializeTransform, 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
-
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.Transform
canTransform, getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports
-
-
-
-
Field Detail
-
_fpImgUpLeft
public FormalParameter _fpImgUpLeft
Indicates the image to be displayed at the top left corner of the login box. The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter. Users might want to customize the default value of this formal parameter if the background colors on the login dialog are changed since the default image represents a gray curved corner.
-
_fpImgUpRight
public FormalParameter _fpImgUpRight
Indicates the image to be displayed at the top right corner of the login box. The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter. Users might want to customize the default value of this formal parameter if the background colors on the login dialog are changed since the default image represents a gray curved corner.
-
_fpImgLowLeft
public FormalParameter _fpImgLowLeft
Indicates the image to be displayed at the bottom left corner of the login box. The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter. Users might want to customize the default value of this formal parameter if the background colors on the login dialog are changed since the default image represents a gray curved corner.
-
_fpImgLowRight
public FormalParameter _fpImgLowRight
Indicates the image to be displayed at the bottom right corner of the login box. The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter. Users might want to customize the default value of this formal parameter if the background colors on the login dialog are changed since the default image represents a gray curved corner.
-
FP_IMAGE_UP_LEFT_CORNER
public static final java.lang.String FP_IMAGE_UP_LEFT_CORNER
Name of the formal parameter that represents the image to be displayed at the top left corner of the login box. Value is imgUpLeft.- See Also:
- Constant Field Values
-
FP_IMAGE_UP_RIGHT_CORNER
public static final java.lang.String FP_IMAGE_UP_RIGHT_CORNER
Name of the formal parameter that represents the image to be displayed at the top right corner of the login box. Value is imgUpRight.- See Also:
- Constant Field Values
-
FP_IMAGE_LOW_LEFT_CORNER
public static final java.lang.String FP_IMAGE_LOW_LEFT_CORNER
Name of the formal parameter that represents the image to be displayed at the bottom left corner of the login box. Value is imgLowLeft.- See Also:
- Constant Field Values
-
FP_IMAGE_LOW_RIGHT_CORNER
public static final java.lang.String FP_IMAGE_LOW_RIGHT_CORNER
Name of the formal parameter that represents the image to be displayed at the bottom right corner of the login box. Value is imgLowRight.- See Also:
- Constant Field Values
-
-
Method Detail
-
renderProjectSection
public void renderProjectSection(MarkupOutput out)
Render the project information available.- Parameters:
out- aMarkupOutputinstance where to save the HTML to render- Since:
- MicroStrategy Web 8.0.0
-
renderServerSection
public void renderServerSection(MarkupOutput out)
Render the server information available- Parameters:
out- aMarkupOutputinstance where to save the HTML to render- Since:
- MicroStrategy Web 8.0.0
-
isAutoCompleteEnabled
public boolean isAutoCompleteEnabled()
Utility method to verify if autocomplete is enabled on login for security reasons- Returns:
- boolean value indicating if autocomplete is enabled according to the security settings.
- Since:
- MicroStrategy Web 7.5.3
-
renderGuestAuthenticationLink
public void renderGuestAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for guest authentication to show to users for log into a project- Parameters:
out- aMarkupOutputinstance where to save the HTML to renderevent- aWebEventinstance with the details to be used when creating the link for this authentication mode
-
renderSSPAuthenticationLink
public void renderSSPAuthenticationLink(MarkupOutput out, WebEvent event)
- Since:
- MicroStrategy Web 9.0.0
-
renderWindowsAuthenticationLink
public void renderWindowsAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for Windows (NT) authentication to show to users for log into a project- Parameters:
out- aMarkupOutputinstance where to save the HTML to renderevent- aWebEventinstance with the details to be used when creating the link for this authentication mode
-
renderNTGuestLoginSection
public void renderNTGuestLoginSection(MarkupOutput out, LoginBean bean, WebEvent loginEvent, WebEvent cancelEvent)
Deprecated.userenderNTGuestLoginSection(MarkupOutput out)instead. The bean and event information will be calculated internally.Generates the HTML to present the user with the options for logging into a project with NT and/or Guest authentication modes, according to what the Administrator enabled.- Parameters:
out-MarkupOutputinstance where to save the contents to renderbean-LoginBeaninstance being transformedloginEvent-WebEventto be used for logging the user incancelEvent-WebEventto be used if the user cancels the login request.
-
renderNTGuestLoginSection
public void renderNTGuestLoginSection(MarkupOutput out)
Generates the HTML to present the user with the options for logging into a project with NT and/or Guest authentication modes, according to what the Administrator enabled.- Parameters:
out-MarkupOutputinstance where to save the contents to render- Since:
- MicroStrategy Web 8.0.0
-
renderLoginDialog
public void renderLoginDialog(MarkupOutput out, LoginBean bean)
Deprecated.userenderLoginDialog(MarkupOutput out)instead. The bean information will be calculated internally.Render the actual login dialog. It will present the user the different login options depending on what the Administrator has enabled. The contents are rendered using an HTML TABLE for formatting purposes, controlling its width and number of columns based on the authentication modes enabled.- Parameters:
out-MarkupOutputinstance where to save the contents to renderbean-LoginBeaninstance being transformed
-
renderLoginDialog
public void renderLoginDialog(MarkupOutput out)
Render the actual login dialog. It will present the user the different login options depending on what the Administrator has enabled. The contents are rendered using an HTML TABLE for formatting purposes, controlling its width and number of columns based on the authentication modes enabled.- Parameters:
out-MarkupOutputinstance where to save the contents to render- Since:
- MicroStrategy Web 8.0.0
-
renderLoginDialogHeader
public void renderLoginDialogHeader(MarkupOutput out, LoginBean bean)
Deprecated.userenderLoginDialogHeader(MarkupOutput out)instead. The bean information will be calculated internally.Render the header in the table of the login dialog as an HTML TR element. The cells to generate will depend on the login modes enabled. The parent TABLE should be opened beforehand (by default,renderLoginDialogtakes care of that).- Parameters:
out-MarkupOutputinstance where to save the contents to renderbean-LoginBeaninstance being transformed
-
renderLoginDialogHeader
public void renderLoginDialogHeader(MarkupOutput out)
Render the header in the table of the login dialog as an HTML TR element. The cells to generate will depend on the login modes enabled. The parent TABLE should be opened beforehand (by default,renderLoginDialogtakes care of that).- Parameters:
out-MarkupOutputinstance where to save the contents to render- Since:
- MicroStrategy Web 8.0.0
-
renderLoginDialogFooter
public void renderLoginDialogFooter(MarkupOutput out, LoginBean bean)
Deprecated.userenderLoginDialogFooter(MarkupOutput out)instead. The bean information will be calculated internally.Render the footer in the table of the login dialog as an HTML TR element. The cells to generate will depend on the login modes enabled. The parent TABLE should be opened beforehand (by default,renderLoginDialogtakes care of that).- Parameters:
out-MarkupOutputinstance where to save the contents to renderbean-LoginBeaninstance being transformed
-
renderLoginDialogFooter
public void renderLoginDialogFooter(MarkupOutput out)
Render the footer in the table of the login dialog as an HTML TR element. The cells to generate will depend on the login modes enabled. The parent TABLE should be opened beforehand (by default,renderLoginDialogtakes care of that).- Parameters:
out-MarkupOutputinstance where to save the contents to render- Since:
- MicroStrategy Web 8.0.0
-
renderStandardLoginSection
public void renderStandardLoginSection(MarkupOutput out, LoginBean bean, WebEvent loginEvent, WebEvent cancelEvent)
Deprecated.userenderLoginDialogFooter(MarkupOutput out)instead. The bean and event information will be calculated internally.Generates the HTML to present the user with the options for logging into a project with the authentication modes that require entering user name and password, according to what the Administrator enabled. Typically, this will render Standard, Pass-Through and LDAP authentication modes.- Parameters:
out-MarkupOutputinstance where to save the contents to renderbean-LoginBeaninstance being transformedloginEvent-WebEventto be used for logging the user incancelEvent-WebEventto be used if the user cancels the login request.
-
renderStandardLoginSection
public void renderStandardLoginSection(MarkupOutput out)
Generates the HTML to present the user with the options for logging into a project with the authentication modes that require entering user name and password, according to what the Administrator enabled. Typically, this will render Standard, Pass-Through and LDAP authentication modes.- Parameters:
out-MarkupOutputinstance where to save the contents to render- Since:
- MicroStrategy Web 8.0.0
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Generates the graphical output for the Projects Bean- Specified by:
transformForRequestSuccessfulin classAbstractAppTransform- Parameters:
out-MarkupOutputinstance where to create the HTML output- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
getLoginBean
public LoginBean getLoginBean()
Get theLoginBeaninstance being transformed- Returns:
- the current
LoginBeaninstance being transformed
-
initializeImages
public void initializeImages()
Initialize the images to be used by this transform.- Overrides:
initializeImagesin classAbstractAppTransform
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Returns the supported bean type. This transform supportsLoginBeaninstances- Specified by:
getSupportedBeanTypein interfaceTransform- Overrides:
getSupportedBeanTypein classAbstractAppTransform- Returns:
- the class of the bean supported by this transform.
-
getDescription
public java.lang.String getDescription()
Returns the textual description of the transform- Returns:
- the description of the transform
-
getLoginEvent
protected WebEvent getLoginEvent(LoginBean bean)
Generate theWebEventinstance to be used for login.
-
getCancelEvent
protected WebEvent getCancelEvent(LoginBean bean)
Generate theWebEventinstance to be used when users cancel the request to login.- Parameters:
bean-LoginBeaninstance currently being transformed- Returns:
- a
WebEventinstance initialized with the information required for allowing users to cancel the login. By default, if the environment is "login first" it will not return an event since going Home (default event returned) will only bring back the login page again.
-
getHelpEvent
protected WebEvent getHelpEvent(LoginBean bean)
Generate theWebEventinstance to be used when users requests for help when login.
-
getLoginEventFormAction
protected java.lang.String getLoginEventFormAction(LoginBean bean, WebEvent event, int eventEnabled)
For the event to use for login, if the user has enabled to keep the information of the current session available on the URL, then we need to pass these details on the URL (form ACTION attribute) since otherwise users won't be able to bookmark the resulting page after login. We will enable this only when the event to execute after login is the one indicated by eventEnabled.- Parameters:
bean-LoginBeancurrently being transformedevent-WebEventgenerated for enabling the user to log ineventEnabled-intvalue indicating for which event we will be generating the form ACTION information. UsuallyEnumServletEvents.WebEventOpenDesktop- Returns:
- a
Stringwith the information to use for the form ACTION attribute.nullif none should be used - and the information shall be included as hidden inputs.
-
getArgumentName
protected java.lang.String getArgumentName(WebEvent event, int argumentId)
Get the name of the argument assigned to theWebEvent, based on the indicated id. This method can be overwritten with an event-argumentId mapping in case the original event defined on the application is customized.- Overrides:
getArgumentNamein classAbstractAppTransform- Parameters:
event-WebEventfrom where the argument name will be retrievedargumentId-intwith the identifier of the argument to search for on the event- Returns:
- the corresponding name of the event for the specified id. If it is
not found, it will return
null.
-
isLoginFirst
protected boolean isLoginFirst()
Utility method that determines if the environment currently defined by the administrator is set as login first.- Returns:
- a boolean value indicating if the user should log in first before showing projects or not.
- Since:
- MicroStrategy Web 7.5.4
-
transformForRequestWaitingForUserInput
public void transformForRequestWaitingForUserInput(MarkupOutput out)
Description copied from class:AbstractAppTransformGenerates the output when the bean's status isEnumRequestStatus.WebBeanRequestWaitingForUserInput, that is when the bean needs to answer prompts. By default it just generates an error message.
Usually prompts are handled by a Prompts transform, the bean is responsible to delegate execution to this transform when prompts are open so reaching this method is actually considered an error.
Transforms that would like to generate customized error message for this scenario should extend this method.- Overrides:
transformForRequestWaitingForUserInputin classAbstractAppTransform- Parameters:
out- output by this transform- Since:
- MicroStrategy Web 9.0.0
- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
renderPortletWarning
public void renderPortletWarning(MarkupOutput out)
-
-