Class PBestPricingBeanImpl

java.lang.Object
com.portal.app.ccare.comp.PBestPricingBeanImpl
All Implemented Interfaces:
PBestPricingBean

public class PBestPricingBeanImpl extends Object implements PBestPricingBean
Controller class for the best pricing related operations.
  • Method Details

    • getBestPricingController

      public static PBestPricingBean getBestPricingController()
      maintains single instance through out all classes that uses this class
      Returns:
      PBestPricingBeanImpl
    • isBestDeal

      public boolean isBestDeal(Poid dealPoid)
      Checks if the current deal is best configured deal. And stores into HashMap for future use.
      Specified by:
      isBestDeal in interface PBestPricingBean
      Returns:
      true if deal is best configured else returns false
    • getAllBestDeals

      public ArrayList getAllBestDeals()
      This method returns all the best pricing configured deals.
      Specified by:
      getAllBestDeals in interface PBestPricingBean
      Returns:
      ArrayList containing all the best pricing configured deals.
    • getBestConfigDeal

      public HashMap getBestConfigDeal(Poid dealObj)
      Used to to find out the configuration details of the selected deal
      Specified by:
      getBestConfigDeal in interface PBestPricingBean
      Parameters:
      model - the PModelHandle containing the selected deal.
      Returns:
      PModelHandle containing the details of the configuration.
    • calculateBestPricing

      public Object calculateBestPricing(Poid acPoid)
      calculate on demand best pricing by calling SUBSCRIPTION_CALC_BEST_PRICING in CALC_ONLY mode.
      Specified by:
      calculateBestPricing in interface PBestPricingBean
      Parameters:
      acPoid - Account Poid
      Returns:
      HashMap if successful, CustomerError if not
    • hasBestDeal

      public boolean hasBestDeal(Poid accPoid)
      finds out if the current account has any best configured deal purchased
      Specified by:
      hasBestDeal in interface PBestPricingBean
      Parameters:
      accPoid - Poid
      Returns:
      boolean