Class CompoundChangesValidator<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.spi.helpers.CompoundChangesValidator<E>
-
- All Implemented Interfaces:
ChangesValidator<E>,CurrentStateConsumer<E>
public class CompoundChangesValidator<E extends EntityType<E>> extends java.lang.Object implements ChangesValidator<E>
-
-
Constructor Summary
Constructors Constructor Description CompoundChangesValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregister(ChangesValidator<E> changesValidator)java.util.stream.Stream<? extends EntityField<?,?>>requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)voidvalidate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation changeOperation, ChangeContext changeContext)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.kenshoo.pl.entity.spi.CurrentStateConsumer
getSupportedChangeOperation
-
-
-
-
Method Detail
-
register
public void register(ChangesValidator<E> changesValidator)
-
validate
public void validate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation changeOperation, ChangeContext changeContext)
- Specified by:
validatein interfaceChangesValidator<E extends EntityType<E>>
-
requiredFields
public java.util.stream.Stream<? extends EntityField<?,?>> requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)
- Specified by:
requiredFieldsin interfaceCurrentStateConsumer<E extends EntityType<E>>
-
-