Interface PPlanOptionsPageBean

All Superinterfaces:
Remote
All Known Implementing Classes:
PPlanOptionsPageBeanImpl

public interface PPlanOptionsPageBean extends Remote
Remote interface for PPlanOptionsPage controller. This controller is used to get data from database for deal/service purchase.
Author:
Radhika Tirumalasetty
  • Method Details

    • getSubscribedPlansForCurrentAccount

      PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle accModel) throws RemoteException
      Returns the plan modelhandles of the accModel. calls GET_SUBSCRIBED_PLANS to fetch this information.
      Parameters:
      accModel - account model whose plans information need to be fetched.
      Returns:
      array of plan modelhandles of the specified accModel
      Throws:
      RemoteException
    • getCurrentPlanName

      String getCurrentPlanName(PModelHandle accModel) throws RemoteException
      Fetches the plan name of the given accModel
      Returns:
      plan name
      Throws:
      RemoteException
    • getProductsForCurrentAccount

      PModelHandle getProductsForCurrentAccount(PModelHandle accModel) throws RemoteException
      Returns PIN_FLD_PRODUCTS of the given accModel
      Returns:
      a modelhandle of PIN_FLD_PRODUCTS
      Throws:
      RemoteException
    • getName

      String getName(Poid poid) throws RemoteException
      Returns name of the given poid
      Parameters:
      poid - poid whose name is needed
      Returns:
      name
      Throws:
      RemoteException
    • getDescr

      String getDescr(Poid poid) throws RemoteException
      Returns description of the given poid.
      Parameters:
      poid -
      Returns:
      Throws:
      RemoteException
    • getProductsForDeal

      SparseArray getProductsForDeal(Poid dealPoid) throws RemoteException
      Returns PIN_FLD_PRODUCTS of the given dealPoid
      Parameters:
      dealPoid - dealpoid
      Returns:
      products of the given deal
      Throws:
      RemoteException
    • getPrerequisites

      SparseArray getPrerequisites(PModelHandle dealHandle, PModelHandle planModelHandle, PModelHandle accModel) throws RemoteException
      Returns an array of prerequisite deals of the given dealHandle. Uses planModelHandle and accModel to fetch this information.
      Parameters:
      dealHandle -
      Returns:
      an array of prerequisite deals
      Throws:
      RemoteException
    • getMutuallyExclusiveDeals

      String[] getMutuallyExclusiveDeals(PModelHandle dealHandle) throws RemoteException
      Returns an array of mutually exclusive deals of the given dealHandle.
      Parameters:
      dealHandle - deal whose mutually exclusive deals are required
      Returns:
      array of mutually exclusive deals
      Throws:
      RemoteException
    • validateDealDependency

      Object validateDealDependency(SparseArray dealsArray, PModelHandle accModel, boolean isAcctCreation) throws RemoteException
      Validates the deals in the given dealsArray. calls BILL_VALIDATE_DEAL_DEPENDENCY opcode to do this validation.
      Parameters:
      dealsArray - array containing the deals to be validated.
      Returns:
      an instance of DealDependencyErrorData containing the output of the opcode. In case of an exception returns CustomerValErrorData.
      Throws:
      RemoteException
    • updateDealHandleWithServiceObj

      PModelHandle updateDealHandleWithServiceObj(PModelHandle dealHandle, PModelHandle serviceHandle) throws RemoteException
      Updates the deal handle with service Obj info.
      Parameters:
      dealHandle -
      serviceHandle -
      Returns:
      Throws:
      RemoteException
    • getUpdatedPlanOffering

      PModelHandle getUpdatedPlanOffering(PModelHandle planHandle, SparseArray dealsToBePurchased) throws RemoteException
      Returns the updated plan offering with purchase flags set for whatever deals/sevices which are selected on plan options page.
      Parameters:
      planHandle -
      dealsToBePurchased -
      Returns:
      Throws:
      RemoteException
    • appendSelectedOptionalDeals

      void appendSelectedOptionalDeals(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) throws RemoteException
      Appends the optionalDeals to the planHandle to be used for collecting data.
      Parameters:
      planHandle - - model handle associated with collect data event.
      optionalDeals -
      curPlan - - current plan model handle
      Throws:
      RemoteException
    • getPoidFromPrerequisiteMap

      PModelHandle getPoidFromPrerequisiteMap(PModelHandle dealHandle, String dealName) throws RemoteException
      Retrieves poid from Prerequiste Map.
      Parameters:
      dealHandle -
      dealName -
      Returns:
      Throws:
      RemoteException
    • isCSRPlan

      boolean isCSRPlan(PModelHandle plan) throws RemoteException
      Checks if the given plan has /service/admin_client in it.
      Parameters:
      plan -
      Returns:
      true if the specified plan is a CSR plan.
      Throws:
      RemoteException
    • collectDataForUpgrade

      void collectDataForUpgrade(PModelHandle inMH, PModelHandle toPlan) throws RemoteException
      Appends selected setvices data to the model flist.
      Parameters:
      inMH - Modelhandle of collect data event
      toPlan - ModelHandle of the plan to which transition is being done
      Throws:
      RemoteException
    • isMappingRequired

      boolean isMappingRequired(PModelHandle curPlan, PModelHandle toPlan) throws RemoteException
      Returns true if mapping is required.
      Parameters:
      curPlan - Current plan from which we want to upgrade
      toPlan - new plan to which we are upgrading
      Returns:
      true if mapping is required else false.
      Throws:
      RemoteException
    • getUpdatedPlanOfferingForChangeOption

      PModelHandle getUpdatedPlanOfferingForChangeOption(PModelHandle subscribedPlan, SparseArray selectedDeals) throws RemoteException
      Returns the plan data for change options offering.
      Parameters:
      subscribedPlan -
      selectedDeals -
      Returns:
      Throws:
      RemoteException
    • getPlanOfferingForUpgrade

      PModelHandle getPlanOfferingForUpgrade(PModelHandle planHandle, SparseArray dealsToBePurchased, PModelHandle fromPlanHandle) throws RemoteException
      Returns the plan data for upgrade operation.
      Parameters:
      planHandle - - the plan handle of the plan to which upgrade is happening.
      dealsToBePurchased - - deals which need to be purchased
      fromPlanHandle - - The from plan from which upgrade is happening.
      Throws:
      RemoteException
    • readObject

      FList readObject(Poid poid) throws RemoteException
      Reads the object pointed by poid
      Parameters:
      poid -
      Returns:
      the flist containing the object details
      Throws:
      RemoteException
    • isAnyServiceCustReqd

      boolean isAnyServiceCustReqd(SparseArray deals) throws RemoteException
      Decides if any service corresponding to any of the specified deals needs service customization.
      Parameters:
      deals - contains the deal model handles
      Returns:
      true if service of any of the deals requires service customization
      Throws:
      RemoteException
    • isServicePurchasedInFromPlan

      boolean isServicePurchasedInFromPlan(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException
      Checks if the service type represented by toServiceHandle is purchased in fromPlan.
      Parameters:
      fromPlanHandle -
      toServiceHandle -
      Returns:
      Throws:
      RemoteException
    • isServiceCustReqdForTransition

      boolean isServiceCustReqdForTransition(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException
      Checks if the customization is required for any service during transition operation.
      Parameters:
      fromPlanHandle - the plan that the account currently owns.
      toServiceHandle - the plan to which transition is being happening.
      Returns:
      boolean indicating service customization is required or not
      Throws:
      RemoteException