Class PIABalanceInfoBeanImpl

All Implemented Interfaces:
PIABalanceInfoBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIABalanceInfoBeanImpl extends PIAComponentCollectionBean implements PIABalanceInfoBean
Controller object for the Account Balance
Author:
Kapono Carter
See Also:
  • Constructor Details

    • PIABalanceInfoBeanImpl

      public PIABalanceInfoBeanImpl() throws RemoteException
      Creates a controller for the to retrive the balances array
      Throws:
      RemoteException
  • Method Details

    • getCurrencyData

      public List getCurrencyData()
      The getter method to access the Currency Resource when the bean is loaded.
      Specified by:
      getCurrencyData in interface PIABalanceInfoBean
      Returns:
      mCurrency
    • getCurrencyData

      public Object getCurrencyData(int index)
      The getter method to access the Currency Resource at index when the bean is loaded
      Specified by:
      getCurrencyData in interface PIABalanceInfoBean
      Parameters:
      index -
    • setCurrencyData

      protected void setCurrencyData(Object Result)
      The setter method used to set the Non Currency Resource indexed property at index
      Parameters:
      Result - - Object
    • getNonCurrencyData

      public List getNonCurrencyData()
      The getter method to access the Non Currency Resource when the bean is loaded.
      Specified by:
      getNonCurrencyData in interface PIABalanceInfoBean
      Returns:
      mCurrency
    • getNonCurrencyData

      public Object getNonCurrencyData(int index)
      The getter method to access the Non Currency Reource at index when the bean is loaded
      Specified by:
      getNonCurrencyData in interface PIABalanceInfoBean
      Parameters:
      index -
    • setNonCurrencyData

      protected void setNonCurrencyData(Object Result)
      The setter method used to set the Non Currency Resrouce indexed property at index
      Parameters:
      Result - - Object
    • update

      public void update(int reason, Object data) throws RemoteException
      Updates the balance panel with the balance information for the current account. The primary and secondary currency (if any) is retrieved, as well as the current balance and credit limit.
      Specified by:
      update in interface PIABalanceInfoBean
      Overrides:
      update in class PIAComponentCollectionBean
      Parameters:
      reason -
      data -
      Throws:
      RemoteException
    • getCurrencySymbol

      public Object getCurrencySymbol(int index) throws RemoteException
      Used to retrieve the currency symbol for a given row
      Specified by:
      getCurrencySymbol in interface PIABalanceInfoBean
      Parameters:
      index -
      Throws:
      RemoteException
    • getBEIDData

      public Object getBEIDData(int index, boolean currency) throws RemoteException
      Specified by:
      getBEIDData in interface PIABalanceInfoBean
      Throws:
      RemoteException
    • getBEIDDescription

      public Object getBEIDDescription(int index) throws RemoteException
      Specified by:
      getBEIDDescription in interface PIABalanceInfoBean
      Throws:
      RemoteException
    • isSecIDNonZero

      public Boolean isSecIDNonZero() throws RemoteException
      Specified by:
      isSecIDNonZero in interface PIABalanceInfoBean
      Throws:
      RemoteException
    • getReasonData

      public Object getReasonData(Object eventData) throws RemoteException
      Specified by:
      getReasonData in interface PIABalanceInfoBean
      Throws:
      RemoteException
    • setAccountPoid

      public void setAccountPoid(Poid pAcctPoid)
      Sets the account poid
      Specified by:
      setAccountPoid in interface PIABalanceInfoBean
      Parameters:
      pAcctPoid - a Poid for an account
      Throws:
      RemoteException
    • getAccountPoid

      public Poid getAccountPoid()
      Gets the account poid
      Specified by:
      getAccountPoid in interface PIABalanceInfoBean
      Returns:
      pAcctPoid a Poid for an account
    • setBalanceGroupPoid

      public void setBalanceGroupPoid(Poid pBalGrpPoid)
      Sets the Balance Group poid
      Specified by:
      setBalanceGroupPoid in interface PIABalanceInfoBean
      Parameters:
      pBalGrpPoid - a Poid for Balance Group
    • getBalanceGroupPoid

      public Poid getBalanceGroupPoid()
      Gets the Balance Group poid
      Specified by:
      getBalanceGroupPoid in interface PIABalanceInfoBean
      Returns:
      pBalGrpPoid a Poid for Balance Group
    • setBillinfoPoid

      public void setBillinfoPoid(Poid pBillinfoPoid)
      Sets the Billinfo poid
      Specified by:
      setBillinfoPoid in interface PIABalanceInfoBean
      Parameters:
      pBillinfoPoid - a Poid for billinfo
    • getBillinfoPoid

      public Poid getBillinfoPoid()
      Gets the Billinfo poid
      Specified by:
      getBillinfoPoid in interface PIABalanceInfoBean
      Returns:
      pBillinfoPoid a Poid for Billinfo
    • getAllSvcLvlBillinfos

      public Hashtable getAllSvcLvlBillinfos()
      Gets the available billinfo's for given account.
      Specified by:
      getAllSvcLvlBillinfos in interface PIABalanceInfoBean
      Returns:
      A Hashtable of billinfo details.
    • getAcctLvlBillinfoDetails

      public Hashtable getAcctLvlBillinfoDetails()
      Gets the available billinfo to which default accoutn level balance group is associated with for given account.
      Specified by:
      getAcctLvlBillinfoDetails in interface PIABalanceInfoBean
      Returns:
      A Hashtable of billinfo details.
    • getAllNameinfo

      public Hashtable getAllNameinfo()
      Gets the available nameinfo for given account.
      Specified by:
      getAllNameinfo in interface PIABalanceInfoBean
      Returns:
      A Hashtable of nameinfo details.
    • getCurrencyCurrentBal

      public BigDecimal getCurrencyCurrentBal()
      Gets the Current balance for currency balance group
      Specified by:
      getCurrencyCurrentBal in interface PIABalanceInfoBean
      Returns:
      mCurrentBalance a BigDecimal current balance amount for the currency balance
    • getBalancesForAcctAndBillinfo

      public Hashtable getBalancesForAcctAndBillinfo()
      Gets the available balances for given account and billinfo poid
      Returns:
      A Hashtable of balances details.
    • getSvcsForBalGrpOfAcctAndBillinfo

      public Hashtable getSvcsForBalGrpOfAcctAndBillinfo()
      Gets the available services for the balance group for given account and billinfo poid
      Specified by:
      getSvcsForBalGrpOfAcctAndBillinfo in interface PIABalanceInfoBean
      Returns:
      A Hashtable of services associated to all balances groups of given billinfo.
    • getBalsOfAllBalGrpsOfAcctAndBillinfo

      public Hashtable getBalsOfAllBalGrpsOfAcctAndBillinfo()
      Gets the available balances for each balance group for given account and billinfo poid
      Specified by:
      getBalsOfAllBalGrpsOfAcctAndBillinfo in interface PIABalanceInfoBean
      Returns:
      A Hashtable of balances details for all balances groups of given billinfo.
    • getCurrencyCreditLimitForBillunit

      public BigDecimal getCurrencyCreditLimitForBillunit()
      Gets the Credit limit for selected Billinfo . This method does a summation of the Credit limit of all Balance Groups of a given Billinfo. If the Credit Limit of any Balance Group is unlimited then this method will return a null.
      Specified by:
      getCurrencyCreditLimitForBillunit in interface PIABalanceInfoBean
      Returns:
      A BigDecimal Credit limit of given billinfo.
    • getAcctLvlBalanceGroupAndBillinfoID

      public PModelHandle getAcctLvlBalanceGroupAndBillinfoID(PModelHandle mHAcct, ResourceBundle bundle) throws RemoteException
      Gets default account level billinfo and balance group Poid.This is the Action method for the bean.
      Specified by:
      getAcctLvlBalanceGroupAndBillinfoID in interface PIABalanceInfoBean
      Parameters:
      mHAcct - the PModelHandle for the account
      bundle - the resource bundle
      Returns:
      mHBalGrp the PModelHandle for Flist containing account poid and default account level balance group and billinfo poid's.
      Throws:
      RemoteException - thrown if no billinfo and balance group found or for null POIDs
    • getBalancesForAcctAndBalGrpID

      public Hashtable getBalancesForAcctAndBalGrpID(Poid pAcctPoid, Poid pBalGrpPoid) throws RemoteException
      Gets balance details for the given account and balance group Poid.This is the Action method for the bean.
      Specified by:
      getBalancesForAcctAndBalGrpID in interface PIABalanceInfoBean
      Parameters:
      pAcctPoid - account POID.
      pBalGrpPoid - Balance Group POID.
      Returns:
      A Hashtable of balances details.
      Throws:
      RemoteException - thrown if no balances found or for null POIDs
    • processGetBalancesOutputFlist

      protected Hashtable processGetBalancesOutputFlist(FList flOut) throws RemoteException
      Parses the output flist with balances information.
      Parameters:
      flOut - the Flist containing balances information.
      Returns:
      A Hashtable of balances details.
      Throws:
      RemoteException - thrown if no Balances are found or for null POIDs
    • processAcctLvlBalGrpAndBillinfoMH

      protected void processAcctLvlBalGrpAndBillinfoMH(PModelHandle mHBalGrp) throws RemoteException
      Parses the output flist with default account level balance group, billinfo and account poid
      Parameters:
      mHBalGrp - the PModelHandle for Flist containing account poid and default account level balance group and billinfo poid's.
      Throws:
      RemoteException - thrown if no billinfo, balance group are found or for null POIDs
    • getBalGrpsAndSvcsForAcctAndBillInfo

      public void getBalGrpsAndSvcsForAcctAndBillInfo(Poid pAcctPoid, Poid pBillinfoPoid) throws RemoteException
      Gets balance groups and services details associated to the given account and billinfo objects.
      Specified by:
      getBalGrpsAndSvcsForAcctAndBillInfo in interface PIABalanceInfoBean
      Parameters:
      pAcctPoid - account POID.
      pBillinfoPoid - Billinfo POID.
      Throws:
      RemoteException - thrown if no balace groups and services are found or for null POIDs
    • processBalGrpAndSvcOutputFlist

      protected void processBalGrpAndSvcOutputFlist(FList flOut) throws RemoteException
      Parses the output flist with balance groups and services
      Parameters:
      flOut - the Flist containing balance groups and services.
      Throws:
      RemoteException - thrown if no Balance groups and services are found or for null POIDs
    • getAllBillInfoAndDetailsForAcct

      public PModelHandle getAllBillInfoAndDetailsForAcct(PModelHandle mHAcct) throws RemoteException
      Gets all billinfo details for the the given account poid
      Specified by:
      getAllBillInfoAndDetailsForAcct in interface PIABalanceInfoBean
      Parameters:
      mHAcct - the PModelHandle for the account
      Returns:
      mhBillInfos the PModelHandle for the list of all the billinfo's and its details for given account.
      Throws:
      RemoteException - thrown if no billinfo's are found or for null POIDs
    • processOutputFlistOfBillinfos

      public void processOutputFlistOfBillinfos(PModelHandle mhBillInfos) throws RemoteException
      Parses the output flist with all the billinfos and its details for the given account poid
      Specified by:
      processOutputFlistOfBillinfos in interface PIABalanceInfoBean
      Parameters:
      mhBillInfos - the PModelHandle for Flist containing all the billinfos and its details for the given account poid.
      Throws:
      RemoteException - thrown if no billinfos are found or for null POIDs
    • processNameinfoArray

      protected void processNameinfoArray(SparseArray nameinfoArray) throws RemoteException
      Throws:
      RemoteException
    • processBillinfoArray

      protected void processBillinfoArray(SparseArray billInfoArray) throws RemoteException
      Throws:
      RemoteException
    • getPrimaryCurrencySymbol

      public String getPrimaryCurrencySymbol()
      Gets the primary currency symbol of the account.
      Specified by:
      getPrimaryCurrencySymbol in interface PIABalanceInfoBean
      Returns:
      mPrimaryCurrencySymbol a String of primary currency symbol
    • getBalanceSummaryForBillInfo

      public BigDecimal getBalanceSummaryForBillInfo(Poid billInfoPoid, int nIncludeChildren) throws RemoteException
      method for geting the currency balance of selected bilInfo
      Specified by:
      getBalanceSummaryForBillInfo in interface PIABalanceInfoBean
      Parameters:
      billInfoPoid - selected BillInfoPOID.
      nIncludeChildren - flag to include child Accounts
      Returns:
      BigDecimal Currency balance of selected bilInfo
      Throws:
      RemoteException