Class PIAReservedResourcesBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.app.ccare.comp.PIAReservedResourcesBeanImpl
All Implemented Interfaces:
PIAReservedResourcesBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIAReservedResourcesBeanImpl extends PControllerImpl implements PIAReservedResourcesBean
Implementation class for PIAReservedResourcesBean interface.
See Also:
  • Constructor Details

    • PIAReservedResourcesBeanImpl

      public PIAReservedResourcesBeanImpl() throws RemoteException
      Constructor to create a controller to retrieve active reservation information
      Throws:
      RemoteException
  • Method Details

    • getReservationInfo

      public List getReservationInfo() throws RemoteException
      Gets active reservation information for the account
      Specified by:
      getReservationInfo in interface PIAReservedResourcesBean
      Returns:
      list of active reservations
      Throws:
      RemoteException
    • setDisplayInPrimaryCurrency

      public void setDisplayInPrimaryCurrency(boolean primary)
      Sets the currency for display
      Parameters:
      primary - the boolean value that is true if the display currency is primary currency.
    • getAuthorizedAmount

      public PCurrency getAuthorizedAmount()
      Gets total amount authorized/reserved/on hold for the account
      Specified by:
      getAuthorizedAmount in interface PIAReservedResourcesBean
      Returns:
      total amount authorized/reserved/on hold for the account
    • searchReservedResources

      public void searchReservedResources(PModelHandle accountModel) throws RemoteException
      Searches for active reservation information in Portal database The results are available via getReservationInfo method.
      Specified by:
      searchReservedResources in interface PIAReservedResourcesBean
      Parameters:
      accountModel - model handle for account
      model - model handle for account
      Throws:
      RemoteException
    • processReservationFlist

      protected void processReservationFlist(PCachedContext conn, FList reservationResultsFlist) throws RemoteException
      Processes the result flist, called by searchReservedResources
      Parameters:
      conn - cached connection context
      reservationResultsFlist - the result flist from the search
      Throws:
      RemoteException
    • processReservationElement

      protected ReservationData processReservationElement(PCachedContext conn, FList reservationElement)
      Processes the reservation element in the result flist, called by processReservationFlist
      Parameters:
      conn - cached connection context
      reservationElement - One active reservation from the result flist
      Throws:
      RemoteException
    • searchReservedResources

      public void searchReservedResources(PModelHandle accountModel, ArrayList arrayBgPoid) throws RemoteException
      method with an Input parameter array of BalnceGroup Poids Searches for active reservation information for all the mentioned BalanceGroups in Portal database The results are available via getReservationInfo method.
      Specified by:
      searchReservedResources in interface PIAReservedResourcesBean
      Parameters:
      accountModel - model handle for account
      arrayBgPoid - Array of Balance group Poids for the selected BillInfo
      model - model handle for account
      Throws:
      RemoteException
    • update

      public void update(int reason, Object data)
      Description copied from class: PControllerImpl
      The update method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.
      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)
      Description copied from interface: PControllerBean
      Given the name of a display data item and an optional index, returns the information needed for a Selection event. The information returned is usually model data.
      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.