Class CsTicketsByCustomerCleanupHook
- java.lang.Object
-
- de.hybris.platform.ticket.retention.impl.CsTicketsByCustomerCleanupHook
-
- All Implemented Interfaces:
ItemCleanupHook<CustomerModel>
public class CsTicketsByCustomerCleanupHook extends java.lang.Object implements ItemCleanupHook<CustomerModel>
This Hook removes CustomerModel's CsTicketModels and related objects such as CsTicketEventModel and CsTicketChangeEventEntryModel
-
-
Constructor Summary
Constructors Constructor Description CsTicketsByCustomerCleanupHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupRelatedObjects(CustomerModel customerModel)Cleanup related objects before cleanup item.protected DefaultCsTicketCleanupStrategygetCsTicketCleanupStrategy()protected ModelServicegetModelService()voidsetCsTicketCleanupStrategy(DefaultCsTicketCleanupStrategy csTicketCleanupStrategy)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
cleanupRelatedObjects
public void cleanupRelatedObjects(CustomerModel customerModel)
Description copied from interface:ItemCleanupHookCleanup related objects before cleanup item.- Specified by:
cleanupRelatedObjectsin interfaceItemCleanupHook<CustomerModel>- Parameters:
customerModel- its related objects to cleanup
-
getCsTicketCleanupStrategy
protected DefaultCsTicketCleanupStrategy getCsTicketCleanupStrategy()
-
setCsTicketCleanupStrategy
public void setCsTicketCleanupStrategy(DefaultCsTicketCleanupStrategy csTicketCleanupStrategy)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-