Package com.sun.identity.password.ui
Class PWResetQuestionTiledView
- java.lang.Object
-
- com.iplanet.jato.view.ViewBase
-
- com.iplanet.jato.view.ContainerViewBase
-
- com.iplanet.jato.view.TiledViewBase
-
- com.iplanet.jato.view.RequestHandlingTiledViewBase
-
- com.sun.identity.password.ui.PWResetQuestionTiledView
-
- All Implemented Interfaces:
com.iplanet.jato.RequestHandler,com.iplanet.jato.RequestParticipant,com.iplanet.jato.view.ContainerView,com.iplanet.jato.view.TiledView,com.iplanet.jato.view.View,com.iplanet.jato.view.WebActionHandler,com.iplanet.jato.view.WebActions
public class PWResetQuestionTiledView extends com.iplanet.jato.view.RequestHandlingTiledViewBase implements com.iplanet.jato.view.TiledView, com.iplanet.jato.RequestHandlerPWResetQuestionTiledViewis a tiled view for password reset question view bean.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFLD_ATTR_NAMEName of the secret question attributestatic StringLBL_QUESTIONName of the question fieldstatic StringTF_ANSWERName of the user answer to the secret question-
Fields inherited from class com.iplanet.jato.view.ContainerViewBase
BEGIN_DISPLAY_EVENT_METHOD_PREFIX, BEGIN_DISPLAY_EVENT_METHOD_SUFFIX, END_DISPLAY_EVENT_METHOD_PREFIX, END_DISPLAY_EVENT_METHOD_SUFFIX, eventMethodRegistry, OPTION_ENABLE_QUALIFIELD_CHILD_NAME_LOOKUPS, OPTION_USE_LEGACY_DISPLAY_EVENT_SIGNATURES
-
-
Constructor Summary
Constructors Constructor Description PWResetQuestionTiledView(com.iplanet.jato.view.View parent, String name)Constructs a password reset question tiled view
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginDisplay(com.iplanet.jato.view.event.DisplayEvent event)Set the required information to display a page.protected com.iplanet.jato.view.ViewcreateChild(String name)Creates child componentMap<String,String>getAnswers()Gets the users answers to the secret questionsbooleanisAnswerBlank()Returns true if user does not answer all required questionsbooleannextTile()Moves the current tile position to the next available tile.voidpopulateQuestionsList(String userDN, String orgDN)Populates secret questionKeys listprotected voidregisterChildren()Registers child components/views-
Methods inherited from class com.iplanet.jato.view.RequestHandlingTiledViewBase
acceptRequest, afterAllModelsExecute, afterAllWebActionModelsExecute, afterHandleRequestCommandExecution, afterModelExecutes, afterWebActionModelExecutes, appMessage, beforeHandleRequestCommandExecution, beforeModelExecutes, beforeWebActionModelExecutes, createDefaultExecutionContext, executeAutoDeletingModel, executeAutoDeletingModels, executeAutoExecutingModel, executeAutoExecutingModels, executeAutoInsertingModel, executeAutoInsertingModels, executeAutoRetrievingModel, executeAutoRetrievingModels, executeAutoRetrievingModels, executeAutoUpdatingModel, executeAutoUpdatingModels, getAutoDeletingModels, getAutoExecutingModels, getAutoInsertingModels, getAutoRetrieveExecutionContext, getAutoRetrievingModels, getAutoUpdatingModels, getFirstActionExecutionContext, getLastActionExecutionContext, getModel, getNextActionExecutionContext, getPreviousActionExecutionContext, getPrimaryModelClass, getRefreshActionExecutionContext, getRequestCompletionListenerChildNames, getRequestContext, getRequestParticipantChildNames, getSession, getViewBean, getWebActionMaxDisplayRowsSessionKey, getWebActionModelMaxDisplayTiles, getWebActionModelOffset, getWebActionModels, getWebActionRowOffsetSessionKey, handleRequest, handleWebAction, isAutoRetrieveEnabled, onHandleRequestCommandExecutionError, onModelError, onNoModelDataAvailable, onWebActionExecutionError, requestComplete, setAutoDeletingModels, setAutoExecutingModels, setAutoInsertingModels, setAutoRetrieveEnabled, setAutoRetrieveExecutionContext, setAutoRetrievingModels, setAutoUpdatingModels, setPrimaryModelClass, setPrimaryModelClass, setRequestContext, setWebActionModelMaxDisplayTiles, setWebActionModelOffset
-
Methods inherited from class com.iplanet.jato.view.TiledViewBase
applyPrimaryModelDatasetName, dumpChildValues, dumpChildValues, getChild, getChildValues, getDisplayIndex, getMaxDisplayTiles, getNonIndexedQualifiedName, getNumTiles, getPrimaryModel, getPrimaryModelDatasetName, getPrimaryModelReference, getQualifiedName, getTileIndex, incrementDisplayIndex, isTileDisplayable, mapRequestParameters, nextTileInternal, resetDisplayIndex, resetTileIndex, setDisplayIndex, setMaxDisplayTiles, setPrimaryModel, setPrimaryModel, setPrimaryModelDatasetName, setPrimaryModelReference, setTileIndex
-
Methods inherited from class com.iplanet.jato.view.ContainerViewBase
beginChildDisplay, beginChildDisplay, beginComponentDisplay, beginDisplay, childExists, createChildReserved, endChildDisplay, endChildDisplay, endComponentDisplay, endDisplay, endDisplay, ensureChild, getChild, getChildNames, getChildNames, getChildType, getCommandChildNames, getDefaultModel, getDisplayField, getDisplayFieldBooleanValue, getDisplayFieldDoubleValue, getDisplayFieldIntValue, getDisplayFieldStringValue, getDisplayFieldValue, getNumChildren, getQualifiedCommandChildNames, mapRequestParameter, onValidationException, registerChild, registerDisplayEventHandlers, removeAllChildren, removeChild, removeQualifiedNameIndices, resetChildren, setDefaultModel, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, unregisterChild
-
Methods inherited from class com.iplanet.jato.view.ViewBase
getName, getParent, getParentViewBean, getQualifiedViewNameSeparator, getRootView, getRootView, getSimpleQualifiedName, isVisible, setName, setParent, setQualifiedViewNameSeparator, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.iplanet.jato.view.ContainerView
beginChildDisplay, endChildDisplay, endDisplay, getChild, getChildNames, getChildType, getDefaultModel, getDisplayField, getDisplayFieldValue, getNumChildren, mapRequestParameters, resetChildren, setDisplayFieldValue
-
Methods inherited from interface com.iplanet.jato.RequestHandler
acceptRequest, getRequestContext, handleRequest
-
-
-
-
Field Detail
-
LBL_QUESTION
public static final String LBL_QUESTION
Name of the question field- See Also:
- Constant Field Values
-
TF_ANSWER
public static final String TF_ANSWER
Name of the user answer to the secret question- See Also:
- Constant Field Values
-
FLD_ATTR_NAME
public static final String FLD_ATTR_NAME
Name of the secret question attribute- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PWResetQuestionTiledView
public PWResetQuestionTiledView(com.iplanet.jato.view.View parent, String name)Constructs a password reset question tiled view- Parameters:
parent- of tiled viewname- of view name
-
-
Method Detail
-
registerChildren
protected void registerChildren()
Registers child components/views
-
createChild
protected com.iplanet.jato.view.View createChild(String name)
Creates child component- Overrides:
createChildin classcom.iplanet.jato.view.ContainerViewBase- Parameters:
name- of child component- Returns:
- child component
-
beginDisplay
public void beginDisplay(com.iplanet.jato.view.event.DisplayEvent event) throws com.iplanet.jato.model.ModelControlExceptionSet the required information to display a page.- Specified by:
beginDisplayin interfacecom.iplanet.jato.view.ContainerView- Overrides:
beginDisplayin classcom.iplanet.jato.view.RequestHandlingTiledViewBase- Parameters:
event- display event.- Throws:
com.iplanet.jato.model.ModelControlException- if problem access value of component.
-
nextTile
public boolean nextTile() throws com.iplanet.jato.model.ModelControlExceptionMoves the current tile position to the next available tile.- Specified by:
nextTilein interfacecom.iplanet.jato.view.TiledView- Overrides:
nextTilein classcom.iplanet.jato.view.TiledViewBase- Returns:
- true if another tile was available, false if the position remained unchanged because no next tile was available.
- Throws:
com.iplanet.jato.model.ModelControlException- if manipulation of model fails.
-
populateQuestionsList
public void populateQuestionsList(String userDN, String orgDN)
Populates secret questionKeys list- Parameters:
userDN- user DNorgDN- organization DN
-
getAnswers
public Map<String,String> getAnswers()
Gets the users answers to the secret questions- Returns:
- a map of the users answers to the secret questions
-
isAnswerBlank
public boolean isAnswerBlank()
Returns true if user does not answer all required questions- Returns:
- true if user does not answer all required questions
-
-