Interface ChallengeResponseWebService

  • All Known Implementing Classes:
    ChallengeResponseWebServiceImpl

    public interface ChallengeResponseWebService
    ChallengeResponseService provides operations to manage the challenge response functionality that is needed by the self service application
    Author:
    Suneet Shah
    • Method Detail

      • getAllIdentityQuestionGroups

        List<IdentityQuestGroup> getAllIdentityQuestionGroups()
        Retrieves all identity question groups.
        Returns:
        List of identity question groups.
      • getNumOfRequiredQuestions

        Integer getNumOfRequiredQuestions​(String userId,
                                          boolean isEnterprise)
        Retrieves number of required questions.
        Parameters:
        userId - User Id.
        isEnterprise - Is enterprise flag.
        Returns:
        Number of required questions.
      • getNumOfCorrectAnswers

        Integer getNumOfCorrectAnswers​(String userId,
                                       boolean isEnterprise)
        Retrieves number of correct answers.
        Parameters:
        userId - User Id.
        isEnterprise - Is enterprise flag.
        Returns:
        Number of correct questions.
      • count

        Integer count​(IdentityQuestionSearchBean searchBean)
        Counts number of questions that match search bean criteria.
        Parameters:
        searchBean - Search bean.
        Returns:
        Number of questions that matched search criteria.
      • findQuestionBeans

        List<IdentityQuestion> findQuestionBeans​(IdentityQuestionSearchBean searchBean,
                                                 int from,
                                                 int size)
        Retrieve question beans that match search criteria.
        Parameters:
        searchBean - Search bean.
        from - From index.
        size - Max number of beans to retrieve.
        Returns:
        Beans that match search criteria.
      • saveQuestion

        Response saveQuestion​(IdentityQuestion question)
        Saves Identity question.
        Parameters:
        question - Identity question.
        Returns:
        Response.
      • deleteQuestion

        Response deleteQuestion​(String questionId)
        Deletes Identity question with given id.
        Parameters:
        questionId - Identity question id.
        Returns:
        Response.
      • getQuestion

        IdentityQuestion getQuestion​(String questionId)
        Retrieves question that matches given id
        Parameters:
        questionId - Question id.
        Returns:
        Identity question.
      • findAnswerBeans

        List<UserIdentityAnswer> findAnswerBeans​(IdentityAnswerSearchBean searchBean,
                                                 int from,
                                                 int size)
        Retrieves list of UserIdentityAnswer beans that match given search criteria
        Parameters:
        searchBean - Search bean used for criteria.
        from - From index.
        size - Max number of beans to retrieve.
        Returns:
        List of UserIdentityAnswer beans.
      • resetQuestionsForUser

        Response resetQuestionsForUser​(String userId)
        Resets questions for user with given userId.
        Parameters:
        userId - User Id.
        Returns:
        Response.
      • deleteAnswer

        Response deleteAnswer​(String answerId)
        Deletes answer with given ianswerId.
        Parameters:
        answerId - Answer Id.
        Returns:
        Response.
      • saveAnswers

        Response saveAnswers​(List<UserIdentityAnswer> answerList)
        Saves answers.
        Parameters:
        answerList - List of answers for saving.
        Returns:
        Response.
      • validateAnswers

        Response validateAnswers​(List<UserIdentityAnswer> answerList)
        Validates list of answers.
        Parameters:
        answerList - List of answers.
        Returns:
        Response.
      • isResponseValid

        @Deprecated
        boolean isResponseValid​(String userId,
                                List<UserIdentityAnswer> answerList)
                         throws Exception
        Deprecated.
        Determines is the answers that are provided by the user are the same as those stored in the system.
        Parameters:
        userId - User Id.
        answerList - - List of QuestionValue objects
        Returns:
        True if response is valid, otherwise false.
        Throws:
        Exception
      • isResponseCorrect

        Response isResponseCorrect​(String userId,
                                   List<UserIdentityAnswer> answerList)
                            throws Exception
        Determines is the answers that are provided by the user are the same as those stored in the system.
        Parameters:
        userId - User Id.
        answerList - - List of QuestionValue objects
        Returns:
        Response with value true if response is valid, otherwise false.
        Throws:
        Exception
      • isUserAnsweredSecurityQuestions

        boolean isUserAnsweredSecurityQuestions​(String userId)
                                         throws Exception
        Checks if user answered security questions.
        Parameters:
        userId - User Id.
        Returns:
        True if answered, false otherwise.
        Throws:
        Exception
      • isQuestionsRequired

        boolean isQuestionsRequired​(String userId)