|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
XmppError |
rosterAdd(JID account,
JID contact,
java.lang.String sContactNick,
java.lang.String sSubscription,
java.lang.String sGroup,
java.lang.String sGroupTail)
Insert a new contact into a roster. |
XmppError |
rosterRemove(JID principal,
JID contact,
java.lang.String sGroup,
boolean bTail)
Remove a contact from an accounts roster. |
Method Detail |
public XmppError rosterRemove(JID principal, JID contact, java.lang.String sGroup, boolean bTail) throws java.io.IOException
Remove a contact from an accounts roster.
principal
- The account to remove the contact from.contact
- The contact to remove.sGroup
- The full, or tail portion of the group name.bTail
- If true, the group name is just the tail.
java.io.IOException
- Generated when the session fails.public XmppError rosterAdd(JID account, JID contact, java.lang.String sContactNick, java.lang.String sSubscription, java.lang.String sGroup, java.lang.String sGroupTail) throws java.io.IOException
Insert a new contact into a roster.
account
- The account to add the roster item to.contact
- The Jabber id of the new contact.sContactNick
- The contacts nick name.sSubscription
- The type of subscription. If this is 'none', then
no subscription has been agreed to. If this is 'both', then both parties
are assumed to have agreed to a subscription.sGroup
- If this is not null, then the contact will be assigned to a
group. NOTE that if a group tail is provided, it will be added to
the finished group name.sGroupTail
- If this is not null, then it will be used to locate
the matching group.
java.io.IOException
- Generated when the session fails.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |