net.sourceforge.apphere
Class UserManager

java.lang.Object
  extended bynet.sourceforge.apphere.UserManager

public class UserManager
extends java.lang.Object


Constructor Summary
UserManager()
           
 
Method Summary
 void addDevice(DeviceValue newDev)
           
 User fetchUserFromToken(java.lang.String token)
          Method fetchUser.
 User getUser(int userId)
           
 java.lang.String login(java.lang.String username, java.lang.String password, java.lang.String clientIP)
          Method login.
 void removeDevice(int userId, int deviceId)
           
 void updateUser(UserValue usr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManager

public UserManager()
Method Detail

fetchUserFromToken

public User fetchUserFromToken(java.lang.String token)
                        throws InvalidTokenException,
                               AppHereException
Method fetchUser.

Parameters:
token -
Returns:
UserProfile
Throws:
InvalidTokenException
AppHereException

login

public java.lang.String login(java.lang.String username,
                              java.lang.String password,
                              java.lang.String clientIP)
                       throws java.net.UnknownHostException,
                              AppHereException
Method login.

Parameters:
username -
password -
clientIP -
Returns:
String token
Throws:
java.net.UnknownHostException
AppHereException

getUser

public User getUser(int userId)
             throws AppHereException
Throws:
AppHereException

addDevice

public void addDevice(DeviceValue newDev)
               throws AppHereException
Parameters:
newDev -
Throws:
AppHereException

removeDevice

public void removeDevice(int userId,
                         int deviceId)
                  throws AppHereException
Parameters:
userId -
Returns:
Throws:
AppHereException

updateUser

public void updateUser(UserValue usr)
                throws AppHereException
Throws:
AppHereException