Class HistoryServiceFactory

java.lang.Object
org.qubership.atp.mia.service.history.impl.HistoryServiceFactory

@Component public class HistoryServiceFactory extends Object
  • Constructor Details

    • HistoryServiceFactory

      public HistoryServiceFactory()
  • Method Details

    • getRestoreHistoryService

      public Optional<RestoreHistoryService> getRestoreHistoryService(String itemType)
      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