Class DefaultVersionRemovalService
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.DefaultVersionRemovalService
-
- All Implemented Interfaces:
VersionRemovalService
public class DefaultVersionRemovalService extends Object implements VersionRemovalService
- Since:
- 7.12
-
-
Constructor Summary
Constructors Constructor Description DefaultVersionRemovalService(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
hardRemoveVersions(RetentionPolicy policy)
Remove all content records which meet the RetentionPolicy {@param policy} Removes all content records which meet theRetentionPolicy
.protected Cleanup
setCacheMode()
void
softRemoveVersions(RetentionPolicy policy, int batchSize)
Remove approximately {@param contentCount} content records which meet the RetentionPolicy {@param policy} Removes versions which meet a givenRetentionPolicy
in batch.
-
-
-
Constructor Detail
-
DefaultVersionRemovalService
public DefaultVersionRemovalService(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager)
-
-
Method Detail
-
hardRemoveVersions
public void hardRemoveVersions(RetentionPolicy policy)
Description copied from interface:VersionRemovalService
Remove all content records which meet the RetentionPolicy {@param policy} Removes all content records which meet theRetentionPolicy
.- Specified by:
hardRemoveVersions
in interfaceVersionRemovalService
- Parameters:
policy
- retention policy
-
softRemoveVersions
public void softRemoveVersions(RetentionPolicy policy, int batchSize)
Description copied from interface:VersionRemovalService
Remove approximately {@param contentCount} content records which meet the RetentionPolicy {@param policy} Removes versions which meet a givenRetentionPolicy
in batch.- Specified by:
softRemoveVersions
in interfaceVersionRemovalService
- Parameters:
policy
- retention policybatchSize
- number of versions in a batch
-
setCacheMode
protected Cleanup setCacheMode()
-
-