Class ChangePasswordGeneralTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractChangePasswordTransform
-
- com.microstrategy.web.app.transforms.ChangePasswordGeneralTransform
-
- All Implemented Interfaces:
AppTransform
,Transform
- Direct Known Subclasses:
ChangePasswordPreferencesTransform
public class ChangePasswordGeneralTransform extends AbstractChangePasswordTransform
This transform renders the change password dialog to the user, including the form input fields so the setting can be updated if submitting the request.- 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 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 ChangePasswordGeneralTransform()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnchorTag
generateAnchor(WebEvent event)
Overwrites the parent method by assigning a default URL information to the anchor (based on thegetDoneURLLink
method) when event is not defined.protected java.lang.String
getArgumentName(WebEvent event, int argumentId)
Get the name of the argument assigned to theWebEvent
, based on the indicated id.protected WebEvent
getCancelEvent()
Returns aWebEvent
instance of the event submitted when the user clicks on the Cancel button.protected WebEvent
getChangePasswordEvent(ChangePasswordBean bean)
Based on the information available on the bean, generate the event that will be used for allowing the user to change the passwordprotected WebEvent
getDefaultEvent(ChangePasswordBean bean)
Get theWebEvent
that will be shown to the user once the password has been changed.java.lang.String
getDescription()
Returns the textual description of the transformprotected java.lang.String
getDoneURLLink(ChangePasswordBean bean)
Determines the URL to use for indicating where to take the user once the password has been changed.void
renderChangePasswordError(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean, when its state indicates there was a problem with the information available or provided by the user.void
renderChangePasswordGeneral(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean, when its state indicates there is input expected from the user.void
renderChangePasswordSuccessful(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean.void
renderExitChangePasswordPage(MarkupOutput out)
Render a message indicating the user where s/he is now connected to, if the information is available.void
renderMissingFieldsError(MarkupOutput out, java.lang.String errorField)
If error was found given missing information, this method displays the corresponding message.void
renderSuccessfulMessage(MarkupOutput out)
Render a message to indicate the user's password has been changed.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractChangePasswordTransform
getChangePasswordBean, getSupportedBeanType, getTitle, initializeTransform, isAutoCompleteEnabled, transformForRequestInError, transformForRequestSuccessful, 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, 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, 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
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Returns the textual description of the transform- Returns:
- the description of the transform
-
renderChangePasswordError
public void renderChangePasswordError(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean, when its state indicates there was a problem with the information available or provided by the user. By default, called by thetransformForRequestInError()
method. Since when the bean is in error state, the user can still enter information for having it processed again, this method by default callsrenderChangePasswordGeneral()
.- Specified by:
renderChangePasswordError
in classAbstractChangePasswordTransform
- Parameters:
out
-MarkupOutput
instance where to save the HTML to be shown to the user
-
renderChangePasswordGeneral
public void renderChangePasswordGeneral(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean, when its state indicates there is input expected from the user. By default, called by thetransformForRequestWaitingForUserInput()
method. Generates the dialog interface for the user to be able to change his or her password. It also displays information about where this change will be applied: which server, for which user, etc. If not enough information is available for proceeding with a future change password request, an error message will be displayed indicating which fields are missing.- Specified by:
renderChangePasswordGeneral
in classAbstractChangePasswordTransform
- Parameters:
out
-MarkupOutput
instance where to save the HTML to be shown to the user
-
renderChangePasswordSuccessful
public void renderChangePasswordSuccessful(MarkupOutput out)
Render the HTML corresponding to this transform for theChangePasswordBean
bean. By default, called by thetransformForRequestSuccessful()
method.- Specified by:
renderChangePasswordSuccessful
in classAbstractChangePasswordTransform
- Parameters:
out
-MarkupOutput
instance where to save the HTML to be shown to the user.
-
renderSuccessfulMessage
public void renderSuccessfulMessage(MarkupOutput out)
Render a message to indicate the user's password has been changed. By default, it is the localized descriptor corresponding to Your password has been changed.- Parameters:
out
-MarkupOutput
where the resulting HTML to render will be saved
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Overwrites the parent method by assigning a default URL information to the anchor (based on thegetDoneURLLink
method) when event is not defined.- Overrides:
generateAnchor
in classAbstractAppTransform
- Parameters:
event
-WebEvent
instance from where to generate the anchor. If not provided, the url information assigned will come from thegetDoneURLLink
method.- Returns:
AnchorTag
instance with the anchor to render- Since:
- MicroStrategy Web 8.0.0
-
renderExitChangePasswordPage
public void renderExitChangePasswordPage(MarkupOutput out)
Render a message indicating the user where s/he is now connected to, if the information is available. Also, a link to take the user to another page, as indicated by thegetDoneURLLink()
method.- Parameters:
out
-MarkupOutput
where the resulting HTML to render will be saved
-
renderMissingFieldsError
public void renderMissingFieldsError(MarkupOutput out, java.lang.String errorField)
If error was found given missing information, this method displays the corresponding message. It will also display a link for allowing the user to return to a default page, indicated by thegetDefaultEvent()
method.- Parameters:
out
-MarkupOutput
instance where the output HTML will be placederrorField
- Error field(s) that generated the error
-
getChangePasswordEvent
protected WebEvent getChangePasswordEvent(ChangePasswordBean bean)
Based on the information available on the bean, generate the event that will be used for allowing the user to change the password- Parameters:
bean
-ChangePasswordBean
instance currently being transformed- Returns:
- a
WebEvent
for the change password action. It will returnnull
if none could be generated.
-
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:
getArgumentName
in classAbstractAppTransform
- Parameters:
event
-WebEvent
from where the argument name will be retrievedargumentId
-int
with 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
.
-
getDefaultEvent
protected WebEvent getDefaultEvent(ChangePasswordBean bean)
Get theWebEvent
that will be shown to the user once the password has been changed. Typically, after the password is changed, the user is already logged into a project (except if the Administrator requested Login First), so this event shall take the user to the Start Page of that project.- Parameters:
bean
-ChangePasswordBean
instance currently being transformed- Returns:
- the
WebEvent
to use for the link to display the user, where s/he will be taken to after the password has been changed. Returnsnull
if the application does not support the event.
-
getDoneURLLink
protected java.lang.String getDoneURLLink(ChangePasswordBean bean)
Determines the URL to use for indicating where to take the user once the password has been changed. By default, if the bean already specifies the target, that's the link to be used. Otherwise, it will use the URL information provided by the Default Event (getDefaultEvent()
method call)- Parameters:
bean
-ChangePasswordBean
instance currently being transformed- Returns:
- the URL information to use for the link to show to the user after
the password has been changed. Returns a
null
if it could not be calculated.
-
getCancelEvent
protected WebEvent getCancelEvent()
Returns aWebEvent
instance of the event submitted when the user clicks on the Cancel button.- Overrides:
getCancelEvent
in classAbstractAppTransform
- Returns:
WebEvent
instance for the Cancel button.- Since:
- MicroStrategy Web 8.0.0
-
-