Class PCCUtilBeanImpl

java.lang.Object
com.portal.app.cc.comp.PCCUtilBeanImpl

public class PCCUtilBeanImpl extends Object
General utility controller class The following opcodes are used by this controller:
  • PortalOp.CUST_FIND
  • Constructor Details

    • PCCUtilBeanImpl

      public PCCUtilBeanImpl()
  • Method Details

    • getAccount

      public PModelHandle getAccount(String accNum) throws PInfranetException
      Obtain the account poid using PCM_OP_CUST_FIND, given the account number
      Parameters:
      accNum - account number
      Throws:
      PInfranetException
    • getBill

      public PModelHandle getBill(String billNum) throws PInfranetException
      Retrieve the bill poid, given the bill number
      Parameters:
      billNum - bill number
      Throws:
      PInfranetException
    • getObject

      public PModelHandle getObject(PModelHandle poidHandle, boolean asPinFldResults) throws PInfranetException
      Retrieves an object, given the object poid by using the READ_OBJ opcode.
      Parameters:
      poidHandle - PModelHandle for the poid
      isPinFldResults - true if return type is as the pmodel handle of PinFldResults enclosing the opcode output false if return type as the pmodel handle of opcode output.
      Throws:
      PInfranetException
    • getWholeObject

      public PModelHandle getWholeObject(PModelHandle poidHandle, boolean asPinFldResults) throws PInfranetException
      Retrieve an entire object, given the object poid.
      Parameters:
      poidHandle - PModelHandle for the poid
      asPinFldResults - true if return type is as the pmodel handle of PinFldResults, false if return type as the pmodel handle of opcode output.
      Throws:
      PInfranetException
    • getRecords

      public ArrayList getRecords(PModelHandle mh, Object[] fields)
      Extracts the fields inside an FList specified by the pmodel handle and stores each record of data (set of fields) in a vector, and each vector in an array list that is finally returned. This api is useful to append the PIASpecSpreadSheet with data.
      Parameters:
      mh - model handle
      fields - interested fields for display in the table
    • getBillInfo

      public PModelHandle[] getBillInfo(PModelHandle model) throws RemoteException
      Throws:
      RemoteException
    • appendModelHandle

      public PModelHandle appendModelHandle(PModelHandle mhExisting, PModelHandle mhAdd) throws RemoteException
      Throws:
      RemoteException