Interface PPurchasePanelBean

All Superinterfaces:
Remote
All Known Implementing Classes:
PPurchasePanelBeanImpl

public interface PPurchasePanelBean extends Remote
Remote interface for PPurchasePanel controller. This controller is used to get data from database for deal/service purchase.
Version:
%version: 9 % %date_modified: Tue Aug 21 11:08:58 2001 %
Author:
kowang
  • Method Details

    • initForExistingServices

      void initForExistingServices(PModelHandle acctMH) throws RemoteException
      Initialize class member for storing Existing Services related info during purchase offering.
      Parameters:
      accountMH - model handle for the account object.
      Throws:
      RemoteException
    • initForExistingServices

      int initForExistingServices(PModelHandle acctMH, int threshold) throws RemoteException
      Initialize class member for storing Existing Services related info during purchase offering.
      Parameters:
      threshold -
      accountMH - model handle for the account object.
      Throws:
      RemoteException
    • setService

      void setService(PModelHandle serviceMH)
      Sets the service cache
      Parameters:
      serviceMH -
    • getExistingServicesModel

      PModelHandle getExistingServicesModel() throws RemoteException
      Retrieves PModelHandle of services for the specific account
      Returns:
      model handle of services.
      Throws:
      RemoteException
    • getDealsNamesStrings

      String[] getDealsNamesStrings(int dealIndex) throws RemoteException
      Retrieves sorted deal names from an array of Vector during purchase offering.
      Parameters:
      dealIndex - index to the array where deal names are stored for a specific service/(Account).
      Returns:
      String array that contains all deal names belongs to a service/(Account).
      Throws:
      RemoteException
    • getDealModelHandle

      PModelHandle getDealModelHandle(int serviceIndex, String dealName) throws RemoteException
      Retrieves a deal model handle for a specific deal when Existing Services is selected during purchase offering.
      Parameters:
      serviceIndex - index to the flist array where the service flists are stored in corresponds to the order in the Existing Services combobox.
      dealName - deal name of the selected deal for the selected service/(Account).
      Returns:
      PModelHandle that contains model handle for the selected deal and service.
      Throws:
      RemoteException
    • getPlanModelHandle

      PModelHandle getPlanModelHandle(String planName) throws RemoteException
      Retrieves plan model for a specific plan during purchase offering or account creation.
      Parameters:
      planName - plan name of the specific plan.
      Returns:
      PModelHandle that contains model handle for the selected plan.
      Throws:
      RemoteException
    • getPlanNamesStrings

      String[] getPlanNamesStrings() throws RemoteException
      Retrieves sorted plan names when New Services is getting selected on Purchase Panel during purchase offering or account creation.
      Returns:
      String array that contains strings of plan names.
      Throws:
      RemoteException
    • collectPlanData

      void collectPlanData(PModelHandle inMH, String planName) throws RemoteException
      Builds PModdelHandle by appending the plan model handle to the input model handle during purchase offering and account creation.
      Parameters:
      planName - string of the plan name..
      Throws:
      RemoteException
    • collectDealData

      void collectDealData(PModelHandle inMH, int serviceIndex, String dealName) throws RemoteException
      Builds PModelHandle by appending the deal model handle to the input model handle during purchase offering.
      Parameters:
      serviceIndex - index to the flist array where the service flists are stored.
      dealName - string of the deal name..
      Throws:
      RemoteException
    • collectBackDateData

      void collectBackDateData(PModelHandle inMH, Date backDate) throws RemoteException
      Builds PModelHandle by appending the deal/plan model handle to the input model handle during purchase offering.
      Parameters:
      inMH - PModelHandle
      backDate -
      Throws:
      RemoteException
    • setAacAccess

      void setAacAccess(String strAccess) throws RemoteException
      Sets the auto-account-creation access string which is used to determine the list of plans that will be made available to choose during account creation and purchase offering for additional services. "admintool" is the string that will be used by default when fetching the plan list.
      Parameters:
      strAccess - auto-account-creation access string.
      Throws:
      RemoteException
    • resetAcctCreationData

      void resetAcctCreationData() throws RemoteException
      Clears cached data used during New Account Creation Wizard. An example of when the cache would want to be refreshed is when a brand change occurs.
      Throws:
      RemoteException
    • resetPurchaseOfferingData

      void resetPurchaseOfferingData() throws RemoteException
      Clears cached data used during Purchase Offering Wizard. An example of when the cache would want to be refreshed is when an account change occurs.
      Throws:
      RemoteException
    • getCurrentPlanName

      String getCurrentPlanName(PModelHandle accModel) throws RemoteException
      Retrives the plan name of the current account
      Throws:
      RemoteException
    • getSubscribedPlansForCurrentAccount

      PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle accModel) throws RemoteException
      Retrives the list of subscribed plans of the current account
      Returns:
      PModelHandle array of subscribed plans
      Throws:
      RemoteException
    • getCurrentPlanPoid

      Poid getCurrentPlanPoid() throws RemoteException
      Retrives the current plan poid.
      Returns:
      poid of the current plan
      Throws:
      RemoteException
    • isAcctHasPlan

      boolean isAcctHasPlan(PModelHandle accModel) throws RemoteException
      Checks if the current account has plan associated with it.
      Returns:
      true if account has plan else returns false
      Throws:
      RemoteException
    • getInactiveReqProdNamesForCurAccount

      Object[] getInactiveReqProdNamesForCurAccount(PModelHandle accModel) throws RemoteException
      Returns an array products which are inactive in the current account.
      Returns:
      an array products which are inactive in the current account.
      Throws:
      RemoteException
    • getTransitionablePlanStrings

      Object[] getTransitionablePlanStrings(PModelHandle planHandle, int iTransitionType) throws RemoteException
      Returns an array of plan names which are available for transition from the current plan.
      Parameters:
      planHandle - plan model handle
      iTransitionType - Transition type such as upgrade, downgrade, red, etc.,
      Returns:
      an array of plan names which are available for transition from the current plan.
      Throws:
      RemoteException
    • getTransitionablePlanModelHandle

      PModelHandle getTransitionablePlanModelHandle(String planName) throws RemoteException
      Returns plan model handle associated with given plan string.
      Parameters:
      planName - name of the plan
      Returns:
      plan model handle associated with given plan string.
      Throws:
      RemoteException
    • collectPlanDataForRequiredDeals

      void collectPlanDataForRequiredDeals(PModelHandle inMH, String planName) throws RemoteException
      Collects plan data for the required deals to be used by COMMIT_CUSTOMER.
      Throws:
      RemoteException
    • collectDataForPlanTransition

      void collectDataForPlanTransition(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) throws RemoteException
      Collects data for plan transition
      Parameters:
      inMH - input modelhandle to which collected data need to be updated
      fromPlan - from plan model handle
      planToUpgrade - name of the plan to which the account is getting upgraded to.
      accModel - account model handle
      iTransitionType - Transition type such as upgrade, downgrade, red, etc.,
      Throws:
      RemoteException
    • collectDataForChangeOption

      void collectDataForChangeOption(PModelHandle origMH, PModelHandle curAccModel, PModelHandle curPlanHandle, SparseArray dealsToBePurchased) throws RemoteException
      Collects data for change options
      Parameters:
      origMH - input modelhandle to which collected data need to be updated
      curAccModel - current account model
      curPlanHandle - current plan model
      dealsToBePurchased - list of deals which are selected in planoptions page to purchase.
      Throws:
      RemoteException
    • getPlans

      Vector getPlans(PModelHandle curAccModel) throws RemoteException
      Returns subscribedplans of current account wrapped in SubscribedPlanObject instances.
      Parameters:
      curAccModel - current account model.
      Returns:
      vector of subscribed plan objects
      Throws:
      RemoteException
    • getDealsForTransition

      Vector getDealsForTransition(PModelHandle curAccModel, int iTransitionType) throws RemoteException
      Returns the vector of deal objects which can be transitioned to other deals.
      Parameters:
      curAccModel - current account model
      iTransitionType - - denotes current transition type(upgrade or downgrade or etc.,)
      Returns:
      the vector of subscribed deal objects from the plan/plans of the given account which has transitionable deals.
      Throws:
      RemoteException
    • getTransitionableDealStrings

      Object[] getTransitionableDealStrings(PModelHandle dealHandle, PModelHandle currAcctHandle, int iTransitionType) throws RemoteException
      Returns the array of transitionable deal names of the given deal.
      Parameters:
      dealHandle -
      currAcctHandle -
      iTransitionType - Transition type such as upgrade, downgrade, red, etc.,
      Returns:
      the array of transitionable deal names of the given deal.
      Throws:
      RemoteException
    • getTransitionableDealModelHandle

      PModelHandle getTransitionableDealModelHandle(String name) throws RemoteException
      Returns the deal handle given the deal name.
      Parameters:
      name -
      Returns:
      the deal handle given the deal name.
      Throws:
      RemoteException
    • collectDataForDealTransition

      void collectDataForDealTransition(PModelHandle origModel, PModelHandle acctModel, PModelHandle fromDeal, PModelHandle serviceModel, String toDealName, int iTransitionType) throws RemoteException
      Collects data for deal-deal transition.
      Parameters:
      origModel - model associated with Collect data event.
      acctModel - current account model.
      fromDeal - from deal handle.
      serviceModel - service model of the from deal.
      toDealName - to deal handle
      iTransitionType - Transition type such as upgrade, downgrade, red, etc.,
      Throws:
      RemoteException
    • hasRequiredServices

      boolean hasRequiredServices(PModelHandle planHandle, boolean planOptionsFlag) throws RemoteException
      Returns true if plan has required deals/services.
      Parameters:
      planHandle -
      planOptionsFlag - is a customized flag which conveys if plan options page should be enabled if plan being used contains only optional deals. If it is true, then we will see if PIN_FLD_TYPE is present in any deal in the plan and return true. If planOptionsFlag is false, then we will see if a required deal (PIN_FLD_TYPE is 1) is there are not, if present, we will return true.
      Returns:
      Throws:
      RemoteException
    • getTransitionTypes

      Vector getTransitionTypes() throws RemoteException
      Returns the transition types available. Performs search on /config/transition_type which returns an array of PIN_FLD_TRANSITIONS. Constructs Transition Object instances from this information and returns them in a Vector
      Returns:
      a vector containing instances of transition objects
      Throws:
      RemoteException
    • getServiceFlist

      FList getServiceFlist(int index)
      Retrieves Service FLists from an array .
      Parameters:
      index - index to the array where Service FLists are stored.
      Returns:
      FList which is a service FList
    • isBestDeal

      boolean isBestDeal(String dealName) throws RemoteException
      Checks if the current deal is best configured deal.
      Returns:
      true if deal is best configured else returns false
      Throws:
      RemoteException
    • hasSponsoredProduct

      boolean hasSponsoredProduct(PModelHandle planModelHandle, ArrayList sponsoredProducts) throws RemoteException
      This will return true if the selected plan has a product which is present in the list of the sponsored products
      Parameters:
      planModelHandle - modelHandle containing the products of the selected plan
      sponsoredProducts - the list of the sponsored products
      Returns:
      Throws:
      RemoteException
    • getLoginIDs

      Object[] getLoginIDs(PModelHandle serviceModelHandle) throws RemoteException
      Returns the Object[] contains the following. Object[0] contains the login id to be displayed. Object[1] contains the service type of the service.
      Parameters:
      serviceModelHandle -
      Returns:
      Object[]
      Throws:
      RemoteException
    • hasPlanSubcriptionGroup

      boolean hasPlanSubcriptionGroup(String planName) throws RemoteException
      Finds out if the given plan contains subscription group
      Parameters:
      planName - name of the selected plan
      Returns:
      true if plan has subscription group, false otherwise
      Throws:
      RemoteException
    • formBalanceGrpCurrencyMap

      HashMap formBalanceGrpCurrencyMap(PModelHandle hOrig) throws RemoteException
      This method forms an hashmap with balance group index as keys and the corresonding credit limits as values
      Parameters:
      hOrig - PModelHandle, is the orginal model handle for the selected plan
      Returns:
      HashMap balancegroup index and credit limits map
      Throws:
      Exception
      RemoteException
    • updatePlanModelHandle

      void updatePlanModelHandle(PModelHandle pmh) throws RemoteException
      Update Plan model handle for account creation
      Parameters:
      pmh -
      Throws:
      RemoteException