Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ServerStoredGroupEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.ServerStoredGroupEvent
All Implemented Interfaces:
Serializable

public class ServerStoredGroupEvent
extends EventObject

Events of this class indicate a change in one of the properties of a ServerStoredGroup.

Author:
Emil Ivov
See Also:
Serialized Form

Field Summary
static int GROUP_CREATED_EVENT
          Indicates that a contact group has been successfully created.
static int GROUP_CREATION_FAILED_EVENT
          Indicates that we have failed to create a group.
static int GROUP_REMOVED_EVENT
          Indicates that a contact group has been successfully deleted.
static int GROUP_RENAMED_EVENT
          Indicates that a group has been successfully renamed.
static int GROUP_RESOLVED_EVENT
          Indicates that a group has just been resolved against the server.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServerStoredGroupEvent(ContactGroup sourceGroup, int eventID, ContactGroup parentGroup, ProtocolProviderService sourceProvider, OperationSetPersistentPresence opSet)
          Creates a ServerStoredGroupChangeEvent instance.
 
Method Summary
 int getEventID()
          Returns an int describing the cause of this event.
 ContactGroup getParentGroup()
          Returns the group containing the event source group
 ContactGroup getSourceGroup()
          Returns a reference to the ContactGroup that this event is pertaining to.
 OperationSetPersistentPresence getSourceOperationSet()
          Returns a reference to the operation set that generated the event
 ProtocolProviderService getSourceProvider()
          Returns a reference to the provider under which the event is being generated
 String toString()
          Returns a String representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GROUP_CREATED_EVENT

public static final int GROUP_CREATED_EVENT
Indicates that a contact group has been successfully created.

See Also:
Constant Field Values

GROUP_REMOVED_EVENT

public static final int GROUP_REMOVED_EVENT
Indicates that a contact group has been successfully deleted.

See Also:
Constant Field Values

GROUP_RENAMED_EVENT

public static final int GROUP_RENAMED_EVENT
Indicates that a group has been successfully renamed.

See Also:
Constant Field Values

GROUP_RESOLVED_EVENT

public static final int GROUP_RESOLVED_EVENT
Indicates that a group has just been resolved against the server.

See Also:
Constant Field Values

GROUP_CREATION_FAILED_EVENT

public static final int GROUP_CREATION_FAILED_EVENT
Indicates that we have failed to create a group.

See Also:
Constant Field Values
Constructor Detail

ServerStoredGroupEvent

public ServerStoredGroupEvent(ContactGroup sourceGroup,
                              int eventID,
                              ContactGroup parentGroup,
                              ProtocolProviderService sourceProvider,
                              OperationSetPersistentPresence opSet)
Creates a ServerStoredGroupChangeEvent instance.

Parameters:
sourceGroup - the group that this event is pertaining to.
eventID - an int describing the cause of the event
parentGroup - the group that the source group is a child of.
sourceProvider - a reference to the protocol provider where this is happening
opSet - a reference to the operation set responsible for the event
Method Detail

getSourceGroup

public ContactGroup getSourceGroup()
Returns a reference to the ContactGroup that this event is pertaining to.

Returns:
a reference to the ContactGroup that caused the event.

getEventID

public int getEventID()
Returns an int describing the cause of this event.

Returns:
an int describing the cause of this event.

getSourceProvider

public ProtocolProviderService getSourceProvider()
Returns a reference to the provider under which the event is being generated

Returns:
a ProtocolProviderService instance indicating the provider responsible for the event.

getSourceOperationSet

public OperationSetPersistentPresence getSourceOperationSet()
Returns a reference to the operation set that generated the event

Returns:
a reference to an OperationSetPersistentPresence instance, responsible for generating the event.

getParentGroup

public ContactGroup getParentGroup()
Returns the group containing the event source group

Returns:
a reference to the ContactGroup instance that is parent of the ContactGroup which is the source of this event.

toString

public String toString()
Returns a String representation of this event.

Overrides:
toString in class EventObject
Returns:
a String containing details describin this event.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.