Package org.jivesoftware.openfire.pubsub
Class NodeAffiliate
java.lang.Object
org.jivesoftware.openfire.pubsub.NodeAffiliate
- All Implemented Interfaces:
Serializable,Cacheable
A NodeAffiliate keeps information about the affiliation of an entity with a node. Possible
affiliations are: owner, publisher, none or outcast. All except for outcast affiliations
may have a
NodeSubscription with the node.- Author:
- Matt Tucker
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAffiliation with a node defines user permissions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the approximate size of the Object in bytes.org.xmpp.packet.JIDgetJID()getNode()Returns the list of subscriptions of the affiliate in the node.voidsetAffiliation(NodeAffiliate.Affiliation affiliation) toString()
-
Constructor Details
-
NodeAffiliate
-
-
Method Details
-
getNode
-
getJID
public org.xmpp.packet.JID getJID() -
getAffiliation
-
setAffiliation
-
getSubscriptions
Returns the list of subscriptions of the affiliate in the node.- Returns:
- the list of subscriptions of the affiliate in the node.
-
toString
-
getCachedSize
Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.- Specified by:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
- Throws:
CannotCalculateSizeException- if the size cannot be calculated
-