Class PHierarchyMoveAcctBeanImpl

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

public class PHierarchyMoveAcctBeanImpl extends PIAComponentCollectionBean implements PHierarchyMoveAcctBean
See Also:
  • Field Details

    • ERR_BAD_POID

      public static String ERR_BAD_POID
  • Constructor Details

  • Method Details

    • moveAccount

      public void moveAccount(PModelHandle model, PModelHandle destAcctModel, Date deferredTo, boolean billNowModel, PModelHandle paymentModel) throws RemoteException
      Executes the CUSTCARE_MOVE_ACCT opcode to move an account
      Specified by:
      moveAccount in interface PHierarchyMoveAcctBean
      Parameters:
      model - The PModelHandle of the account to be moved
      destAcctModel - The PModelHandle of the target account. If null, the source account will be moved out of the hierarchy
      deferredTo - The date the move is deferred to If null, the move is not deferred
      billNowModel - set to true, if the pending charges are to be billed before the move; otherwise, set it to false
      paymentModel - A modelhandle containing info required to make a change in the payment method; set it to null if you don't want to change the payment type
      destAcct - The account number of the target account. If null, the source account will be moved out of the hierarchy
      Throws:
      RemoteException
    • moveAccount

      public void moveAccount(PModelHandle model, PModelHandle destAcctModel, Date deferredTo, PModelHandle billNowModel, PModelHandle paymentModel) throws RemoteException
      Executes the CUSTCARE_MOVE_ACCT opcode to move an account; can also be made to perform a bill now and a payment change before the move
      Specified by:
      moveAccount in interface PHierarchyMoveAcctBean
      Parameters:
      model - PModelHandle of the account to be moved
      destAcctModel - PModelHandle The PModelHandle of the target account. If null, the source account will be moved out of the hierarchy
      deferredTo - Date The date the move is deferred to If null, the move is not deferred
      billNowModel - PModelHandle The PModelHandle of billnow billinfos.
      paymentModel - PModelHandle A modelhandle containing info required to make a change in the payment method; set it to null if you don't want to change the payment type
      destAcct - PModelHandle The PModelHandle of the target account. If null, the source account will be moved out of the hierarchy
      Throws:
      RemoteException
    • isSubordAcct

      public boolean isSubordAcct(Poid acctPoid)
      Return true/false based on the account having any bill info paid by parent.
      Specified by:
      isSubordAcct in interface PHierarchyMoveAcctBean
    • getBillInfoBalanceSummary

      public Object[] getBillInfoBalanceSummary(int nIncludeChildren, PModelHandle hAcct) throws RemoteException
      Retrieve the account balance summary data Call PortalOp.AR_GET_ACCT_BAL_SUMMARY
      Specified by:
      getBillInfoBalanceSummary in interface PHierarchyMoveAcctBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      hAcct - Handle for the current account object
      Returns:
      Object[]
      Throws:
      RemoteException