public class PIATelcoDeviceBeanImpl extends PIAComponentCollectionBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
PModelHandle[] |
getExistingDevicesOfType(String type)
Retrieve the associated device objects of
a certain type.
|
PModelHandle |
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.
|
addChild, getCollectedData, getSelectionDataFor, removeChild, update
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
public PIATelcoDeviceBeanImpl() throws RemoteException
RemoteException
public void setModelHandle(PModelHandle model)
model
- The device object this controller is going to modify.public com.portal.app.util.CustomerValErrorData[] save(PModelHandle pm) throws RemoteException
pm
- The input FList (as a PModelHandle) containing the data
to save.RemoteException
public com.portal.app.util.CustomerValErrorData[] updateServicesForDevice(PModelHandle oldDevice, PModelHandle newDevice) throws RemoteException
services
- An array of service objects to be updated.model
- The device model to be associated with the service objects.RemoteException
public PModelHandle getFirstAvailDeviceOfType(String type, Set stateValues) throws RemoteException
type
- The type of device to retrieve.stateValues
- The set of state values that signify the "available"
state of the device.RemoteException
public PModelHandle[] getExistingDevicesOfType(String type) throws RemoteException
pm
- The PModelHandle object for the accounttype
- The string that holds the device typeRemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.