|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUsersService
provides abstraction to our friends-group
Method Summary | |
---|---|
void |
addUser(UserId user,
java.lang.String name)
idempotent add to communications group function |
java.lang.Iterable<UserId> |
getAllUsers()
|
java.lang.String |
getNickName(UserId user)
get the name associated with this user |
java.lang.Iterable<UserId> |
getUsers()
|
boolean |
isCapable(UserId userid)
blocking request for a online-status notification You should prefer requestOnlineNotification |
boolean |
isFriend(UserId xmppid)
Is this special someone in our group? |
void |
registerOnlineStatusListener(IOnlineStatusListener onlineStatusListener)
Registers a callback for the event that the userid goes online or offline |
void |
removeUser(UserId user)
idempotent remove from communication group function |
void |
requestOnlineNotification(UserId userid)
nonblocking request for a online-status notification |
Method Detail |
---|
void registerOnlineStatusListener(IOnlineStatusListener onlineStatusListener)
onlineStatusListener
- object to be called
NoSuchUseridException
- if the user does not existvoid addUser(UserId user, java.lang.String name) throws NoSuchUseridException, NotLoggedInException, java.io.IOException
user
- name
-
NoSuchUseridException
NotLoggedInException
java.io.IOException
void removeUser(UserId user) throws NotLoggedInException, NoSuchUseridException, java.io.IOException
user
-
NotLoggedInException
NoSuchUseridException
java.io.IOException
java.lang.Iterable<UserId> getUsers() throws NotLoggedInException
NotLoggedInException
java.lang.Iterable<UserId> getAllUsers() throws NotLoggedInException
NotLoggedInException
boolean isFriend(UserId xmppid) throws NotLoggedInException, NoSuchUseridException
xmppid
-
NotLoggedInException
NoSuchUseridException
boolean isCapable(UserId userid) throws java.io.IOException, NotLoggedInException, NoSuchUseridException
userid
-
java.io.IOException
NotLoggedInException
NoSuchUseridException
void requestOnlineNotification(UserId userid) throws NotLoggedInException
userid
-
NotLoggedInException
java.lang.String getNickName(UserId user) throws NotLoggedInException
user
-
NotLoggedInException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |