Class PIATelcoDeviceBeanImpl

All Implemented Interfaces:
PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIATelcoDeviceBeanImpl extends PIAComponentCollectionBean
Controller class for the Telco device.
Version:
%date_modified: Thr Feb 26 18:53:38 2003 %
Author:
tsuo
See Also:
  • Constructor Details

    • PIATelcoDeviceBeanImpl

      public PIATelcoDeviceBeanImpl() throws RemoteException
      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

      public void setModelHandle(PModelHandle model)
      Set the model handle for the controller.
      Parameters:
      model - The device object this controller is going to modify.
    • save

      public com.portal.app.util.CustomerValErrorData[] save(PModelHandle pm) throws RemoteException
      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

      public PModelHandle getFirstAvailDeviceOfType(String type, Set stateValues) throws RemoteException
      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

      public PModelHandle[] getExistingDevicesOfType(String type) throws RemoteException
      Retrieve the associated device objects of a certain type.
      Parameters:
      type - The string that holds the device type
      pm - The PModelHandle object for the account
      Throws:
      RemoteException