Smack

org.jivesoftware.smackx.pubsub
Class ItemDeleteEvent

java.lang.Object
  extended by org.jivesoftware.smackx.pubsub.NodeEvent
      extended by org.jivesoftware.smackx.pubsub.SubscriptionEvent
          extended by org.jivesoftware.smackx.pubsub.ItemDeleteEvent

public class ItemDeleteEvent
extends SubscriptionEvent

Represents an event in which items have been deleted from the node.

Author:
Robin Collier

Constructor Summary
ItemDeleteEvent(String nodeId, List<String> deletedItemIds, List<String> subscriptionIds)
          Constructs an ItemDeleteEvent that indicates the the supplied items (by id) have been deleted, and that the event matches the listed subscriptions.
 
Method Summary
 List<String> getItemIds()
          Get the item id's of the items that have been deleted.
 String toString()
           
 
Methods inherited from class org.jivesoftware.smackx.pubsub.SubscriptionEvent
getSubscriptions, setSubscriptions
 
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeEvent
getNodeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemDeleteEvent

public ItemDeleteEvent(String nodeId,
                       List<String> deletedItemIds,
                       List<String> subscriptionIds)
Constructs an ItemDeleteEvent that indicates the the supplied items (by id) have been deleted, and that the event matches the listed subscriptions. The subscriptions would have been created by calling Node.subscribe(String).

Parameters:
nodeId - The id of the node the event came from
deletedItemIds - The item ids of the items that were deleted.
subscriptionIds - The subscriptions that match the event.
Method Detail

getItemIds

public List<String> getItemIds()
Get the item id's of the items that have been deleted.

Returns:
List of item id's

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003-2007 Jive Software.