|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BSForServletInterface
This interface contains the method needed by a Gossip Servlet that the Bootstrap exported object must provide.
Method Summary | |
---|---|
void |
deleteUser(User user,
java.lang.String pw)
Deletes an account of a user (this method is used by the user itself). |
MessageServer |
getMS(User user)
Returns the message server of a user given by argument. |
void |
register(java.lang.String nick,
java.lang.String pw)
Creates an account for a new user. |
Method Detail |
---|
MessageServer getMS(User user) throws java.rmi.RemoteException, UserNotExistsException
user
- the user (only the nickname is considered).
java.rmi.RemoteException
- if a communication problem occurs.
UserNotExistsException
- if the user does not exist.void register(java.lang.String nick, java.lang.String pw) throws java.rmi.RemoteException, GenericErrorException, AssignationNotAcceptedException
nick
- The new user nickname (case insensitive).pw
- The new user password.
GenericErrorException
- if there are no message server available for the assignation.
AssignationNotAccepted
- if another user with the same nickname already exists.
java.rmi.RemoteException
- if a communication problem occurs.
AssignationNotAcceptedException
void deleteUser(User user, java.lang.String pw) throws java.rmi.RemoteException, UserNotExistsException, WrongPasswordException, GenericErrorException, BlockedException
user
- the user to deletepw
- the user's password
BlockedException
- if the user is currently blocked by the administrator.
GenericErrorException
- if some error occurred and the user was not deleted (i.e. MS not reachable).
WrongPasswordException
- if the user password is not right.
UserNotExistsException
- if the user nickname does not exist.
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |