Class UMUserPasswordResetOptionsModelImpl

    • Constructor Detail

      • UMUserPasswordResetOptionsModelImpl

        public UMUserPasswordResetOptionsModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                                                   Map map)
      • UMUserPasswordResetOptionsModelImpl

        public UMUserPasswordResetOptionsModelImpl()
    • Method Detail

      • isUserQuestionEnabled

        public boolean isUserQuestionEnabled​(String realmName)
        Returns true if user personal question/answer feature is enabled.
        Specified by:
        isUserQuestionEnabled in interface UMUserPasswordResetOptionsModel
        Parameters:
        realmName - Name of realm.
        Returns:
        true if user personal question/answer feature is enabled.
      • getMaxNumQuestions

        public int getMaxNumQuestions​(String realmName)
        Returns the maximum number of question that can be display in the reset password page.
        Specified by:
        getMaxNumQuestions in interface UMUserPasswordResetOptionsModel
        Returns:
        maximum number of question which can be in reset password page
      • modifyUserOption

        public void modifyUserOption​(List questionAnswers,
                                     String userId,
                                     boolean forceReset)
                              throws AMConsoleException
        Modifies user's password reset option.
        Specified by:
        modifyUserOption in interface UMUserPasswordResetOptionsModel
        Parameters:
        questionAnswers - List of UMUserPasswordResetOptionsData objects.
        userId - Universal ID of user.
        forceReset - true to force reset.
        Throws:
        AMConsoleException - if password reset option cannot be modified.
      • isForceReset

        public boolean isForceReset​(String userId)
        Returns true if force reset is set.
        Specified by:
        isForceReset in interface UMUserPasswordResetOptionsModel
        Parameters:
        userId - Universal ID of user.
        Returns:
        true if force reset is set.
      • isLoggedInUser

        public boolean isLoggedInUser​(String userId)
        Returns true if userId is the same as the logged in user.
        Specified by:
        isLoggedInUser in interface UMUserPasswordResetOptionsModel
        Parameters:
        userId - Universal ID of user.
        Returns:
        true if userId is the same as the logged in user.
      • isRealmAdmin

        public boolean isRealmAdmin()
        Returns true if current user is an realm administrator.
        Specified by:
        isRealmAdmin in interface UMUserPasswordResetOptionsModel
        Returns:
        true if current user is an realm administrator.