Class DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy

java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy
All Implemented Interfaces:
UnifiedUIBaggageCarryOnServiceStrategy

public class DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy extends AbstractCreateUpdateRemoveServiceStrategy implements UnifiedUIBaggageCarryOnServiceStrategy
The Unified UI implementation of UnifiedUIBaggageCarryOnServiceStrategy interface, to create/update/remove an CarryOn Allowance product.
  • Constructor Details

    • DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy

      public DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy()
  • Method Details

    • createUpdateBaggageCarryOnProduct

      public void createUpdateBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      Description copied from interface: UnifiedUIBaggageCarryOnServiceStrategy
      This method will either create or update an existing baggage/carryOn products in the system.
      Specified by:
      createUpdateBaggageCarryOnProduct in interface UnifiedUIBaggageCarryOnServiceStrategy
      Parameters:
      ancillaryProduct - the services to create/update in the system
      catalogVersion - the catalog version
    • removeBaggageCarryOnProduct

      public void removeBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      This method will remove an existing carryOn product in the system.
      Specified by:
      removeBaggageCarryOnProduct in interface UnifiedUIBaggageCarryOnServiceStrategy
      Parameters:
      ancillaryProduct - the services to remove in the system
      catalogVersion - the catalog version
    • createCarryOnAllowanceService

      protected void createCarryOnAllowanceService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion)
      Creates an carryOn allowance service for each ancillary retrieved from the dataService response.
      Parameters:
      ancillaryProduct - the service retrieved from the dataService response
      catalogVersion - the catalog version
    • updateCarryOnAllowanceService

      protected void updateCarryOnAllowanceService(ShoppingBaggageProductModel carryOnAllowanceService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct)
      Updates an carryOn allowance service.
      Parameters:
      carryOnAllowanceService - the carry on allowance service
      catalogVersion - the catalog version
      ancillaryProduct - the ancillary product