Interface PWResetQuestionModel
-
- All Superinterfaces:
PWResetModel
- All Known Implementing Classes:
PWResetQuestionModelImpl
public interface PWResetQuestionModel extends PWResetModel
PWResetQuestionModelImpldefines a set of methods that are required by password reset question viewbean.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.password.ui.model.PWResetModel
ACTIVE, DEFAULT_RB, PW_RESET_SERVICE, USER_SERVICE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLocalizedStrForQuestion(String question)Gets the localized string for the questionintgetMaxNumQuestions(String realmName)Returns the maximum number of question that can be display in the reset password page.StringgetMissingAnswerMessage()Gets missing answer messageStringgetOKBtnLabel()Gets ok button labelStringgetPreviousBtnLabel()Gets previous button labelStringgetPWQuestionTitleString(String attrValue)Gets password reset question titleMapgetSecretQuestions(String userDN, String orgDN)Gets map of secret questionsbooleanisQuestionAvailable(String userDN, String orgDN)Returns true if the secret questions are available for a uservoidresetPassword(String userDN, String orgDN, Map map)Resets the user password.voidsetNoQuestionsInfoMsg()Sets no questions configured message-
Methods inherited from interface com.sun.identity.password.ui.model.PWResetModel
debugError, debugError, debugMessage, debugMessage, debugWarning, debugWarning, getCopyRightText, getErrorMessage, getErrorString, getErrorTitle, getHTMLPageTitle, getInformationMessage, getJavaLogoLabel, getLocalizedString, getMailAttribute, getPasswordResetMessage, getProductLabel, getRootSuffix, getSunLogoLabel, getUserId, isError, isPasswordResetEnabled, isUserLockout, messageEnabled, readPWResetProfile, setUserDN, setUserLocale, warningEnabled
-
-
-
-
Method Detail
-
resetPassword
void resetPassword(String userDN, String orgDN, Map map) throws PWResetException
Resets the user password.- Parameters:
userDN- user DNorgDN- organization DNmap- map of user question and answer- Throws:
PWResetException- if unable to reset the password
-
getSecretQuestions
Map getSecretQuestions(String userDN, String orgDN)
Gets map of secret questions- Parameters:
userDN- DN of the user to get the questionorgDN- DN of the organization- Returns:
- map of secret question
-
getPWQuestionTitleString
String getPWQuestionTitleString(String attrValue)
Gets password reset question title- Parameters:
attrValue- user attribute value- Returns:
- password reset question title
-
getOKBtnLabel
String getOKBtnLabel()
Gets ok button label- Returns:
- ok button label
-
getPreviousBtnLabel
String getPreviousBtnLabel()
Gets previous button label- Returns:
- previous button label
-
setNoQuestionsInfoMsg
void setNoQuestionsInfoMsg()
Sets no questions configured message
-
getMissingAnswerMessage
String getMissingAnswerMessage()
Gets missing answer message- Returns:
- missing answer message
-
isQuestionAvailable
boolean isQuestionAvailable(String userDN, String orgDN)
Returns true if the secret questions are available for a user- Parameters:
userDN- user DNorgDN- organization DN- Returns:
- true if the questions are available, false otherwise
-
getLocalizedStrForQuestion
String getLocalizedStrForQuestion(String question)
Gets the localized string for the question- Parameters:
question- i8n key for the question- Returns:
- localized string for the question
-
getMaxNumQuestions
int getMaxNumQuestions(String realmName)
Returns the maximum number of question that can be display in the reset password page.- Returns:
- maximum number of question which can be in reset password page
-
-