Class JaversHistoryCacheableService

java.lang.Object
org.qubership.atp.dataset.versioning.service.impl.JaversHistoryCacheableService

@Service public class JaversHistoryCacheableService extends Object
  • Constructor Details

    • JaversHistoryCacheableService

      @Autowired public JaversHistoryCacheableService(org.javers.core.Javers javers, ChangeProcessorsChain changeProcessorsChain)
  • Method Details

    • compareTwoShadows

      @Cacheable(value="JAVERS_DIFF_CACHE_OS", key="#oldShadow.getCommitId() + \'_\' + #actualShadow.getCommitId()") public HistoryItemDto compareTwoShadows(org.javers.shadow.Shadow<DataSetListSnapshot> actualShadow, org.javers.shadow.Shadow<DataSetListSnapshot> oldShadow)
      Cacheable comparing of shadows.
      Parameters:
      actualShadow - actual version
      oldShadow - old version
      Returns:
      HistoryItemDto.