|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.pubsub.Affiliation
public class Affiliation
Represents a affiliation between a user and a node, where the type defines
the type of affiliation.
Affiliations are retrieved from the PubSubManager.getAffiliations() method, which
gets affiliations for the calling user, based on the identity that is associated with
the Connection.
| Nested Class Summary | |
|---|---|
static class |
Affiliation.Type
|
| Constructor Summary | |
|---|---|
Affiliation(java.lang.String nodeId,
Affiliation.Type affiliation)
Constructs an affiliation. |
|
| Method Summary | |
|---|---|
java.lang.String |
getElementName()
Returns the root element name. |
java.lang.String |
getNamespace()
Returns the root element XML namespace. |
java.lang.String |
getNodeId()
|
Affiliation.Type |
getType()
|
java.lang.String |
toXML()
Returns the XML representation of the PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Affiliation(java.lang.String nodeId,
Affiliation.Type affiliation)
nodeId - The node the user is affiliated with.affiliation - The type of affiliation.| Method Detail |
|---|
public java.lang.String getNodeId()
public Affiliation.Type getType()
public java.lang.String getElementName()
PacketExtension
getElementName in interface PacketExtensionpublic java.lang.String getNamespace()
PacketExtension
getNamespace in interface PacketExtensionpublic java.lang.String toXML()
PacketExtension
toXML in interface PacketExtension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||