Interface TmaProductOfferingPriceFacade
- All Known Implementing Classes:
DefaultTmaProductOfferingPriceFacade
public interface TmaProductOfferingPriceFacade
Facade that handles operations related to
TmaProductOfferingPriceData.- Since:
- 2102
-
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 contextbooleanRemoves the product offering price by id.booleanupdateProductOfferingPrice(TmaProductOfferingPriceData productOfferingPriceData) Updates the givenTmaProductOfferingPriceData.
-
Method Details
-
getPop
Retrieves theTmaProductOfferingPriceDatawith the given code.- Parameters:
code- unique identifier of theTmaProductOfferingPriceDatato be retrieved- Returns:
- the
TmaProductOfferingPriceDatafound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no product offering price is found.
-
createProductOfferingPrice
Creates aTmaProductOfferingPriceModelfor the givenTmaProductOfferingPriceData.- Parameters:
productOfferingPriceData- the given product offering price data.- Returns:
- true if successful, false otherwise.
-
updateProductOfferingPrice
Updates the givenTmaProductOfferingPriceData.- Parameters:
productOfferingPriceData- the product offering price data- Returns:
- true if successful, false otherwise.
-
removeProductOfferingPrice
Removes the product offering price by id.- Parameters:
id- the id of the Product Offering Price.- Returns:
- true if successful, false otherwise.
-
getPopDataClassFor
Returns theTmaProductOfferingPriceDatasubtype for the given price type.- Parameters:
priceType- the priceType from the ProductOfferingPrice dto.- Returns:
- the class found for the given price type.
-
getPopsByLimitAndOffset
List<TmaProductOfferingPriceData> getPopsByLimitAndOffset(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Retrieves a list of product offering prices filtered by context- 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
Integer getNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Retrieves the total number of product offering prices found for the given filtering context.- Parameters:
productOfferingPriceFilterContextData- the filtering context.- Returns:
- the number of product offering prices.
-