Class DefaultVersionRemovalService
java.lang.Object
com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
com.atlassian.confluence.impl.retention.DefaultVersionRemovalService
- All Implemented Interfaces:
VersionRemovalService
- Since:
- 7.12
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected RetentionRuleEvaluator
Fields inherited from class com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
clusterLockExecutionService, DEFAULT_START_ORIGINAL_ID, DELETION_BATCH_SIZE, historicalVersionService, RETENTION_RULES_DELETION_BATCH_SIZE_KEY, retentionFeatureChecker, softCleanupStatusService, spaceRetentionPolicyManager, transactionManager, versionRemovalEventPublisher
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVersionRemovalService
(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, ClusterLockExecutionService clusterLockExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected CleanupSummary
calculateTotals
(List<CleanupSummary> removalSummaries) void
hardRemoveVersions
(RetentionPolicy policy) Remove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy
.void
softRemoveVersions
(RetentionPolicy policy, int batchSize) Remove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicy
in batch.Methods inherited from class com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
deleteForRule, getTransactionTemplate, saveJobStatus, setCacheMode
-
Field Details
-
DEFAULT_VERSION_REMOVAL_SOFT_CLUSTER_LOCK_NAME
- See Also:
-
DEFAULT_VERSION_REMOVAL_HARD_CLUSTER_LOCK_NAME
- See Also:
-
retentionRuleEvaluator
-
-
Constructor Details
-
DefaultVersionRemovalService
public DefaultVersionRemovalService(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, ClusterLockExecutionService clusterLockExecutionService)
-
-
Method Details
-
hardRemoveVersions
Description copied from interface:VersionRemovalService
Remove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy
.- Parameters:
policy
- retention policy
-
softRemoveVersions
Description copied from interface:VersionRemovalService
Remove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicy
in batch.- Parameters:
policy
- retention policybatchSize
- number of versions in a batch
-
calculateTotals
-