Package org.jivesoftware.smackx.pubsub
Class ItemDeleteEvent
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeEvent
-
- org.jivesoftware.smackx.pubsub.SubscriptionEvent
-
- org.jivesoftware.smackx.pubsub.ItemDeleteEvent
-
public class ItemDeleteEvent extends SubscriptionEvent
Represents an event in which items have been deleted from the node.
-
-
Constructor Summary
Constructors Constructor Description ItemDeleteEvent(java.lang.String nodeId, java.util.List<java.lang.String> deletedItemIds, java.util.List<java.lang.String> subscriptionIds)
Constructs anItemDeleteEvent
that indicates the the supplied items (by id) have been deleted, and that the event matches the listed subscriptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getItemIds()
Get the item id's of the items that have been deleted.java.lang.String
toString()
-
Methods inherited from class org.jivesoftware.smackx.pubsub.SubscriptionEvent
getSubscriptions, setSubscriptions
-
-
-
-
Constructor Detail
-
ItemDeleteEvent
public ItemDeleteEvent(java.lang.String nodeId, java.util.List<java.lang.String> deletedItemIds, java.util.List<java.lang.String> subscriptionIds)
Constructs anItemDeleteEvent
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 callingNode.subscribe(String)
.- Parameters:
nodeId
- The id of the node the event came fromdeletedItemIds
- The item ids of the items that were deleted.subscriptionIds
- The subscriptions that match the event.
-
-
Method Detail
-
getItemIds
public java.util.List<java.lang.String> getItemIds()
Get the item id's of the items that have been deleted.- Returns:
- List of item id's
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-