Class ServicesCustomerCleanupHook
java.lang.Object
de.hybris.platform.b2ctelcoservices.retention.impl.ServicesCustomerCleanupHook
- All Implemented Interfaces:
de.hybris.platform.retention.hook.ItemCleanupHook<CustomerModel>
public class ServicesCustomerCleanupHook
extends Object
implements de.hybris.platform.retention.hook.ItemCleanupHook<CustomerModel>
This Hook removes customer related objects such as billingAccount, subscriptionBase and SubscriptionAccess
- Since:
- 6.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupRelatedObjects(CustomerModel customerModel) protected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaSubscriptionAccessServiceprotected de.hybris.platform.directpersistence.audit.dao.WriteAuditRecordsDAOprotected booleanisSubscriptionBaseReadyToRemove(TmaSubscriptionBaseModel subscriptionBaseModel, TmaSubscriptionAccessModel subscriptionAccesstoCompare) protected voidremoveAverageServiceUsages(TmaSubscribedProductModel subscribedProductModel) protected voidremoveItem(String typeCode, de.hybris.platform.core.PK pk) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetTmaSubscriptionAccessService(TmaSubscriptionAccessService tmaSubscriptionAccessService) voidsetWriteAuditRecordsDAO(de.hybris.platform.directpersistence.audit.dao.WriteAuditRecordsDAO writeAuditRecordsDAO)
-
Constructor Details
-
ServicesCustomerCleanupHook
public ServicesCustomerCleanupHook()
-
-
Method Details
-
cleanupRelatedObjects
- Specified by:
cleanupRelatedObjectsin interfacede.hybris.platform.retention.hook.ItemCleanupHook<CustomerModel>
-
isSubscriptionBaseReadyToRemove
protected boolean isSubscriptionBaseReadyToRemove(TmaSubscriptionBaseModel subscriptionBaseModel, TmaSubscriptionAccessModel subscriptionAccesstoCompare) -
removeAverageServiceUsages
-
removeItem
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getWriteAuditRecordsDAO
protected de.hybris.platform.directpersistence.audit.dao.WriteAuditRecordsDAO getWriteAuditRecordsDAO() -
setWriteAuditRecordsDAO
public void setWriteAuditRecordsDAO(de.hybris.platform.directpersistence.audit.dao.WriteAuditRecordsDAO writeAuditRecordsDAO) -
getTmaSubscriptionAccessService
-
setTmaSubscriptionAccessService
public void setTmaSubscriptionAccessService(TmaSubscriptionAccessService tmaSubscriptionAccessService)
-