Package com.kenshoo.pl.entity.internal
Class FalseUpdatesPurger<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.internal.FalseUpdatesPurger<E>
-
- All Implemented Interfaces:
CurrentStateConsumer<E>,PostFetchCommandEnricher<E>
public class FalseUpdatesPurger<E extends EntityType<E>> extends java.lang.Object implements PostFetchCommandEnricher<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFalseUpdatesPurger.Builder<E extends EntityType<E>>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenrich(java.util.Collection<? extends ChangeEntityCommand<E>> commands, ChangeOperation changeOperation, ChangeContext changeContext)"Enriches" the commands with system-imposed changes.java.util.Set<EntityField<E,?>>getFieldsToRetain()SupportedChangeOperationgetSupportedChangeOperation()java.util.stream.Stream<EntityField<?,?>>requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)-
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.PostFetchCommandEnricher
fieldsToEnrich, shouldRun
-
-
-
-
Method Detail
-
enrich
public void enrich(java.util.Collection<? extends ChangeEntityCommand<E>> commands, ChangeOperation changeOperation, ChangeContext changeContext)
Description copied from interface:PostFetchCommandEnricher"Enriches" the commands with system-imposed changes.- Specified by:
enrichin interfacePostFetchCommandEnricher<E extends EntityType<E>>- Parameters:
commands- commands to enrichchangeOperation- operationchangeContext- the context of the operation
-
requiredFields
public java.util.stream.Stream<EntityField<?,?>> requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)
- Specified by:
requiredFieldsin interfaceCurrentStateConsumer<E extends EntityType<E>>
-
getSupportedChangeOperation
public SupportedChangeOperation getSupportedChangeOperation()
- Specified by:
getSupportedChangeOperationin interfaceCurrentStateConsumer<E extends EntityType<E>>
-
getFieldsToRetain
public java.util.Set<EntityField<E,?>> getFieldsToRetain()
-
-