Package com.portal.app.ccare.comp
Class PBestPricingBeanImpl
java.lang.Object
com.portal.app.ccare.comp.PBestPricingBeanImpl
- All Implemented Interfaces:
PBestPricingBean
Controller class for the best pricing related operations.
-
Field Summary
Fields inherited from interface com.portal.app.ccare.comp.PBestPricingBean
ALT_DEALS, APPLY_MODE, BASE_DEAL, BEFORE_SAVING, SAVING_DATA
-
Method Summary
Modifier and TypeMethodDescriptioncalculateBestPricing
(Poid acPoid) calculate on demand best pricing by calling SUBSCRIPTION_CALC_BEST_PRICING in CALC_ONLY mode.This method returns all the best pricing configured deals.getBestConfigDeal
(Poid dealObj) Used to to find out the configuration details of the selected dealstatic PBestPricingBean
maintains single instance through out all classes that uses this classboolean
hasBestDeal
(Poid accPoid) finds out if the current account has any best configured deal purchasedboolean
isBestDeal
(Poid dealPoid) Checks if the current deal is best configured deal.
-
Method Details
-
getBestPricingController
maintains single instance through out all classes that uses this class- Returns:
- PBestPricingBeanImpl
-
isBestDeal
Checks if the current deal is best configured deal. And stores into HashMap for future use.- Specified by:
isBestDeal
in interfacePBestPricingBean
- Returns:
- true if deal is best configured else returns false
-
getAllBestDeals
This method returns all the best pricing configured deals.- Specified by:
getAllBestDeals
in interfacePBestPricingBean
- Returns:
- ArrayList containing all the best pricing configured deals.
-
getBestConfigDeal
Used to to find out the configuration details of the selected deal- Specified by:
getBestConfigDeal
in interfacePBestPricingBean
- Parameters:
model
- the PModelHandle containing the selected deal.- Returns:
- PModelHandle containing the details of the configuration.
-
calculateBestPricing
calculate on demand best pricing by calling SUBSCRIPTION_CALC_BEST_PRICING in CALC_ONLY mode.- Specified by:
calculateBestPricing
in interfacePBestPricingBean
- Parameters:
acPoid
- Account Poid- Returns:
- HashMap if successful, CustomerError if not
-
hasBestDeal
finds out if the current account has any best configured deal purchased- Specified by:
hasBestDeal
in interfacePBestPricingBean
- Parameters:
accPoid
- Poid- Returns:
- boolean
-