Class LoginXHTMLTransform
- 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
-
- com.microstrategy.web.app.transforms.LoginXHTMLTransform
-
- All Implemented Interfaces:
AppTransform,LayoutTransform,Transform
public class LoginXHTMLTransform extends LoginTransform implements LayoutTransform
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. It extends theLoginTransformby generating well-formed XHTML, supporting layout-xml, and using external css files for all formatting.- Since:
- MicroStrategy Web 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.LoginTransform
_fpImgLowLeft, _fpImgLowRight, _fpImgUpLeft, _fpImgUpRight, FP_IMAGE_LOW_LEFT_CORNER, FP_IMAGE_LOW_RIGHT_CORNER, FP_IMAGE_UP_LEFT_CORNER, FP_IMAGE_UP_RIGHT_CORNER
-
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 LoginXHTMLTransform()Default constructor, initializes formal parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnchorTaggenerateAnchor(WebEvent event)Overwrites the parent method by setting special attributes according to the event provided.voidrenderCancelButton(MarkupOutput out)Generates the HTML output for displaying a Cancel button to the user for cancelling the login request.voidrenderFacebookAuthenticationLink(MarkupOutput out, WebEvent event)voidrenderGuestAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for guest authentication to show to users for log into a project.voidrenderKerberosAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for Kerberos authentication to show to users for log into a project.voidrenderLoginButton(MarkupOutput out)Generates the HTML to present the user with the button for submitting a login request.voidrenderLoginDialog(MarkupOutput out)Render the actual login dialog.voidrenderLoginDialogFooter(MarkupOutput out)Render the footer for the login dialog box.voidrenderLoginDialogHeader(MarkupOutput out)Render the header for the login dialog box.voidrenderLoginModeToggle(MarkupOutput out)voidrenderNTGuestLoginSection(MarkupOutput out)Generates the HTML to present the user with the options for logging into a project with NT and/or Guest and/or Kerberos authentication modes, according to what the Administrator enabled.voidrenderPassword(LoginBean bean, WebEvent loginEvent, Tag divTag)voidrenderSAMLAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for SAML authentication, used to recover user sessionvoidrenderSSPAuthenticationLink(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.voidrenderTwoStepVerificationCodeOption(WebEvent loginEvent, Tag divTag, boolean visible)voidrenderUserName(LoginBean bean, WebEvent loginEvent, Tag auxDivTag)voidrenderUsherLogin(MarkupOutput out)responsible for rendering the html where the QR code will be loaded by the JavascriptvoidrenderUsherLoginHiddenForm(MarkupOutput out, WebEvent event)Generate usher login formvoidrenderUsherLoginPlaceholder(MarkupOutput out)voidrenderWindowsAuthenticationLink(MarkupOutput out, WebEvent event)Render the link for Windows (NT) authentication to show to users for log into a project.voidtransformForRequestSuccessful(MarkupOutput out)Generates the graphical output for theLoginBeaninstance being transformed, when it's state isEnumRequestStatus.WebBeanRequestSuccessful.-
Methods inherited from class com.microstrategy.web.app.transforms.LoginTransform
getArgumentName, getCancelEvent, getDescription, getHelpEvent, getLoginBean, getLoginEvent, getLoginEventFormAction, getSupportedBeanType, initializeImages, isAutoCompleteEnabled, isLoginFirst, renderLoginDialog, renderLoginDialogFooter, renderLoginDialogHeader, renderNTGuestLoginSection, renderPortletWarning, renderProjectSection, renderServerSection, renderStandardLoginSection, transformForRequestWaitingForUserInput
-
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, 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, 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.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getDescription, getFormalParams, getID, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Method Detail
-
renderLoginDialogHeader
public void renderLoginDialogHeader(MarkupOutput out)
Render the header for the login dialog box. Overwrites the parent method by generating the output as a series ofDIVandSPANHTML tags instead of contents of a table.- Overrides:
renderLoginDialogHeaderin classLoginTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
renderLoginDialogFooter
public void renderLoginDialogFooter(MarkupOutput out)
Render the footer for the login dialog box. Overwrites the parent method by not rendering any information.- Overrides:
renderLoginDialogFooterin classLoginTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
renderUsherLoginPlaceholder
public void renderUsherLoginPlaceholder(MarkupOutput out)
-
renderLoginModeToggle
public void renderLoginModeToggle(MarkupOutput out)
-
renderUsherLogin
public void renderUsherLogin(MarkupOutput out)
responsible for rendering the html where the QR code will be loaded by the Javascript- Parameters:
out-
-
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. Overwrites the parent method by generating the output as a series ofDIV,SPANand other HTML tags instead of contents of a table.- Overrides:
renderLoginDialogin classLoginTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
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. Overwrites the parent method by generating the output as a series ofDIV,SPANand other HTML tags instead of contents of a table.- Overrides:
renderStandardLoginSectionin classLoginTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
renderTwoStepVerificationCodeOption
public void renderTwoStepVerificationCodeOption(WebEvent loginEvent, Tag divTag, boolean visible)
-
renderCancelButton
public void renderCancelButton(MarkupOutput out)
Generates the HTML output for displaying a Cancel button to the user for cancelling the login request.- Overrides:
renderCancelButtonin classAbstractAppTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
renderLoginButton
public void renderLoginButton(MarkupOutput out)
Generates the HTML to present the user with the button for submitting a login request.- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
renderSAMLAuthenticationLink
public void renderSAMLAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for SAML authentication, used to recover user session- 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
-
renderGuestAuthenticationLink
public void renderGuestAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for guest authentication to show to users for log into a project. Overwrites the parent method by generating the information as aFORMwith a button with the information for submitting a guest authentication request.- Overrides:
renderGuestAuthenticationLinkin classLoginTransform- 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
-
renderWindowsAuthenticationLink
public void renderWindowsAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for Windows (NT) authentication to show to users for log into a project. Overwrites the parent method by generating the information as aFORMwith a button with the information for submitting a windows authentication request.- Overrides:
renderWindowsAuthenticationLinkin classLoginTransform- 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)
- Overrides:
renderSSPAuthenticationLinkin classLoginTransform- Since:
- MicroStrategy Web 9.0.0
-
renderKerberosAuthenticationLink
public void renderKerberosAuthenticationLink(MarkupOutput out, WebEvent event)
Render the link for Kerberos 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- Since:
- MicroStrategy Web 8.1.2
-
renderFacebookAuthenticationLink
public void renderFacebookAuthenticationLink(MarkupOutput out, WebEvent event)
-
renderUsherLoginHiddenForm
public void renderUsherLoginHiddenForm(MarkupOutput out, WebEvent event)
Generate usher login form- Parameters:
out-event-
-
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 and/or Kerberos authentication modes, according to what the Administrator enabled. Overwrites the parent method by generating the output as a series ofDIV,SPANand other HTML tags instead of contents of a table.- Overrides:
renderNTGuestLoginSectionin classLoginTransform- Parameters:
out-MarkupOutputinstance where to save the contents to render
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Generates the graphical output for theLoginBeaninstance being transformed, when it's state isEnumRequestStatus.WebBeanRequestSuccessful.- Overrides:
transformForRequestSuccessfulin classLoginTransform- Parameters:
out-MarkupOutputinstance where to create the HTML output- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Overwrites the parent method by setting special attributes according to the event provided.- Overrides:
generateAnchorin classAbstractAppTransform- Parameters:
event-WebEventinstance with the information from where the anchor will be created- Returns:
- an
AnchorTaginstance initialized with the information from the event for enabling the user to submit a request.
-
-