Class DeleteNotesServiceValidator

java.lang.Object
com.skava.validator.services.UserValidatorComponent
com.skava.validator.services.DeleteNotesServiceValidator
All Implemented Interfaces:
com.skava.core.EcommComponent, com.skava.core.validation.ValidatorComponent

@Component public class DeleteNotesServiceValidator extends UserValidatorComponent
This class defines delete notes service validator. This validator component used for validating the given request model NotesRequest
Author:
Infosys Equinox
  • Constructor Details

    • DeleteNotesServiceValidator

      public DeleteNotesServiceValidator()
      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 for deleting the user notes. 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. Check whether the userid are valid. If user id is invalid, 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 interface com.skava.core.validation.ValidatorComponent
      Overrides:
      preProcess in class UserValidatorComponent
      Parameters:
      model - This InputModel model holds the NotesRequest object for validating a user id while deleting the user.