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 Stringstatic final Stringprotected RetentionRuleEvaluatorFields 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 CleanupSummarycalculateTotals(List<CleanupSummary> removalSummaries) voidhardRemoveVersions(RetentionPolicy policy) Remove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy.voidsoftRemoveVersions(RetentionPolicy policy, int batchSize) Remove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicyin 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:VersionRemovalServiceRemove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy.- Parameters:
policy- retention policy
-
softRemoveVersions
Description copied from interface:VersionRemovalServiceRemove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicyin batch.- Parameters:
policy- retention policybatchSize- number of versions in a batch
-
calculateTotals
-