Interface EntityHistoryService
- All Known Implementing Classes:
EntityHistoryServiceImpl
public interface EntityHistoryService
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigForEntity
(Entity entity) returns an entity according to the model name of the givenEntity
getHistoryRelatedEntities
(Entity sourceEntity, HistoryConfig historyConfig, Set<EntityId> createdEntityIds) gets the entities related to a history entity.void
setDefaults
(Entity sourceEntity, Entity historyEntity)
-
Method Details
-
setDefaults
-
getHistoryRelatedEntities
EntityList getHistoryRelatedEntities(Entity sourceEntity, HistoryConfig historyConfig, Set<EntityId> createdEntityIds) gets the entities related to a history entity. The path provided byHistoryConfig.getPathToHistoryRelatedEntity()
will be used to resolve them and only the Entities which fulfill the condition provided byHistoryConfig.getCondition()
will be returned. -
getConfigForEntity
returns an entity according to the model name of the givenEntity
-