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 Details

    • ServicesCustomerCleanupHook

      public ServicesCustomerCleanupHook()
  • Method Details

    • cleanupRelatedObjects

      public void cleanupRelatedObjects(CustomerModel customerModel)
      Specified by:
      cleanupRelatedObjects in interface de.hybris.platform.retention.hook.ItemCleanupHook<CustomerModel>
    • isSubscriptionBaseReadyToRemove

      protected boolean isSubscriptionBaseReadyToRemove(TmaSubscriptionBaseModel subscriptionBaseModel, TmaSubscriptionAccessModel subscriptionAccesstoCompare)
    • removeAverageServiceUsages

      protected void removeAverageServiceUsages(TmaSubscribedProductModel subscribedProductModel)
    • removeItem

      protected void removeItem(String typeCode, de.hybris.platform.core.PK pk)
    • 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

      protected TmaSubscriptionAccessService getTmaSubscriptionAccessService()
    • setTmaSubscriptionAccessService

      public void setTmaSubscriptionAccessService(TmaSubscriptionAccessService tmaSubscriptionAccessService)