Class HistoryServiceFactory
java.lang.Object
org.qubership.atp.mia.service.history.impl.HistoryServiceFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRestoreHistoryService(String itemType) Returns the concrete implementation of RestoreHistoryService depending of entity type.Optional<RetrieveHistoryService<? extends DateAuditorEntity>> getRetrieveHistoryService(String itemType) Returns the concrete implementation of RetrieveHistoryService depending of entity type.
-
Constructor Details
-
HistoryServiceFactory
public HistoryServiceFactory()
-
-
Method Details
-
getRestoreHistoryService
Returns the concrete implementation of RestoreHistoryService depending of entity type.- Parameters:
itemType- type of domain entity with supported history- Returns:
- RestoreHistoryService implementation
-
getRetrieveHistoryService
public Optional<RetrieveHistoryService<? extends DateAuditorEntity>> getRetrieveHistoryService(String itemType) Returns the concrete implementation of RetrieveHistoryService depending of entity type.- Parameters:
itemType- type of domain entity with supported history- Returns:
- RetrieveHistoryService implementation
-