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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSource
Holds the defaultValue of the collection property attribute -
Constructor Summary
ConstructorsConstructorDescriptionCreateCollectionValidator
(org.springframework.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 messageSourceHolds 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 interfacecom.skava.core.validation.ValidatorComponent
- Parameters:
model
- holds the vaue for model of inputmodel type.
-