Package com.kenshoo.pl.entity.spi
Interface CurrentStateConsumer<E extends EntityType<E>>
-
- All Known Subinterfaces:
ChangesFilter<E>,ChangesValidator<E>,OutputGenerator<E>,PostFetchCommandEnricher<E>
- All Known Implementing Classes:
AuditRequiredFieldsCalculator,CompoundChangesValidator,CopyFieldsOnCreateEnricher,CopyFieldsOnUpdateEnricher,CreationDateEnricher,DbCommandsOutputGenerator,DefaultFieldValueEnricher,EntityChangeCompositeValidator,ExistingFieldModifier,FakeAutoIncGenerator,FalseUpdatesPurger,InitialStateRecorder,MissingEntitiesFilter,MissingFieldEnricher,MissingParentEntitiesFilter,RequiredFieldsChangesFilter,SingleFieldEnricher,UniquenessValidator,ValidationFilter
public interface CurrentStateConsumer<E extends EntityType<E>>This interface is implemented by pluggable components that require the current state of entities. For instance, a validator that needs a profile ID of an currentState, would indirectly implement this interface. Client classes should not implement this interface directly, it is used internally by the framework.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default SupportedChangeOperationgetSupportedChangeOperation()default java.util.stream.Stream<? extends EntityField<?,?>>requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)static <E extends EntityType<E>>
java.util.function.Predicate<CurrentStateConsumer<E>>supporting(ChangeOperation op)static <E extends EntityType<E>>
java.util.function.Predicate<ChangeOperation>supporting(CurrentStateConsumer<E> consumer)
-
-
-
Method Detail
-
getSupportedChangeOperation
default SupportedChangeOperation getSupportedChangeOperation()
-
requiredFields
default java.util.stream.Stream<? extends EntityField<?,?>> requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)
-
supporting
static <E extends EntityType<E>> java.util.function.Predicate<CurrentStateConsumer<E>> supporting(ChangeOperation op)
-
supporting
static <E extends EntityType<E>> java.util.function.Predicate<ChangeOperation> supporting(CurrentStateConsumer<E> consumer)
-
-