Interface TmaPopService
- All Known Implementing Classes:
DefaultTmaPopService
public interface TmaPopService
Service responsible for handling
TmaProductOfferingPriceModel related operations.- Since:
- 2011
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Retrieves the the number of product offering prices that exists.Returns aTmaProductOfferingPriceModelfor the given code.getPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductOfferingPriceModelfiltered by the context.Finds all thePriceRowModels that aTmaProductOfferingPriceModelor its parents are used in.booleanpopQualifiesFor(TmaProductOfferingPriceModel price, TmaProductOfferingModel product) Checks that a given Product Offering Price qualifies for a Product Offering.booleanRemoves the product offering price by id.booleanupdateProductOfferingPrice(TmaProductOfferingPriceModel productOfferingPriceModel) Updates the givenTmaProductOfferingPriceModel.
-
Method Details
-
popQualifiesFor
Checks that a given Product Offering Price qualifies for a Product Offering.- Parameters:
price- the product offering price.product- the product offering.- Returns:
- true if valid, otherwise false.
-
getPriceRowsFor
Finds all thePriceRowModels that aTmaProductOfferingPriceModelor its parents are used in.- Parameters:
price- the product offering price.- Returns:
- the price rows found.
-
getPop
Returns aTmaProductOfferingPriceModelfor the given code.- Parameters:
code- identifier ofTmaProductOfferingPriceModel- Returns:
- the
TmaProductOfferingPriceModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no product offering price is found.
-
updateProductOfferingPrice
Updates the givenTmaProductOfferingPriceModel.- Parameters:
productOfferingPriceModel- the Product Offering Price- 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.
-
getPops
List<TmaProductOfferingPriceModel> getPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductOfferingPriceModelfiltered by the context.- Parameters:
productOfferingPriceFilterContextData- the context.offset- the offset.limit- the maximum number of returned agreements.- Returns:
- the list of product offering prices found for the given offset and limit.
-
getNumberOfPops
Integer getNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Retrieves the the number of product offering prices that exists.- Parameters:
productOfferingPriceFilterContextData- the context.- Returns:
- the number of all found
TmaProductOfferingPriceModel.
-