Class POnlinePaymentAuditBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.POnlinePaymentAuditBeanImpl
All Implemented Interfaces:
PControllerBean, POnlinePaymentAuditBean, Serializable, Remote, Unreferenced

public class POnlinePaymentAuditBeanImpl extends PControllerImpl implements POnlinePaymentAuditBean, Serializable
POnlinePaymentAuditBeanImpl is a controller that defines the Online Payment Audit Input Form population and processing methods.
Version:
%version: 10 % %date_modified: Mon Jan 21 16:46:22 2002 %
Author:
Senthil Vaiyapuri
See Also:
  • Field Details

    • mMode

      public String mMode
    • mError

      public String mError
    • mStartDate

      public Date mStartDate
    • mEndDate

      public Date mEndDate
    • mAuditResults

      public ArrayList mAuditResults
  • Constructor Details

    • POnlinePaymentAuditBeanImpl

      public POnlinePaymentAuditBeanImpl() throws RemoteException
      Creates the controller for online payment audit.
      Throws:
      RemoteException
  • Method Details

    • setStartTime

      public void setStartTime(Date sSdate) throws RemoteException
      Sets the start date to use for searching.
      Specified by:
      setStartTime in interface POnlinePaymentAuditBean
      Parameters:
      sSDate - the starting date
      Throws:
      RemoteException
    • setEndTime

      public void setEndTime(Date sEdate) throws RemoteException
      Sets the end date to use for searching.
      Specified by:
      setEndTime in interface POnlinePaymentAuditBean
      Parameters:
      sEdate - the ending date
      Throws:
      RemoteException
    • setMode

      public void setMode(String sMode) throws RemoteException
      Sets the processing mode of the bean.
      Specified by:
      setMode in interface POnlinePaymentAuditBean
      Parameters:
      sMode - a String with the processing mode to use:
      • "init" populates the form with default values
      • "show" searches for audit events and shows the results
      Throws:
      RemoteException
    • getMode

      public String getMode() throws RemoteException
      Gets the processing mode of the bean.
      Specified by:
      getMode in interface POnlinePaymentAuditBean
      Returns:
      A String with the processing mode to use:
      • "init" populates the form with default values
      • "show" searches for audit events and shows the results
      Throws:
      RemoteException
    • getStartTime

      public Date getStartTime() throws RemoteException
      Gets the start date to use for searching.
      Specified by:
      getStartTime in interface POnlinePaymentAuditBean
      Returns:
      The starting date.
      Throws:
      RemoteException
    • getEndTime

      public Date getEndTime() throws RemoteException
      Gets the end date to use for searching.
      Specified by:
      getEndTime in interface POnlinePaymentAuditBean
      Returns:
      The ending date.
      Throws:
      RemoteException
    • getAuditResults

      public List getAuditResults() throws RemoteException
      Gets the search results, which are returned as an array list. Each array in the array list contains information to construct one table row in HTML.
      Specified by:
      getAuditResults in interface POnlinePaymentAuditBean
      Throws:
      RemoteException
    • update

      public void update(int reason, Object data)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing.
      Specified by:
      update in class PControllerImpl
      Parameters:
      reason - an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL, UPDATE_PROPERTY, UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)
      data - the data associated with update
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing and return null.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      dataItem - the name of a data item. Must match the name of an item changed by sending a PViewDataChangeEvent.
      index - an optional index into an array data item
      Returns:
      Usually, a model handle or array of model handles.
    • onlinepaymentaudit

      public void onlinepaymentaudit(PModelHandle mH, ResourceBundle bundle) throws RemoteException
      Starts the online payment process. This is an Action method called by the Infranet Servlet. Depending on the processing mode, this method either populates the form with default values or takes in the form input and searches for online payment audit events and populates the result set.
      Specified by:
      onlinepaymentaudit in interface POnlinePaymentAuditBean
      Parameters:
      mH - the PModelHandle for the account
      bundle - the resource bundle
      Throws:
      RemoteException - thrown for invalid processing modes
    • searchEvents

      protected void searchEvents(PModelHandle mH) throws RemoteException
      Searches for the online payment audit events, and populates the result in a array list that is suitable for the JSP to display.
      Parameters:
      mH - the account's model handle
      Throws:
      RemoteException - thrown for null contexts and invalid field descriptions
    • processChargeCCEvent

      protected void processChargeCCEvent(PCachedContext ctx, Poid eventPoid) throws RemoteException
      Reads the /event/billing/charge/cc/event object, gets the relevant fields, and populates the resulting array.
      Parameters:
      ctx - the context to the connection manager (CM)
      eventPoid - the POID for the event
      Throws:
      RemoteException
    • processPaymentCCEvent

      protected void processPaymentCCEvent(PCachedContext ctx, Poid eventPoid) throws RemoteException
      Reads the /event/billing/payment/cc/event object, gets the relevant fields, and populates the resulting array.
      Parameters:
      ctx - the context to the connection manager (CM)
      eventPoid - the POID for the event
      Throws:
      RemoteException