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.-
Field Summary
Fields inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
CODE_CHARACTER_UNDERSCORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateCarryOnAllowanceService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Creates an carryOn allowance 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 carryOn product in the system.protected voidupdateCarryOnAllowanceService(ShoppingBaggageProductModel carryOnAllowanceService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an carryOn allowance service.Methods inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
getCategoryService, getModelService, getOfferGroupByShoppingCategoryReferenceAndCatalogVersion, getProsOfferGroupService, getProsTravelAncillaryService, getServiceKey, setCategoryService, setModelService, setProsOfferGroupService, setProsTravelAncillaryService
-
Constructor Details
-
DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy
public DefaultUnifiedUICreateUpdateRemoveCarryOnAllowanceStrategy()
-
-
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 carryOn product in the system.- Specified by:
removeBaggageCarryOnProductin interfaceUnifiedUIBaggageCarryOnServiceStrategy- Parameters:
ancillaryProduct- the services to remove in the systemcatalogVersion- 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 responsecatalogVersion- the catalog version
-
updateCarryOnAllowanceService
protected void updateCarryOnAllowanceService(ShoppingBaggageProductModel carryOnAllowanceService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an carryOn allowance service.- Parameters:
carryOnAllowanceService- the carry on allowance servicecatalogVersion- the catalog versionancillaryProduct- the ancillary product
-