Interface PostFetchCommandEnricher<E extends EntityType<E>>

    • Method Detail

      • enrich

        void enrich​(java.util.Collection<? extends ChangeEntityCommand<E>> commands,
                    ChangeOperation changeOperation,
                    ChangeContext changeContext)
        "Enriches" the commands with system-imposed changes.
        Parameters:
        commands - commands to enrich
        changeOperation - operation
        changeContext - the context of the operation
      • fieldsToEnrich

        default java.util.stream.Stream<EntityField<E,​?>> fieldsToEnrich()
        return stream of enriched fields according to input commands.
        Returns:
        the fields should be enriched
      • shouldRun

        default boolean shouldRun​(java.util.Collection<? extends EntityChange<E>> entityChanges)
        Parameters:
        entityChanges - to enrich
        Returns:
        indicator that enricher should be run