Class CreateCollectionValidator

java.lang.Object
com.skava.ratingandreviews.collection.validator.CreateCollectionValidator
All Implemented Interfaces:
com.skava.core.EcommComponent, com.skava.core.validation.ValidatorComponent

@Component public class CreateCollectionValidator extends Object implements com.skava.core.validation.ValidatorComponent

Class CreateCOllectionValidator

This class defines Collection Create and Update Validator This validator component used for validating the given collection request model.

Author:
Infosys Equinox
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.MessageSource
    Holds the defaultValue of the collection property attribute
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateCollectionValidator(org.springframework.context.MessageSource messageSource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    preProcess(com.skava.core.validation.InputModel model)
    The preProcess Method.

    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

    postProcess, preProcess
  • Field Details

    • messageSource

      protected org.springframework.context.MessageSource messageSource
      Holds the defaultValue of the collection property attribute
  • Constructor Details

    • CreateCollectionValidator

      @Autowired public CreateCollectionValidator(org.springframework.context.MessageSource messageSource)
  • Method Details

    • preProcess

      public void preProcess(com.skava.core.validation.InputModel model)

      The preProcess Method.

      This method creates the collection request for validation includes Name validation, Desc validation,BusinessId vaidation,local validation,Status validation

      Specified by:
      preProcess in interface com.skava.core.validation.ValidatorComponent
      Parameters:
      model - holds the vaue for model of inputmodel type.