|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStatusService
Method Summary | |
---|---|
void |
addLoginStateListener(ILoginStateListener lsl)
on login/logout this method should be invoked |
void |
createAccount(UserId userid,
java.lang.String pw)
Creates a new user account. |
java.lang.String |
getFirstname(UserId userid)
|
java.lang.String |
getLastname(UserId userid)
|
UserId |
getUserid()
|
UserId |
getUserId(java.lang.String userid)
Checks if a user id is of the correct format for this network |
java.lang.Boolean |
isLoggedIn()
Checks whether the user is logged in. |
java.lang.Boolean |
isLoggedIn(UserId userid)
Checks if the userid may be reached (has an online status). |
void |
login(UserId userid,
java.lang.String pw,
java.lang.String host,
long port)
Connects and authenticates on the used network service. |
void |
logout()
Logs out and disconnects from the used network service. |
void |
removeLoginStateListener(ILoginStateListener lsl)
|
Method Detail |
---|
void login(UserId userid, java.lang.String pw, java.lang.String host, long port) throws NetworkException
userid
- the network user id to be logged inpw
- passwordhost
- port
-
NetworkException
- if the network connection is down
TimeoutException
- if a timeout is receivedvoid logout() throws NetworkException
NetworkException
- if the network connection is down and the logout couldn't be
propagated
TimeoutException
- if a timeout occurredvoid createAccount(UserId userid, java.lang.String pw) throws NetworkException
userid
- pw
-
NetworkException
- if the network connection is down and the logout couldn't be
propagated
TimeoutException
- if a timeout occurredjava.lang.Boolean isLoggedIn()
java.lang.Boolean isLoggedIn(UserId userid) throws NetworkException, TimeoutException
userid
- the other client to talk to.
NetworkException
- if the network connection is down
NotLoggedInException
- if the user is not logged in
TimeoutException
- if a timeout is received
NoSuchUseridException
java.lang.String getFirstname(UserId userid) throws NoSuchUseridException, OtherUserOfflineException
userid
- the network user id in question
NoSuchUseridException
- if there is no such user
{@link
- OtherUserOfflineException}
OtherUserOfflineException
java.lang.String getLastname(UserId userid) throws NoSuchUseridException, OtherUserOfflineException
userid
- the network user id in question
NoSuchUseridException
- if there is no such user
{@link
- OtherUserOfflineException}
OtherUserOfflineException
UserId getUserid() throws NotLoggedInException
NotLoggedInException
- if no user is logged inUserId getUserId(java.lang.String userid)
userid
- the user id
void addLoginStateListener(ILoginStateListener lsl)
lsl
- void removeLoginStateListener(ILoginStateListener lsl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |