Class AbstractVersionRemovalService
java.lang.Object
com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
- All Implemented Interfaces:
VersionRemovalService
- Direct Known Subclasses:
DefaultVersionRemovalService,FastVersionRemovalService
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClusterLockExecutionServicestatic final Longprotected static final intprotected final HistoricalVersionServicestatic final Stringprotected final RetentionFeatureCheckerprotected final SoftCleanupStatusServiceprotected final SpaceRetentionPolicyManagerprotected final org.springframework.transaction.PlatformTransactionManagerprotected final VersionRemovalEventPublisher -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractVersionRemovalService(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, ClusterLockExecutionService clusterLockExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<DeletedHistoricalVersionSummary> deleteForRule(List<EvaluatedHistoricalVersion> evaluated, RuleScope ruleScope) protected org.springframework.transaction.support.TransactionTemplateprotected voidsaveJobStatus(SoftCleanupJobStatus status) protected CleanupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.impl.retention.VersionRemovalService
hardRemoveVersions, softRemoveVersions
-
Field Details
-
RETENTION_RULES_DELETION_BATCH_SIZE_KEY
- See Also:
-
DEFAULT_START_ORIGINAL_ID
-
DELETION_BATCH_SIZE
protected static final int DELETION_BATCH_SIZE -
historicalVersionService
-
softCleanupStatusService
-
versionRemovalEventPublisher
-
transactionManager
protected final org.springframework.transaction.PlatformTransactionManager transactionManager -
retentionFeatureChecker
-
spaceRetentionPolicyManager
-
clusterLockExecutionService
-
-
Constructor Details
-
AbstractVersionRemovalService
protected AbstractVersionRemovalService(HistoricalVersionService historicalVersionService, SoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, ClusterLockExecutionService clusterLockExecutionService)
-
-
Method Details
-
setCacheMode
-
saveJobStatus
-
deleteForRule
protected List<DeletedHistoricalVersionSummary> deleteForRule(List<EvaluatedHistoricalVersion> evaluated, RuleScope ruleScope) -
getTransactionTemplate
protected org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
-