com.cisco.provisioning.cpe.events
Interface DeviceTypeListener

All Superinterfaces:
ProvAPIEventListener
All Known Implementing Classes:
DeviceTypeAdapter

public interface DeviceTypeListener
extends ProvAPIEventListener

The Listener interface for DeviceTypeEvent. The addDeviceTypeListener method on the PACEConnection instance may be used to register DeviceTypeListener instances.

Sample Usage:

      // Implement DeviceTypeListener interface
      public class MyDeviceTypeListener implements  DeviceTypeListener
      {
          ...
      }

      // Create an instance of DeviceTypeEventQualifier
      // [You may also use an instance of QualifyAll
      // that performs no filtering.]
      myQualifier = new DeviceTypeEventQualifier();
      // We are interested in new device types being added
      myQualifier.setNewDeviceType();

      // Register device type listener using PACEConnection
      ...
      conn.addDeviceTypeListener(
          new MyDeviceTypeListener(), // DeviceTypeListener
          myQualifier // Qualifier
          );
       ...
 


Field Summary
static int DELETED_DEVICE_TYPE
          Event ID that indicates the DELETED_DEVICE_TYPE sub-event type of the DeviceTypeEvent.
static int DEVICE_TYPE_PROPS_CHANGE
          Event ID that indicates the DEVICE_TYPE_PROPS_CHANGE sub-event type of the DeviceTypeEvent.
static int NEW_DEVICE_TYPE
          Event ID that indicates the NEW_DEVICE_TYPE sub-event type of the DeviceTypeEvent.
 
Method Summary
 void deletedDeviceType(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been deleted.
 void deviceTypePropsChanged(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType Property being changed.
 void newDeviceType(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been added.
 
Methods inherited from interface com.cisco.provisioning.cpe.events.ProvAPIEventListener
getOneShot, setOneShot
 

Field Detail

NEW_DEVICE_TYPE

static final int NEW_DEVICE_TYPE
Event ID that indicates the NEW_DEVICE_TYPE sub-event type of the DeviceTypeEvent. This indicates that a new, device type has been added to BPR.

See Also:
Constant Field Values

DELETED_DEVICE_TYPE

static final int DELETED_DEVICE_TYPE
Event ID that indicates the DELETED_DEVICE_TYPE sub-event type of the DeviceTypeEvent. This indicates that a custom cpe type has been deleted from BPR.

See Also:
Constant Field Values

DEVICE_TYPE_PROPS_CHANGE

static final int DEVICE_TYPE_PROPS_CHANGE
Event ID that indicates the DEVICE_TYPE_PROPS_CHANGE sub-event type of the DeviceTypeEvent. This indicates that a custom cpe type property(ies) have been changed in BPR.

See Also:
Constant Field Values
Method Detail

newDeviceType

void newDeviceType(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been added.

Parameters:
ev - The object containing the DeviceTypeEvent data.

deletedDeviceType

void deletedDeviceType(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been deleted.

Parameters:
ev - The object containing the DeviceTypeEvent data.

deviceTypePropsChanged

void deviceTypePropsChanged(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType Property being changed.

Parameters:
ev - The object containing the DeviceTypeEvent data.