Package com.portal.app.ccare.comp
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:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionConstructor to create a controller to retrieve active reservation information -
Method Summary
Modifier and TypeMethodDescriptionGets total amount authorized/reserved/on hold for the accountGets active reservation information for the accountgetSelectionDataFor(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 ReservationDataprocessReservationElement(PCachedContext conn, FList reservationElement) Processes the reservation element in the result flist, called by processReservationFlistprotected voidprocessReservationFlist(PCachedContext conn, FList reservationResultsFlist) Processes the result flist, called by searchReservedResourcesvoidsearchReservedResources(PModelHandle accountModel) Searches for active reservation information in Portal database The results are available via getReservationInfo method.voidsearchReservedResources(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.voidsetDisplayInPrimaryCurrency(boolean primary) Sets the currency for displayvoidTheupdatemethod is called by various internal methods when the data has changed enough to require changing the client display.Methods inherited from class com.portal.bas.PControllerImpl
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
-
Constructor Details
-
PIAReservedResourcesBeanImpl
Constructor to create a controller to retrieve active reservation information- Throws:
RemoteException
-
-
Method Details
-
getReservationInfo
Gets active reservation information for the account- Specified by:
getReservationInfoin interfacePIAReservedResourcesBean- 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
Gets total amount authorized/reserved/on hold for the account- Specified by:
getAuthorizedAmountin interfacePIAReservedResourcesBean- Returns:
- total amount authorized/reserved/on hold for the account
-
searchReservedResources
Searches for active reservation information in Portal database The results are available via getReservationInfo method.- Specified by:
searchReservedResourcesin interfacePIAReservedResourcesBean- Parameters:
accountModel- model handle for accountmodel- 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 contextreservationResultsFlist- the result flist from the search- Throws:
RemoteException
-
processReservationElement
Processes the reservation element in the result flist, called by processReservationFlist- Parameters:
conn- cached connection contextreservationElement- 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:
searchReservedResourcesin interfacePIAReservedResourcesBean- Parameters:
accountModel- model handle for accountarrayBgPoid- Array of Balance group Poids for the selected BillInfomodel- model handle for account- Throws:
RemoteException
-
update
Description copied from class:PControllerImplTheupdatemethod 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:
updatein classPControllerImpl- Parameters:
reason- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL,UPDATE_PROPERTY,UPDATE_MODEL_CHANGE, orUPDATE_CLIENT)data- the data associated withupdate
-
getSelectionDataFor
Description copied from interface:PControllerBeanGiven 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:
getSelectionDataForin interfacePControllerBean- Parameters:
dataItem- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent.index- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-