Interface EntityHistoryConfiguration
- All Known Implementing Classes:
DefaultEntityHistoryConfig
,LookupEntityHistoryConfig
,PageEntityHistoryConfiguration
public interface EntityHistoryConfiguration
Configuration that defines when a history snapshot is created for a certain entity and
what is included in the snapshot.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIncludedFields
(EntityModel entityModel) getIncludedRelations
(Entity centerEntity) boolean
int
priority()
boolean
supports
(EntityModel entityModel, boolean isRootEntity)
-
Method Details
-
supports
- Returns:
- true if
EntityHistoryConfiguration
supports this entity model. `isRootEntity` is used to distinguish between a lookup entity itself is changed and the full xml should be generated or a related entity is changed and only some fields should be in the xml.
-
priority
int priority() -
isApplicableForHistory
- Returns:
- true if the given event should trigger the creation of a history entry
-
getIncludedFields
- Returns:
- which fields should be included in the history snapshot for the given entity model
-
getIncludedRelations
- Returns:
- which relations should be included in the history snapshot for the given entity model
-