Class DefaultUnifiedUICreateUpdateRemoveBaggageStrategy
java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateRemoveBaggageStrategy
- All Implemented Interfaces:
UnifiedUIBaggageCarryOnServiceStrategy
public class DefaultUnifiedUICreateUpdateRemoveBaggageStrategy
extends AbstractCreateUpdateRemoveServiceStrategy
implements UnifiedUIBaggageCarryOnServiceStrategy
The Unified UI implementation of
UnifiedUIBaggageCarryOnServiceStrategy interface, to create/update/remove a baggage
product.-
Field Summary
Fields inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
CODE_CHARACTER_UNDERSCORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateBaggageService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Creates an baggage service for each ancillary retrieved from the dataService response.voidcreateUpdateBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will either create or update an existing baggage/carryOn products in the system.voidremoveBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will remove an existing baggage product in the system.protected voidupdateBaggageService(ShoppingBaggageProductModel baggageService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an baggage service.Methods inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
getCategoryService, getModelService, getOfferGroupByShoppingCategoryReferenceAndCatalogVersion, getProsOfferGroupService, getProsTravelAncillaryService, getServiceKey, setCategoryService, setModelService, setProsOfferGroupService, setProsTravelAncillaryService
-
Constructor Details
-
DefaultUnifiedUICreateUpdateRemoveBaggageStrategy
public DefaultUnifiedUICreateUpdateRemoveBaggageStrategy()
-
-
Method Details
-
createUpdateBaggageCarryOnProduct
public void createUpdateBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Description copied from interface:UnifiedUIBaggageCarryOnServiceStrategyThis method will either create or update an existing baggage/carryOn products in the system.- Specified by:
createUpdateBaggageCarryOnProductin interfaceUnifiedUIBaggageCarryOnServiceStrategy- Parameters:
ancillaryProduct- the services to create/update in the systemcatalogVersion- the catalog version
-
removeBaggageCarryOnProduct
public void removeBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will remove an existing baggage product in the system.- Specified by:
removeBaggageCarryOnProductin interfaceUnifiedUIBaggageCarryOnServiceStrategy- Parameters:
ancillaryProduct- the services to remove in the systemcatalogVersion- the catalog version
-
createBaggageService
protected void createBaggageService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Creates an baggage service for each ancillary retrieved from the dataService response.- Parameters:
ancillaryProduct- the service retrieved from the dataService responsecatalogVersion- the catalog version
-
updateBaggageService
protected void updateBaggageService(ShoppingBaggageProductModel baggageService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an baggage service.- Parameters:
baggageService- the baggage servicecatalogVersion- the catalog versionancillaryProduct- the ancillary product
-