Class DefaultUnifiedUICreateUpdateATPCOServiceStrategy

java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateATPCOServiceStrategy
All Implemented Interfaces:
UnifiedUICreateUpdateATPCOServiceStrategy

public class DefaultUnifiedUICreateUpdateATPCOServiceStrategy extends AbstractCreateUpdateATPCOServiceStrategy implements UnifiedUICreateUpdateATPCOServiceStrategy
The Unified UI implementation of UnifiedUICreateUpdateATPCOServiceStrategy interface, to create/update an ATPCO ancillary product.
  • Field Details

  • Constructor Details

    • DefaultUnifiedUICreateUpdateATPCOServiceStrategy

      public DefaultUnifiedUICreateUpdateATPCOServiceStrategy()
  • Method Details

    • createUpdateATPCOService

      public void createUpdateATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreated, List<ATPCOAncillaryProductModel> atpcoServices, List<ShoppingBaggageProductModel> baggageCarryOnServices)
      This method will either create or update an existing ATPCO products in the system. If the products retrieved from Pros already exists in the system, it will be updated and removed from the list of the services, so at the end only the services that are not available anymore in Pros will be contained in the list.
      Specified by:
      createUpdateATPCOService in interface UnifiedUICreateUpdateATPCOServiceStrategy
      Parameters:
      ancillaryProduct - the services to create/update in the system
      catalogVersion - the catalog version
      productNotCreated - the list of product to be filled with the code of the product that are not created due to some issues
      atpcoServices - the atpco services to be updated
      baggageCarryOnServices - the baggages/ carryon to be updated
    • createATPCOService

      protected void createATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreatedUpdate) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Creates an ATPCO service for each ancillary retrieved from the dataService response.
      Parameters:
      ancillaryProduct - the service retrieved from the dataService response
      catalogVersion - the catalog version
      productNotCreatedUpdate - the list of product that has not been created/updated
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException
    • updateATPCOService

      protected void updateATPCOService(ATPCOAncillaryProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct, Set<String> productNotCreatedUpdate) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Updates an ATPCO service.
      Parameters:
      atpcoService - the atpco service
      catalogVersion - the catalog version
      ancillaryProduct - the ancillary product
      productNotCreatedUpdate - the list of product that has not been created/updated
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException
    • getProsRefundTypeRefundReissueMapping

      protected Map<String,String> getProsRefundTypeRefundReissueMapping()
      Gets pros refund type refund reissue mapping.
      Returns:
      the pros refund type refund reissue mapping
    • setProsRefundTypeRefundReissueMapping

      public void setProsRefundTypeRefundReissueMapping(Map<String,String> prosRefundTypeRefundReissueMapping)
      Sets pros refund type refund reissue mapping.
      Parameters:
      prosRefundTypeRefundReissueMapping - the pros refund type refund reissue mapping