Class DefaultUnifiedUICreateUpdateATPCOBaggageCarryOnServiceStrategy
java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateATPCOBaggageCarryOnServiceStrategy
- All Implemented Interfaces:
UnifiedUICreateUpdateATPCOServiceStrategy
public class DefaultUnifiedUICreateUpdateATPCOBaggageCarryOnServiceStrategy
extends AbstractCreateUpdateATPCOServiceStrategy
implements UnifiedUICreateUpdateATPCOServiceStrategy
The Unified UI implementation of
UnifiedUICreateUpdateATPCOServiceStrategy interface, to create/update an ATPCO
baggage/carryOn product.-
Field Summary
Fields inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
CODE_CHARACTER_UNDERSCORE, DEFAULT_REISSUE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUpdateATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreated, List<ATPCOAncillaryProductModel> atpcoServices, List<ShoppingBaggageProductModel> shoppingBaggageProducts) This method will either create or update an existing baggage products in the system.protected Map<String,UnifiedUIATPCOBaggageCarryOnServiceStrategy> Gets unified ui atpco baggage carry on service strategy map.voidsetUnifiedUIATPCOBaggageCarryOnServiceStrategyMap(Map<String, UnifiedUIATPCOBaggageCarryOnServiceStrategy> unifiedUIATPCOBaggageCarryOnServiceStrategyMap) Sets unified uiatpco baggage carry on service strategy map.Methods inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
getCategoryService, getModelService, getOfferGroupByShoppingCategoryReferenceAndCatalogVersion, getProsOfferGroupService, getServiceKey, setCategoryService, setModelService, setProsOfferGroupService
-
Constructor Details
-
DefaultUnifiedUICreateUpdateATPCOBaggageCarryOnServiceStrategy
public DefaultUnifiedUICreateUpdateATPCOBaggageCarryOnServiceStrategy()
-
-
Method Details
-
createUpdateATPCOService
public void createUpdateATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreated, List<ATPCOAncillaryProductModel> atpcoServices, List<ShoppingBaggageProductModel> shoppingBaggageProducts) This method will either create or update an existing baggage 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 service products to be updatedshoppingBaggageProducts- the atpco baggages/carryOn products to be updated
-
getUnifiedUIATPCOBaggageCarryOnServiceStrategyMap
protected Map<String,UnifiedUIATPCOBaggageCarryOnServiceStrategy> getUnifiedUIATPCOBaggageCarryOnServiceStrategyMap()Gets unified ui atpco baggage carry on service strategy map.- Returns:
- the unified uiatpco baggage carry on service strategy map
-
setUnifiedUIATPCOBaggageCarryOnServiceStrategyMap
public void setUnifiedUIATPCOBaggageCarryOnServiceStrategyMap(Map<String, UnifiedUIATPCOBaggageCarryOnServiceStrategy> unifiedUIATPCOBaggageCarryOnServiceStrategyMap) Sets unified uiatpco baggage carry on service strategy map.- Parameters:
unifiedUIATPCOBaggageCarryOnServiceStrategyMap- the unified uiatpco baggage carry on service strategy map
-