common
Class User

java.lang.Object
  extended by common.User

public class User
extends Object

Implementation of the User entity representing a Teamshare application user, as "seen" by other users. Account is used when referring to the user logged in on the device, containing all the user's information. User provides only the information that is needed by other users.


Field Summary
 List<Device> devices
          List of all devices linked by the user.
 String email
          The user's email address, used for receiving notifications.
 boolean online
          The user's status, which can be seen by other users.
 long userID
          The user's unique identifier.
 String username
          The user's username.
 
Constructor Summary
User()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userID

public long userID
The user's unique identifier. It is not visible through the user interface.
Is the same as the one in the user's Account.


username

public String username
The user's username. It is the one visible to other users through an user interface. It is also unique.
Is the same as the one in the user's Account.


email

public String email
The user's email address, used for receiving notifications. Two users cannot have the same email address.
Is the same as the one in the user's Account.


online

public boolean online
The user's status, which can be seen by other users. True if online (at least one of its devices is online), false otherwise.


devices

public List<Device> devices
List of all devices linked by the user. This list is created based on information from the remote services and is not visible to the user. This information is vital for synchronizing changes.

Constructor Detail

User

public User()