Class CommerceServicesCustomerCleanupHook
- java.lang.Object
-
- de.hybris.platform.commerceservices.retention.impl.CommerceServicesCustomerCleanupHook
-
- All Implemented Interfaces:
ItemCleanupHook<CustomerModel>
public class CommerceServicesCustomerCleanupHook extends java.lang.Object implements ItemCleanupHook<CustomerModel>
This Hook removes customer related objects such as addresses, payment methods, carts and contact infos.
-
-
Constructor Summary
Constructors Constructor Description CommerceServicesCustomerCleanupHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupRelatedObjects(CustomerModel customerModel)Cleanup related objects before cleanup item.protected ConsentDaogetConsentDao()protected FlexibleSearchServicegetFlexibleSearchService()protected ModelServicegetModelService()protected WriteAuditRecordsDAOgetWriteAuditRecordsDAO()voidsetConsentDao(ConsentDao consentDao)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetModelService(ModelService modelService)voidsetWriteAuditRecordsDAO(WriteAuditRecordsDAO writeAuditRecordsDAO)
-
-
-
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
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getConsentDao
protected ConsentDao getConsentDao()
-
setConsentDao
public void setConsentDao(ConsentDao consentDao)
-
getWriteAuditRecordsDAO
protected WriteAuditRecordsDAO getWriteAuditRecordsDAO()
-
setWriteAuditRecordsDAO
public void setWriteAuditRecordsDAO(WriteAuditRecordsDAO writeAuditRecordsDAO)
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-