Class DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy
java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy
- All Implemented Interfaces:
UnifiedUICreateUpdateRemoveServiceStrategy
public class DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy
extends AbstractCreateUpdateRemoveServiceStrategy
implements UnifiedUICreateUpdateRemoveServiceStrategy
The Unified UI implementation of
UnifiedUICreateUpdateRemoveServiceStrategy interface, to create/update/remove an Non
ATPCO ancillary 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 voidcreateNonATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Creates an Non ATPCO service for each ancillary retrieved from the dataService response.voidcreateUpdateService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will either create or update an existing Non ATPCO products in the system.voidremoveService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will remove an existing ancillary product in the system.protected voidupdateATPCOService(NonATPCOAncillaryProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an Non ATPCO service.Methods inherited from class de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateRemoveServiceStrategy
getCategoryService, getModelService, getOfferGroupByShoppingCategoryReferenceAndCatalogVersion, getProsOfferGroupService, getProsTravelAncillaryService, getServiceKey, setCategoryService, setModelService, setProsOfferGroupService, setProsTravelAncillaryService
-
Constructor Details
-
DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy
public DefaultUnifiedUICreateUpdateRemoveNonATPCOServiceStrategy()
-
-
Method Details
-
createUpdateService
public void createUpdateService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) This method will either create or update an existing Non ATPCO products in the system.- Specified by:
createUpdateServicein interfaceUnifiedUICreateUpdateRemoveServiceStrategy- Parameters:
ancillaryProduct- the services to create/update in the systemcatalogVersion- the catalog version
-
removeService
This method will remove an existing ancillary product in the system.- Specified by:
removeServicein interfaceUnifiedUICreateUpdateRemoveServiceStrategy- Parameters:
ancillaryProduct- the services to remove in the systemcatalogVersion- the catalog version
-
createNonATPCOService
protected void createNonATPCOService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion) Creates an Non ATPCO service for each ancillary retrieved from the dataService response.- Parameters:
ancillaryProduct- the service retrieved from the dataService responsecatalogVersion- the catalog version
-
updateATPCOService
protected void updateATPCOService(NonATPCOAncillaryProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct) Updates an Non ATPCO service.- Parameters:
atpcoService- the non atpco servicecatalogVersion- the catalog versionancillaryProduct- the ancillary product
-