|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.pubsub.PublishedItem
public class PublishedItem
A published item to a node. Once an item was published to a node, node subscribers will be notified of the new published item. The item publisher may be allowed to delete published items. After a published item was deleted node subscribers will get an event notification.
Published items may be persisted to the database depending on the node configuration. Actually, even when the node is configured to not persist items the last published item is going to be persisted to the database. The reason for this is that the node may need to send the last published item to new subscribers.
Method Summary | |
---|---|
boolean |
canDelete(JID user)
Returns true if the user that is trying to delete an item is allowed to delete it. |
Date |
getCreationDate()
Returns the datetime when the items was published. |
String |
getID()
Returns the ID that uniquely identifies the published item in the node. |
LeafNode |
getNode()
Returns the LeafNode where this item was published. |
org.dom4j.Element |
getPayload()
Returns the payload included when publishing the item. |
String |
getPayloadXML()
Returns a textual representation of the payload or null if no payload was specified with the item. |
JID |
getPublisher()
Returns the JID of the entity that published the item to the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public LeafNode getNode()
LeafNode
where this item was published.
public String getID()
public JID getPublisher()
public Date getCreationDate()
public org.dom4j.Element getPayload()
public String getPayloadXML()
public boolean canDelete(JID user)
user
- the full JID of the user trying to delete the item.
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |