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 Summary
FieldsFields inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
DEFAULT_REISSUE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreatedUpdate) Creates an ATPCO service for each ancillary retrieved from the dataService response.voidcreateUpdateATPCOService(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.Gets pros refund type refund reissue mapping.voidsetProsRefundTypeRefundReissueMapping(Map<String, String> prosRefundTypeRefundReissueMapping) Sets pros refund type refund reissue mapping.protected voidupdateATPCOService(ATPCOAncillaryProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct, Set<String> productNotCreatedUpdate) Updates an ATPCO service.Methods inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
getCategoryService, getModelService, getOfferGroupByShoppingCategoryReferenceAndCatalogVersion, getProsOfferGroupService, getServiceKey, setCategoryService, setModelService, setProsOfferGroupService
-
Field Details
-
CODE_CHARACTER_UNDERSCORE
- See Also:
-
-
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:
createUpdateATPCOServicein interfaceUnifiedUICreateUpdateATPCOServiceStrategy- Parameters:
ancillaryProduct- the services to create/update in the systemcatalogVersion- the catalog versionproductNotCreated- the list of product to be filled with the code of the product that are not created due to some issuesatpcoServices- the atpco services to be updatedbaggageCarryOnServices- 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 responsecatalogVersion- the catalog versionproductNotCreatedUpdate- 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 servicecatalogVersion- the catalog versionancillaryProduct- the ancillary productproductNotCreatedUpdate- the list of product that has not been created/updated- Throws:
de.hybris.platform.servicelayer.exceptions.ModelSavingException
-
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
-