Class UMUserPasswordResetOptionsData
- java.lang.Object
-
- com.sun.identity.console.user.model.UMUserPasswordResetOptionsData
-
- All Implemented Interfaces:
Serializable
public class UMUserPasswordResetOptionsData extends Object implements Serializable
UMUserPasswordResetOptionsDatadefines a set of methods that are required by user password reset option viewbean.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_OFFName of default question unselected constantstatic intDEFAULT_ONName of default question selected constantstatic intPERSONAL_OFFName of personal question unselected constantstatic intPERSONAL_ONName of personal question selected constant
-
Constructor Summary
Constructors Constructor Description UMUserPasswordResetOptionsData(String question, String questionLocalizedName, String answer, int dataStatus)Constructs a user password reset options data object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnswer()Returns the answer to the users secret question.intgetDataStatus()Returns the data status stored in this objectStringgetQuestion()Returns question.StringgetQuestionLocalizedName()Returns question localized name.booleanisPersonalQuestion()Returns true if the question is personalbooleanisSelected()Returns true if the user's secret question stored in this object is selected.voidsetAnswer(String answer)Set the answer to the users secret question.voidsetQuestion(String question)Set question.voidsetSelected(boolean selected)Set status of user;s secret question selection.StringtoString()voidvalidate()Validates data for correctness. e.g. selected question need to have an answer.
-
-
-
Field Detail
-
DEFAULT_OFF
public static final int DEFAULT_OFF
Name of default question unselected constant- See Also:
- Constant Field Values
-
DEFAULT_ON
public static final int DEFAULT_ON
Name of default question selected constant- See Also:
- Constant Field Values
-
PERSONAL_OFF
public static final int PERSONAL_OFF
Name of personal question unselected constant- See Also:
- Constant Field Values
-
PERSONAL_ON
public static final int PERSONAL_ON
Name of personal question selected constant- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UMUserPasswordResetOptionsData
public UMUserPasswordResetOptionsData(String question, String questionLocalizedName, String answer, int dataStatus)
Constructs a user password reset options data object- Parameters:
answer- user answer to the secret questiondataStatus- status of question selected or not
-
-
Method Detail
-
getAnswer
public String getAnswer()
Returns the answer to the users secret question.- Returns:
- the answer stored in this object
-
setAnswer
public void setAnswer(String answer)
Set the answer to the users secret question.- Parameters:
answer- Answer to user question.
-
getDataStatus
public int getDataStatus()
Returns the data status stored in this object- Returns:
- the data status stored in this object
-
getQuestion
public String getQuestion()
Returns question.- Returns:
- question.
-
setQuestion
public void setQuestion(String question)
Set question.- Parameters:
question- The password reset question
-
getQuestionLocalizedName
public String getQuestionLocalizedName()
Returns question localized name.- Returns:
- question localized name.
-
isSelected
public boolean isSelected()
Returns true if the user's secret question stored in this object is selected.- Returns:
- true if the question is selected.
-
setSelected
public void setSelected(boolean selected)
Set status of user;s secret question selection.- Parameters:
selected- true if the question is selected.
-
isPersonalQuestion
public boolean isPersonalQuestion()
Returns true if the question is personal- Returns:
- true if question is personal, false otherwise
-
validate
public void validate() throws AMConsoleExceptionValidates data for correctness. e.g. selected question need to have an answer.- Throws:
AMConsoleException
-
-