public class PIAReservedResourcesBeanImpl extends PControllerImpl implements PIAReservedResourcesBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PIAReservedResourcesBeanImpl()
Constructor to create a controller to retrieve
active reservation information
|
Modifier and Type | Method and Description |
---|---|
PCurrency |
getAuthorizedAmount()
Gets total amount authorized/reserved/on hold for the account
|
List |
getReservationInfo()
Gets active reservation information for the account
|
Object |
getSelectionDataFor(String dataItem,
int index)
Given the name of a display data item and an optional index,
returns the information needed for a Selection event.
|
protected ReservationData |
processReservationElement(PCachedContext conn,
FList reservationElement)
Processes the reservation element in the result flist,
called by processReservationFlist
|
protected void |
processReservationFlist(PCachedContext conn,
FList reservationResultsFlist)
Processes the result flist, called by searchReservedResources
|
void |
searchReservedResources(PModelHandle accountModel)
Searches for active reservation information in Portal database
The results are available via getReservationInfo method.
|
void |
searchReservedResources(PModelHandle accountModel,
ArrayList arrayBgPoid)
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.
|
void |
setDisplayInPrimaryCurrency(boolean primary)
Sets the currency for display
|
void |
update(int reason,
Object data)
The
update method is called by various internal methods when
the data has changed enough to require changing the client display. |
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
public PIAReservedResourcesBeanImpl() throws RemoteException
RemoteException
public List getReservationInfo() throws RemoteException
getReservationInfo
in interface PIAReservedResourcesBean
RemoteException
public void setDisplayInPrimaryCurrency(boolean primary)
primary
- the boolean value that is true if the display currency
is primary currency.public PCurrency getAuthorizedAmount()
getAuthorizedAmount
in interface PIAReservedResourcesBean
public void searchReservedResources(PModelHandle accountModel) throws RemoteException
searchReservedResources
in interface PIAReservedResourcesBean
model
- model handle for accountRemoteException
protected void processReservationFlist(PCachedContext conn, FList reservationResultsFlist) throws RemoteException
conn
- cached connection contextreservationResultsFlist
- the result flist from the searchRemoteException
protected ReservationData processReservationElement(PCachedContext conn, FList reservationElement)
conn
- cached connection contextreservationElement
- One active reservation from the result flistRemoteException
public void searchReservedResources(PModelHandle accountModel, ArrayList arrayBgPoid) throws RemoteException
searchReservedResources
in interface PIAReservedResourcesBean
model
- model handle for accountarrayBgPoid
- Array of Balance group Poids for the selected BillInfoRemoteException
public void update(int reason, Object data)
PControllerImpl
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.update
in class PControllerImpl
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
public Object getSelectionDataFor(String dataItem, int index)
PControllerBean
getSelectionDataFor
in interface PControllerBean
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 itemCopyright © 2003, 2023, Oracle and/or its affiliates.