Class DefaultTmaSubscriptionTermService
java.lang.Object
de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaSubscriptionTermService
- All Implemented Interfaces:
TmaSubscriptionTermService
Default implementation of the
TmaSubscriptionTermService.- Since:
- 6.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all subscription terms.getApplicableSubscriptionTerms(TmaProductOfferingModel spo, TmaBundledProductOfferingModel bpo, TmaProcessType processType) Returns all subscription terms found in the price plans configured on given spo and bpo.de.hybris.platform.servicelayer.config.ConfigurationServiceDetermines default subscription term.ReturnsSubscriptionTermModelcorresponding to the given id.getSubscriptionTermsFor(DiscountRowModel discountRow) Returns the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription termsgetSubscriptionTermsFor(PriceRowModel priceRow) Returns the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription termsprotected TmaSubscriptionTermDaovoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetTmaSubscriptionTermDao(TmaSubscriptionTermDao tmaSubscriptionTermDao)
-
Constructor Details
-
DefaultTmaSubscriptionTermService
public DefaultTmaSubscriptionTermService()
-
-
Method Details
-
getAllSubscriptionTerms
Description copied from interface:TmaSubscriptionTermServiceReturns all subscription terms.- Specified by:
getAllSubscriptionTermsin interfaceTmaSubscriptionTermService- Returns:
ListofSubscriptionTermModel
-
getApplicableSubscriptionTerms
public Set<SubscriptionTermModel> getApplicableSubscriptionTerms(TmaProductOfferingModel spo, TmaBundledProductOfferingModel bpo, TmaProcessType processType) Description copied from interface:TmaSubscriptionTermServiceReturns all subscription terms found in the price plans configured on given spo and bpo. Note: if a price plan has no subscription terms, then all subscription terms will be considered.- Specified by:
getApplicableSubscriptionTermsin interfaceTmaSubscriptionTermService- Parameters:
spo- simple product offeringbpo- bundled product offeringprocessType- the process type for which price plans will be considered- Returns:
SetofSubscriptionTermModel
-
getSubscriptionTerm
Description copied from interface:TmaSubscriptionTermServiceReturnsSubscriptionTermModelcorresponding to the given id.- Specified by:
getSubscriptionTermin interfaceTmaSubscriptionTermService- Parameters:
id- subscription term unique id- Returns:
SubscriptionTermModelfound or null in case of no object model is found
-
getDefaultSubscriptionTerm
Description copied from interface:TmaSubscriptionTermServiceDetermines default subscription term.- Specified by:
getDefaultSubscriptionTermin interfaceTmaSubscriptionTermService- Returns:
- the default subscription term configured
-
getSubscriptionTermsFor
Description copied from interface:TmaSubscriptionTermServiceReturns the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription terms- Specified by:
getSubscriptionTermsForin interfaceTmaSubscriptionTermService- Parameters:
priceRow- the price row- Returns:
- the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription terms
-
getSubscriptionTermsFor
Description copied from interface:TmaSubscriptionTermServiceReturns the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription terms- Specified by:
getSubscriptionTermsForin interfaceTmaSubscriptionTermService- Parameters:
discountRow- the discount row- Returns:
- the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription terms
-
getTmaSubscriptionTermDao
-
setTmaSubscriptionTermDao
-
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService() -
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-