Class DeleteHistoryServiceImpl
java.lang.Object
org.qubership.atp.itf.lite.backend.service.history.impl.DeleteHistoryServiceImpl
- All Implemented Interfaces:
DeleteHistoryService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteOldAndUpdateAsInitial(Long globalId, List<JvSnapshotEntity> snapshots) voiddeleteOldSnapshots(long maxRevisionCount) voiddeleteSnapshotsByEntityIds(Set<UUID> entityIds) Delete snapshots related with entityId.voiddeleteTerminatedSnapshots(Integer pageSize) Delete terminated snapshots.
-
Constructor Details
-
DeleteHistoryServiceImpl
public DeleteHistoryServiceImpl()
-
-
Method Details
-
deleteOldAndUpdateAsInitial
@Transactional(rollbackFor=java.lang.Exception.class) public void deleteOldAndUpdateAsInitial(Long globalId, List<JvSnapshotEntity> snapshots) -
deleteOldSnapshots
@Transactional(rollbackFor=java.lang.Exception.class) public void deleteOldSnapshots(long maxRevisionCount) - Specified by:
deleteOldSnapshotsin interfaceDeleteHistoryService
-
deleteTerminatedSnapshots
@Transactional(rollbackFor=java.lang.Exception.class) public void deleteTerminatedSnapshots(Integer pageSize) Delete terminated snapshots.- Specified by:
deleteTerminatedSnapshotsin interfaceDeleteHistoryService- Parameters:
pageSize- number of snapshots deleted in one step.
-
deleteSnapshotsByEntityIds
@Transactional(rollbackFor=java.lang.Exception.class) public void deleteSnapshotsByEntityIds(Set<UUID> entityIds) Delete snapshots related with entityId.- Specified by:
deleteSnapshotsByEntityIdsin interfaceDeleteHistoryService- Parameters:
entityIds- entityIds for history cleanup.
-