Package com.skava.service.impl
Class UpdateSecurityQuestionsImpl
java.lang.Object
com.skava.service.impl.UpdateSecurityQuestionsImpl
- All Implemented Interfaces:
com.skava.core.EcommService<UserCredentialsRequest,
,UsersResponse> UpdateSecurityQuestions
This service class implements UpdateSecurityQuestions and handles the update security questions service request,
process it and save the details in DB. It also implements business logic required to update user security questions.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this create address service.methodFallback
(UserCredentialsRequest request) Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly.process
(UserCredentialsRequest request) This service is used to update security questions and answers for the requested user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
UpdateSecurityQuestionsImpl
public UpdateSecurityQuestionsImpl()Default Constructor
-
-
Method Details
-
process
@SendEvent(eventType="userservice/securityquestions/update", identifier="response_users.id") @HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public UsersResponse process(UserCredentialsRequest request) This service is used to update security questions and answers for the requested user. It will update only for ACTIVE users.- Specified by:
process
in interfacecom.skava.core.EcommService<UserCredentialsRequest,
UsersResponse> - Parameters:
request
- HoldsUserCredentialsRequest
holds user credentials request which is used for updating an user security questions and answers.- Returns:
- Holds
UsersResponse
which returns the success response code and message on successful updation of security questions and answers and if any validations fails, throws an validate exception.
-
getValidator
This method is used to get the respective validator class for this create address service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<UserCredentialsRequest,
UsersResponse> - Returns:
- The list of
ValidatorComponent
object.
-
methodFallback
Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly.- Parameters:
request
- HoldsUserCredentialsRequest
object.- Returns:
- The
UsersResponse
object.
-