Class DefaultTrashRemovalManager
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.manager.DefaultTrashRemovalManager
-
- All Implemented Interfaces:
TrashRemovalManager
public class DefaultTrashRemovalManager extends Object implements TrashRemovalManager
- Since:
- 7.14.0
-
-
Constructor Summary
Constructors Constructor Description DefaultTrashRemovalManager(GlobalRetentionPolicyManager globalRetentionPolicyManager, TrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
hardRemove()
Delete all trashed entities per trash retention rules Note: This may take a long time depend on number of trashed entities that fail retention rulesvoid
softRemove(int limit)
Delete up tobatchSize
trashed entities per trash retention rules
-
-
-
Constructor Detail
-
DefaultTrashRemovalManager
public DefaultTrashRemovalManager(GlobalRetentionPolicyManager globalRetentionPolicyManager, TrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
softRemove
public void softRemove(int limit)
Description copied from interface:TrashRemovalManager
Delete up tobatchSize
trashed entities per trash retention rules- Specified by:
softRemove
in interfaceTrashRemovalManager
- Parameters:
limit
- maximum number of trashed entities to delete in this run
-
hardRemove
public void hardRemove()
Description copied from interface:TrashRemovalManager
Delete all trashed entities per trash retention rules Note: This may take a long time depend on number of trashed entities that fail retention rules- Specified by:
hardRemove
in interfaceTrashRemovalManager
-
-