Package com.skava.validator.services
Class CreateUserSecurityQuestionsValidator
java.lang.Object
com.skava.validator.services.CreateUserSecurityQuestionsValidator
- All Implemented Interfaces:
com.skava.core.EcommComponent
,com.skava.core.validation.ValidatorComponent
@Component
public class CreateUserSecurityQuestionsValidator
extends Object
implements com.skava.core.validation.ValidatorComponent
This class defines create user security questions validator.
This validator class used for validating the given request model
UserRequest
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
postProcess
(com.skava.core.validation.InputModel model, com.skava.core.validation.OutputModel response) This method will execute once after the main implementation process gets completed.void
preProcess
(com.skava.core.validation.InputModel model) This pre process method is used to validate the input request model.If the validation fails then it will throw the validation error response will be return as a response with respective http status code, otherwise the main process implementation will execute.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.EcommComponent
destroy, init, onEvent
Methods inherited from interface com.skava.core.validation.ValidatorComponent
preProcess
-
Constructor Details
-
CreateUserSecurityQuestionsValidator
public CreateUserSecurityQuestionsValidator()Default constructor
-
-
Method Details
-
preProcess
public void preProcess(com.skava.core.validation.InputModel model) This pre process method is used to validate the input request model.If the validation fails then it will throw the validation error response will be return as a response with respective http status code, otherwise the main process implementation will execute.
The following are the validation that occurs- Check whether the given user security questions and answers are valid or not. If not valid , then this pre process method will throw the validation error response will be return as a response with respective http status code Else the main process implementation will execute.
- Specified by:
preProcess
in interfacecom.skava.core.validation.ValidatorComponent
- Parameters:
model
- ThisInputModel
model holds theUserRequest
request model used for validating the security questions.
-
postProcess
public void postProcess(com.skava.core.validation.InputModel model, com.skava.core.validation.OutputModel response) This method will execute once after the main implementation process gets completed.- Specified by:
postProcess
in interfacecom.skava.core.validation.ValidatorComponent
- Parameters:
model
- HoldsUserRequest
object.response
- HoldsOutputModel
object.
-