Interface UMUserPasswordResetOptionsModel

    • Method Detail

      • isUserQuestionEnabled

        boolean isUserQuestionEnabled​(String realmName)
        Returns true if user personal question/answer feature is enabled.
        Parameters:
        realmName - Name of realm.
        Returns:
        true if user personal question/answer feature is enabled.
      • modifyUserOption

        void modifyUserOption​(List questionAnswers,
                              String userId,
                              boolean forceReset)
                       throws AMConsoleException
        Modifies user's password reset option.
        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.
      • getUserAnswers

        List getUserAnswers​(String userId)
                     throws AMConsoleException
        Returns user's answers for password reset questions.
        Parameters:
        userId - Universal ID of user.
        Returns:
        user's answers for password reset questions.
        Throws:
        AMConsoleException - if answers cannot be retrieved.
      • isForceReset

        boolean isForceReset​(String userId)
        Returns true if force reset is set.
        Parameters:
        userId - Universal ID of user.
        Returns:
        true if force reset is set.
      • 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
      • isLoggedInUser

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

        boolean isRealmAdmin()
        Returns true if current user is an realm administrator.
        Returns:
        true if current user is an realm administrator.