Class DefaultTmaProductOfferingPriceFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.productofferingprice.impl.DefaultTmaProductOfferingPriceFacade
- All Implemented Interfaces:
TmaProductOfferingPriceFacade
public class DefaultTmaProductOfferingPriceFacade
extends Object
implements TmaProductOfferingPriceFacade
Default implementation of
TmaProductOfferingPriceFacade.- Since:
- 2102
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaProductOfferingPriceFacade(TmaPopService tmaPopService, Map<String, de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceModel, TmaProductOfferingPriceData>> productOfferingPriceConverterMap, Map<String, de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceData, TmaProductOfferingPriceModel>> productOfferingPriceReverseConverterMap, TmaGenericItemService tmaGenericItemService, Map<String, Class<TmaProductOfferingPriceModel>> productOfferingPriceDataToModelMap, Map<String, Class<TmaProductOfferingPriceData>> productOfferingPriceTypeReverseDtoMap) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateProductOfferingPrice(TmaProductOfferingPriceData productOfferingPriceData) Creates aTmaProductOfferingPriceModelfor the givenTmaProductOfferingPriceData.getNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Retrieves the total number of product offering prices found for the given filtering context.Retrieves theTmaProductOfferingPriceDatawith the given code.getPopDataClassFor(String priceType) Returns theTmaProductOfferingPriceDatasubtype for the given price type.getPopsByLimitAndOffset(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Retrieves a list of product offering prices filtered by contextprotected Map<String,de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceModel, TmaProductOfferingPriceData>> protected Map<String,Class<TmaProductOfferingPriceModel>> protected Map<String,de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceData, TmaProductOfferingPriceModel>> protected Map<String,Class<TmaProductOfferingPriceData>> protected TmaGenericItemServiceprotected TmaPopServicebooleanRemoves the product offering price by id.booleanupdateProductOfferingPrice(TmaProductOfferingPriceData productOfferingPriceData) Updates the givenTmaProductOfferingPriceData.
-
Constructor Details
-
DefaultTmaProductOfferingPriceFacade
public DefaultTmaProductOfferingPriceFacade(TmaPopService tmaPopService, Map<String, de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceModel, TmaProductOfferingPriceData>> productOfferingPriceConverterMap, Map<String, de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceData, TmaProductOfferingPriceModel>> productOfferingPriceReverseConverterMap, TmaGenericItemService tmaGenericItemService, Map<String, Class<TmaProductOfferingPriceModel>> productOfferingPriceDataToModelMap, Map<String, Class<TmaProductOfferingPriceData>> productOfferingPriceTypeReverseDtoMap)
-
-
Method Details
-
getPop
Description copied from interface:TmaProductOfferingPriceFacadeRetrieves theTmaProductOfferingPriceDatawith the given code.- Specified by:
getPopin interfaceTmaProductOfferingPriceFacade- Parameters:
code- unique identifier of theTmaProductOfferingPriceDatato be retrieved- Returns:
- the
TmaProductOfferingPriceDatafound.
-
createProductOfferingPrice
Description copied from interface:TmaProductOfferingPriceFacadeCreates aTmaProductOfferingPriceModelfor the givenTmaProductOfferingPriceData.- Specified by:
createProductOfferingPricein interfaceTmaProductOfferingPriceFacade- Parameters:
productOfferingPriceData- the given product offering price data.- Returns:
- true if successful, false otherwise.
-
updateProductOfferingPrice
Description copied from interface:TmaProductOfferingPriceFacadeUpdates the givenTmaProductOfferingPriceData.- Specified by:
updateProductOfferingPricein interfaceTmaProductOfferingPriceFacade- Parameters:
productOfferingPriceData- the product offering price data- Returns:
- true if successful, false otherwise.
-
removeProductOfferingPrice
Description copied from interface:TmaProductOfferingPriceFacadeRemoves the product offering price by id.- Specified by:
removeProductOfferingPricein interfaceTmaProductOfferingPriceFacade- Parameters:
id- the id of the Product Offering Price.- Returns:
- true if successful, false otherwise.
-
getPopDataClassFor
Description copied from interface:TmaProductOfferingPriceFacadeReturns theTmaProductOfferingPriceDatasubtype for the given price type.- Specified by:
getPopDataClassForin interfaceTmaProductOfferingPriceFacade- Parameters:
priceType- the priceType from the ProductOfferingPrice dto.- Returns:
- the class found for the given price type.
-
getPopsByLimitAndOffset
public List<TmaProductOfferingPriceData> getPopsByLimitAndOffset(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Description copied from interface:TmaProductOfferingPriceFacadeRetrieves a list of product offering prices filtered by context- Specified by:
getPopsByLimitAndOffsetin interfaceTmaProductOfferingPriceFacade- Parameters:
productOfferingPriceFilterContextData- the context.offset- the offset represents the position in list from where the result list will start.limit- the limit represents the number of entries that will be selected for the result list.- Returns:
- the list of product offering prices.
-
getNumberOfPops
public Integer getNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Description copied from interface:TmaProductOfferingPriceFacadeRetrieves the total number of product offering prices found for the given filtering context.- Specified by:
getNumberOfPopsin interfaceTmaProductOfferingPriceFacade- Parameters:
productOfferingPriceFilterContextData- the filtering context.- Returns:
- the number of product offering prices.
-
getTmaPopService
-
getProductOfferingPriceConverterMap
protected Map<String,de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceModel, getProductOfferingPriceConverterMap()TmaProductOfferingPriceData>> -
getProductOfferingPriceReverseConverterMap
protected Map<String,de.hybris.platform.servicelayer.dto.converter.Converter<TmaProductOfferingPriceData, getProductOfferingPriceReverseConverterMap()TmaProductOfferingPriceModel>> -
getTmaGenericItemService
-
getProductOfferingPriceDataToModelMap
-
getProductOfferingPriceTypeReverseDtoMap
-