public class PWResetUserValidationModelImpl extends PWResetModelImpl implements PWResetUserValidationModel
PWResetUserValidationModelImpl
defines a set of methods that
are required by password reset user validation viewbean.Modifier and Type | Field and Description |
---|---|
static String |
STRING_FALSE
Name for string false value
|
debug, errorMsg, informationMsg, localeContext, logger, passwordResetMsg, pwResetLockoutAttrName, pwResetLockoutAttrValue, resBundle, ssoToken, STRING_TRUE, userId
ACTIVE, DEFAULT_RB, PW_RESET_SERVICE, USER_SERVICE
Constructor and Description |
---|
PWResetUserValidationModelImpl()
Constructs a password reset user validation model object
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedStrForAttr(String attrName)
Returns the localized string for attribute name in the user
service.
|
String |
getMissingUserAttrMessage(String userAttrName)
Returns missing user attribute message.
|
String |
getNextBtnLabel()
Gets next button label
|
String |
getRealm(String realm)
Returns realm name.
|
String |
getUserAttr(String orgDN)
Returns user attribute configured in password reset service.
|
String |
getUserRealm()
Realm for the user resetting password.
|
String |
getUserValidateTitleString()
Gets user validation title
|
boolean |
isUserActive(String realm)
Returns true if the user is active and account is not expired.
|
boolean |
isUserAttrValueValid(String orgDN,
String userAttrValue)
Returns
true if the entered user attr value
is comprised of safe characters. |
boolean |
isUserExists(String userAttrValue,
String userAttrName,
String realm)
Returns
true if the user exists. |
boolean |
isValidRealm()
Returns
true if the realm is valid. |
void |
setRealmFlag(boolean value)
Sets the organization DN flag
|
void |
setValidRealm(String realm)
Sets the valid realm flag.
|
debugError, debugError, debugMessage, debugMessage, debugWarning, debugWarning, getAttributeValue, getAttributeValues, getCopyRightText, getDefaultAttrValues, getErrorMessage, getErrorString, getErrorTitle, getFirstElement, getHTMLPageTitle, getInformationMessage, getJavaLogoLabel, getL10NAttributeName, getL10NAttributeName, getLocalizedString, getMailAttribute, getPasswordResetFailureLockoutCount, getPasswordResetFailureLockoutDuration, getPasswordResetFailureLockoutMultiplier, getPasswordResetFailureLockoutTime, getPasswordResetLockoutAttributeName, getPasswordResetLockoutAttributeValue, getPasswordResetLockoutNotification, getPasswordResetLockoutUserWarningCount, getPasswordResetMessage, getProductLabel, getPWResetServiceSchema, getRootSuffix, getSSOToken, getSunLogoLabel, getUserId, getUserLocaleContext, isAttributeSet, isError, isPasswordResetEnabled, isPasswordResetFailureLockoutEnabled, isUserLockout, messageEnabled, populateLockoutValues, readPWResetProfile, sendEmailToUser, setUserDN, setUserLocale, warningEnabled, writeLog, writeLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public static final String STRING_FALSE
public PWResetUserValidationModelImpl()
public String getUserAttr(String orgDN)
getUserAttr
in interface PWResetUserValidationModel
orgDN
- Realm name.public boolean isUserExists(String userAttrValue, String userAttrName, String realm)
true
if the user exists. If more than one users is
found then it will return false and view bean will display an error
message.isUserExists
in interface PWResetUserValidationModel
userAttrValue
- User attribute value to search for.userAttrName
- User attribute name to search for.realm
- Base realmtrue
if user exists.public String getUserValidateTitleString()
getUserValidateTitleString
in interface PWResetUserValidationModel
public String getNextBtnLabel()
getNextBtnLabel
in interface PWResetUserValidationModel
public void setRealmFlag(boolean value)
setRealmFlag
in interface PWResetUserValidationModel
value
- organization flag value either true or falsepublic boolean isValidRealm()
true
if the realm is valid.isValidRealm
in interface PWResetUserValidationModel
true
if the realm is valid.public String getLocalizedStrForAttr(String attrName)
getLocalizedStrForAttr
in interface PWResetUserValidationModel
attrName
- attribute namepublic String getMissingUserAttrMessage(String userAttrName)
getMissingUserAttrMessage
in interface PWResetUserValidationModel
userAttrName
- user attribute name.public boolean isUserActive(String realm)
isUserActive
in interface PWResetUserValidationModel
realm
- organization DNpublic String getRealm(String realm) throws PWResetException
getRealm
in interface PWResetUserValidationModel
realm
- Realm name.PWResetException
- if unable to get realm or realm does not existspublic void setValidRealm(String realm)
setValidRealm
in interface PWResetUserValidationModel
realm
- Realm Name.public String getUserRealm()
getUserRealm
in interface PWResetUserValidationModel
public boolean isUserAttrValueValid(String orgDN, String userAttrValue)
true
if the entered user attr value
is comprised of safe characters. It will return false
and view bean will display an error message if it
contains invalid charactersisUserAttrValueValid
in interface PWResetUserValidationModel
orgDN
- organization DN.userAttrValue
- User enter data for user validation.true
if entered data is valid.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.