Class HistoryServiceFactory

java.lang.Object
org.qubership.atp.itf.lite.backend.service.history.impl.HistoryServiceFactory

@Component public class HistoryServiceFactory extends Object
  • Constructor Details

    • HistoryServiceFactory

      public HistoryServiceFactory()
  • Method Details

    • getRestoreHistoryService

      public Optional<RestoreHistoryService> getRestoreHistoryService(String itemType, UUID itemId)
      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> getRetrieveHistoryService(String itemType, UUID itemId)
      Returns the concrete implementation of RetrieveHistoryService depending on entity type.
      Parameters:
      itemType - type of domain entity with supported history
      Returns:
      RetrieveHistoryService implementation