Class PWResetUserValidationModelImpl

    • Constructor Detail

      • PWResetUserValidationModelImpl

        public PWResetUserValidationModelImpl()
        Constructs a password reset user validation model object
    • Method Detail

      • getUserAttr

        public String getUserAttr​(String orgDN)
        Returns user attribute configured in password reset service.
        Specified by:
        getUserAttr in interface PWResetUserValidationModel
        Parameters:
        orgDN - Realm name.
        Returns:
        user attribute configured in password reset service.
      • isUserExists

        public boolean isUserExists​(String userAttrValue,
                                    String userAttrName,
                                    String realm)
        Returns 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.
        Specified by:
        isUserExists in interface PWResetUserValidationModel
        Parameters:
        userAttrValue - User attribute value to search for.
        userAttrName - User attribute name to search for.
        realm - Base realm
        Returns:
        true if user exists.
      • setRealmFlag

        public void setRealmFlag​(boolean value)
        Sets the organization DN flag
        Specified by:
        setRealmFlag in interface PWResetUserValidationModel
        Parameters:
        value - organization flag value either true or false
      • getLocalizedStrForAttr

        public String getLocalizedStrForAttr​(String attrName)
        Returns the localized string for attribute name in the user service.
        Specified by:
        getLocalizedStrForAttr in interface PWResetUserValidationModel
        Parameters:
        attrName - attribute name
        Returns:
        localized string for the attribute
      • isUserActive

        public boolean isUserActive​(String realm)
        Returns true if the user is active and account is not expired. This method will use the user DN stored in the model to determine if the user's account is active or has expired.
        Specified by:
        isUserActive in interface PWResetUserValidationModel
        Parameters:
        realm - organization DN
        Returns:
        true if user is active and account is not expired.
      • isUserAttrValueValid

        public boolean isUserAttrValueValid​(String orgDN,
                                            String userAttrValue)
        Returns 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 characters
        Specified by:
        isUserAttrValueValid in interface PWResetUserValidationModel
        Parameters:
        orgDN - organization DN.
        userAttrValue - User enter data for user validation.
        Returns:
        true if entered data is valid.