Class DefaultTmaPopService
java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.services.impl.DefaultTmaPopService
- All Implemented Interfaces:
TmaPopService
Default implementation of
TmaPopService.- Since:
- 2011
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaPopService(List<TmaPopQualifier> popQualifiers, DefaultGenericSearchDao tmaPopSearchDao, TmaProductOfferingPriceDao tmaProductOfferingPriceDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionprotected GenericSearchDaoprotected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Retrieves the the number of product offering prices that exists.Returns aTmaProductOfferingPriceModelfor the given code.protected List<TmaPopQualifier>getPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductOfferingPriceModelfiltered by the context.Finds all thePriceRowModels that aTmaProductOfferingPriceModelor its parents are used in.protected TmaProductOfferingPriceDaobooleanpopQualifiesFor(TmaProductOfferingPriceModel price, TmaProductOfferingModel productOffering) 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.
-
Constructor Details
-
DefaultTmaPopService
public DefaultTmaPopService(List<TmaPopQualifier> popQualifiers, DefaultGenericSearchDao tmaPopSearchDao, TmaProductOfferingPriceDao tmaProductOfferingPriceDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
popQualifiesFor
public boolean popQualifiesFor(TmaProductOfferingPriceModel price, TmaProductOfferingModel productOffering) Description copied from interface:TmaPopServiceChecks that a given Product Offering Price qualifies for a Product Offering.- Specified by:
popQualifiesForin interfaceTmaPopService- Parameters:
price- the product offering price.productOffering- the product offering.- Returns:
- true if valid, otherwise false.
-
getPriceRowsFor
Description copied from interface:TmaPopServiceFinds all thePriceRowModels that aTmaProductOfferingPriceModelor its parents are used in.- Specified by:
getPriceRowsForin interfaceTmaPopService- Parameters:
price- the product offering price.- Returns:
- the price rows found.
-
getPop
Description copied from interface:TmaPopServiceReturns aTmaProductOfferingPriceModelfor the given code.- Specified by:
getPopin interfaceTmaPopService- Parameters:
code- identifier ofTmaProductOfferingPriceModel- Returns:
- the
TmaProductOfferingPriceModelfound.
-
updateProductOfferingPrice
Description copied from interface:TmaPopServiceUpdates the givenTmaProductOfferingPriceModel.- Specified by:
updateProductOfferingPricein interfaceTmaPopService- Parameters:
productOfferingPriceModel- the Product Offering Price- Returns:
- true if successful, false otherwise.
-
removeProductOfferingPrice
Description copied from interface:TmaPopServiceRemoves the product offering price by id.- Specified by:
removeProductOfferingPricein interfaceTmaPopService- Parameters:
id- the id of the product offering price.- Returns:
- true if successful, false otherwise.
-
getPops
public List<TmaProductOfferingPriceModel> getPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData, Integer offset, Integer limit) Description copied from interface:TmaPopServiceRetrieves a list ofTmaProductOfferingPriceModelfiltered by the context.- Specified by:
getPopsin interfaceTmaPopService- 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
public Integer getNumberOfPops(TmaProductOfferingPriceFilterContextData productOfferingPriceFilterContextData) Description copied from interface:TmaPopServiceRetrieves the the number of product offering prices that exists.- Specified by:
getNumberOfPopsin interfaceTmaPopService- Parameters:
productOfferingPriceFilterContextData- the context.- Returns:
- the number of all found
TmaProductOfferingPriceModel.
-
getPopQualifiers
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getGenericSearchDao
-
getTmaProductOfferingPriceDao
-