Class CollectionCreateAndUpdateValidator

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

@Service public class CollectionCreateAndUpdateValidator extends UserValidatorComponent
This class defines Collection Create and Update Validator This validator component used for validating the given request model Collection
Author:
Infosys Equinox
  • Constructor Details

    • CollectionCreateAndUpdateValidator

      public CollectionCreateAndUpdateValidator()
      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 business identifier is valid or not from the given request model. If the identifier is valid, then the main process implementation method will exceute. Else this preprocess method will throw the validation error response will be return as a response with respective http status code
      • Check whether the collection name is valid or not from the given request model. If the collection name is valid, then the main process implementation method will exceute. Else this preprocess method will throw the validation error response will be return as a response with respective http status code
      Specified by:
      preProcess in interface com.skava.core.validation.ValidatorComponent
      Overrides:
      preProcess in class UserValidatorComponent
      Parameters:
      model - This InputModel model holds the Collection request model used for the validations of collection name and business id.