Package com.portal.app.cc.tcf
Class PIATelcoDeviceBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.cc.tcf.PIATelcoDeviceBeanImpl
- All Implemented Interfaces:
PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
Controller class for the Telco device.
- Version:
- %date_modified: Thr Feb 26 18:53:38 2003 %
- Author:
- tsuo
- 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
ConstructorsConstructorDescriptionTelco device controller class that provides utilities such as search, random selection of available devices, and modify device attributes and device/service associates, etc. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the associated device objects of a certain type.getFirstAvailDeviceOfType
(String type, Set stateValues) Random selects an available device object from the database and returns it.com.portal.app.util.CustomerValErrorData[]
save
(PModelHandle pm) Used to save changes to already existing /device objects (this is not used for account creation, just for existing accounts).void
setModelHandle
(PModelHandle model) Set the model handle for the controller.com.portal.app.util.CustomerValErrorData[]
updateServicesForDevice
(PModelHandle oldDevice, PModelHandle newDevice) Update an array of the services with the new device information.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, update
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PIATelcoDeviceBeanImpl
Telco device controller class that provides utilities such as search, random selection of available devices, and modify device attributes and device/service associates, etc.- Throws:
RemoteException
-
-
Method Details
-
setModelHandle
Set the model handle for the controller.- Parameters:
model
- The device object this controller is going to modify.
-
save
Used to save changes to already existing /device objects (this is not used for account creation, just for existing accounts).- Parameters:
pm
- The input FList (as a PModelHandle) containing the data to save.- Returns:
- an array of errors, if the save fails
- Throws:
RemoteException
-
updateServicesForDevice
public com.portal.app.util.CustomerValErrorData[] updateServicesForDevice(PModelHandle oldDevice, PModelHandle newDevice) throws RemoteException Update an array of the services with the new device information.- Parameters:
services
- An array of service objects to be updated.model
- The device model to be associated with the service objects.- Returns:
- Null if successful. Otherwise an array of error data.
- Throws:
RemoteException
-
getFirstAvailDeviceOfType
Random selects an available device object from the database and returns it.- Parameters:
type
- The type of device to retrieve.stateValues
- The set of state values that signify the "available" state of the device.- Returns:
- A device object that is currently available.
- Throws:
RemoteException
-
getExistingDevicesOfType
Retrieve the associated device objects of a certain type.- Parameters:
type
- The string that holds the device typepm
- The PModelHandle object for the account- Throws:
RemoteException
-