|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smackx.pubsub.NodeEvent org.jivesoftware.smackx.pubsub.SubscriptionEvent org.jivesoftware.smackx.pubsub.ItemPublishEvent<T>
public class ItemPublishEvent<T extends Item>
Represents an event generated by an item(s) being published to a node.
Constructor Summary | |
---|---|
ItemPublishEvent(java.lang.String nodeId,
java.util.List<T> eventItems)
Constructs an ItemPublishEvent with the provided list of Item that were published. |
|
ItemPublishEvent(java.lang.String nodeId,
java.util.List<T> eventItems,
java.util.List<java.lang.String> subscriptionIds)
Constructs an ItemPublishEvent with the provided list of Item that were published. |
|
ItemPublishEvent(java.lang.String nodeId,
java.util.List<T> eventItems,
java.util.List<java.lang.String> subscriptionIds,
java.util.Date publishedDate)
Constructs an ItemPublishEvent with the provided list of Item that were published in the past. |
Method Summary | |
---|---|
java.util.List<T> |
getItems()
Get the list of Item that were published. |
java.util.Date |
getPublishedDate()
Gets the original date the items were published. |
boolean |
isDelayed()
Indicates whether this event was delayed. |
java.lang.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 |
---|
public ItemPublishEvent(java.lang.String nodeId, java.util.List<T> eventItems)
Item
that were published.
nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedpublic ItemPublishEvent(java.lang.String nodeId, java.util.List<T> eventItems, java.util.List<java.lang.String> subscriptionIds)
Item
that were published. The list of subscription ids
represents the subscriptions that matched the event, in the case
of the user having multiple subscriptions.
nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedsubscriptionIds
- The list of subscriptionIdspublic ItemPublishEvent(java.lang.String nodeId, java.util.List<T> eventItems, java.util.List<java.lang.String> subscriptionIds, java.util.Date publishedDate)
Item
that were published in the past. The published
date signifies that this is delayed event. The list of subscription ids
represents the subscriptions that matched the event, in the case
of the user having multiple subscriptions.
nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedsubscriptionIds
- The list of subscriptionIdspublishedDate
- The original publishing date of the eventsMethod Detail |
---|
public java.util.List<T> getItems()
Item
that were published.
Item
public boolean isDelayed()
public java.util.Date getPublishedDate()
isDelayed()
is true.
isDelayed()
is true, null otherwise.public java.lang.String toString()
toString
in class java.lang.Object
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |