Conect.server
Class UserService

java.lang.Object
  extended by RemoteServiceServlet
      extended by Conect.server.UserService
All Implemented Interfaces:
UserServiceInterface

public class UserService
extends RemoteServiceServlet
implements UserServiceInterface


Constructor Summary
UserService()
           
 
Method Summary
 java.lang.String userLogin(java.lang.String username, java.lang.String password)
          This method logs a user into the system
 boolean userLogout(java.lang.String un)
          This method logs a user out of the system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserService

public UserService()
Method Detail

userLogin

public java.lang.String userLogin(java.lang.String username,
                                  java.lang.String password)
                           throws InvalidUserException
This method logs a user into the system

Specified by:
userLogin in interface UserServiceInterface
Parameters:
username - The username of the user to be logged in
password - The password of the user to be logged in
Returns:
The first and last name, separated by a space, of the user who has successfully logged in
Throws:
InvalidUserException - if user is unable to be logged in

userLogout

public boolean userLogout(java.lang.String un)
This method logs a user out of the system

Specified by:
userLogout in interface UserServiceInterface
Parameters:
un - The username of the user to be logged out
Returns:
True if logout is successful, false if logout failed for some reason