Class DefaultExtensibleRemoveCleanupAction
java.lang.Object
de.hybris.platform.retention.impl.AbstractExtensibleRemoveCleanupAction
de.hybris.platform.retention.impl.DefaultExtensibleRemoveCleanupAction
- All Implemented Interfaces:
RetentionCleanupAction
A strategy action that can inject hooks to run custom code to cleanup related objects for item cleanup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(AfterRetentionCleanupJobPerformable retentionJob, AbstractRetentionRuleModel rule, ItemToCleanup item) Cleans up given item according to given rule, processed by retention job.Methods inherited from class de.hybris.platform.retention.impl.AbstractExtensibleRemoveCleanupAction
cleanupRelatedObjects, getCleanupHooks, getModelService, removeAuditRecords, setAuditScopeInvalidator, setItemCleanupHooks, setModelService, setWriteAuditGateway
-
Constructor Details
-
DefaultExtensibleRemoveCleanupAction
public DefaultExtensibleRemoveCleanupAction()
-
-
Method Details
-
cleanup
public void cleanup(AfterRetentionCleanupJobPerformable retentionJob, AbstractRetentionRuleModel rule, ItemToCleanup item) Description copied from interface:RetentionCleanupActionCleans up given item according to given rule, processed by retention job.- Parameters:
retentionJob- the retention jobrule- the retention rule that can provide additional logicitem- the item to be cleaned up
-