com.genesyslab.ail.event
Interface DnEvent

All Superinterfaces:
AbstractDnEvent, ObjectEvent, java.io.Serializable
All Known Subinterfaces:
DnUserEvent

public interface DnEvent
extends AbstractDnEvent

An event reporting Dn changes.

If actions performed on the DN are successful, the Dn interface receives DnEvent events that report:

Use DnEvents to get the updated Dn interface in order to:

See Also:
DnListener, Dn

Nested Class Summary
static class DnEvent.EventReason
          Enum for the event reasons.
 
Method Summary
 Dn getDn()
          Returns the DN to which this event is related.
 DnEvent.EventReason getEventReason()
          Returns the reason of this event.
 java.lang.String getQueue()
          Returns the queue to which this event is related.
 Dn.Status getStatus()
          Returns the new status of the DN this event is about.
 java.util.Map getTEventExtensions()
          Returns the telephony extensions of this event.
 Dn.Workmode getWorkmode()
          Returns the workmode associated with the status of the DN.
 
Methods inherited from interface com.genesyslab.ail.event.AbstractDnEvent
getTEventReasons
 
Methods inherited from interface com.genesyslab.ail.event.ObjectEvent
getSource
 

Method Detail

getStatus

Dn.Status getStatus()
Returns the new status of the DN this event is about.


getDn

Dn getDn()
Returns the DN to which this event is related. This method returns the same as ObjectEvent.getSource().


getQueue

java.lang.String getQueue()
Returns the queue to which this event is related.

Since:
7.2.020.01

getWorkmode

Dn.Workmode getWorkmode()
Returns the workmode associated with the status of the DN.

Returns:
the workmode or null if none is set.

getEventReason

DnEvent.EventReason getEventReason()
Returns the reason of this event.
This is the reason why this event occurred.


getTEventExtensions

java.util.Map getTEventExtensions()
Returns the telephony extensions of this event.
These extensions are copied from the TEvent coming from the T-Server. They are additional data that take into account switch-specific features.

Specified by:
getTEventExtensions in interface AbstractDnEvent
Returns:
a map of key-value where the key is a String.