Package org.jivesoftware.openfire.pubsub
Class NodeAffiliate
- java.lang.Object
-
- org.jivesoftware.openfire.pubsub.NodeAffiliate
-
- All Implemented Interfaces:
Serializable
,Cacheable
public class NodeAffiliate extends Object implements 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 aNodeSubscription
with the node.- Author:
- Matt Tucker
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeAffiliate.Affiliation
Affiliation with a node defines user permissions.
-
Constructor Summary
Constructors Constructor Description NodeAffiliate(Node node, org.xmpp.packet.JID jid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAffiliate.Affiliation
getAffiliation()
int
getCachedSize()
Returns the approximate size of the Object in bytes.org.xmpp.packet.JID
getJID()
Node
getNode()
Collection<NodeSubscription>
getSubscriptions()
Returns the list of subscriptions of the affiliate in the node.void
setAffiliation(NodeAffiliate.Affiliation affiliation)
String
toString()
-
-
-
Constructor Detail
-
NodeAffiliate
public NodeAffiliate(Node node, org.xmpp.packet.JID jid)
-
-
Method Detail
-
getNode
public Node getNode()
-
getJID
public org.xmpp.packet.JID getJID()
-
getAffiliation
public NodeAffiliate.Affiliation getAffiliation()
-
setAffiliation
public void setAffiliation(NodeAffiliate.Affiliation affiliation)
-
getSubscriptions
public Collection<NodeSubscription> getSubscriptions()
Returns the list of subscriptions of the affiliate in the node.- Returns:
- the list of subscriptions of the affiliate in the node.
-
getCachedSize
public int getCachedSize() throws CannotCalculateSizeException
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:
getCachedSize
in interfaceCacheable
- Returns:
- the size of the Object in bytes.
- Throws:
CannotCalculateSizeException
- if the size cannot be calculated
-
-