Class DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy

java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy
All Implemented Interfaces:
UnifiedUICreateUpdateRemoveServiceStrategy

public class DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy extends AbstractCreateUpdateRemoveServiceStrategy implements UnifiedUICreateUpdateRemoveServiceStrategy
The Unified UI implementation of UnifiedUICreateUpdateRemoveServiceStrategy interface, to create/update/remove an Non ATPCO ancillary product.
  • Constructor Details

    • DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy

      public DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy()
  • Method Details

    • createUpdateService

      public void createUpdateService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      This method will either create or update an existing Non ATPCO products in the system.
      Specified by:
      createUpdateService in interface UnifiedUICreateUpdateRemoveServiceStrategy
      Parameters:
      ancillaryProduct - the services to create/update in the system
      catalogVersion - the catalog version
    • removeService

      public void removeService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      This method will remove an existing ancillary product in the system.
      Specified by:
      removeService in interface UnifiedUICreateUpdateRemoveServiceStrategy
      Parameters:
      ancillaryProduct - the services to remove in the system
      catalogVersion - the catalog version
    • createNonATPCOService

      protected void createNonATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      Creates an Non ATPCO service for each ancillary retrieved from the dataService response.
      Parameters:
      ancillaryProduct - the service retrieved from the dataService response
      catalogVersion - the catalog version
    • updateATPCOService

      protected void updateATPCOService(NonATPCOAncillaryProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct)
      Updates an Non ATPCO service.
      Parameters:
      atpcoService - the non atpco service
      catalogVersion - the catalog version
      ancillaryProduct - the ancillary product