Class JaversHistoryCacheableService
java.lang.Object
org.qubership.atp.dataset.versioning.service.impl.JaversHistoryCacheableService
-
Constructor Summary
ConstructorsConstructorDescriptionJaversHistoryCacheableService(org.javers.core.Javers javers, ChangeProcessorsChain changeProcessorsChain) -
Method Summary
Modifier and TypeMethodDescriptioncompareTwoShadows(org.javers.shadow.Shadow<DataSetListSnapshot> actualShadow, org.javers.shadow.Shadow<DataSetListSnapshot> oldShadow) Cacheable comparing of shadows.
-
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 versionoldShadow- old version- Returns:
- HistoryItemDto.
-