org.gersteinlab.tyna.webapp.data
Class User

java.lang.Object
  extended by org.gersteinlab.tyna.webapp.data.User
All Implemented Interfaces:
java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable

        This class contains the information of a user.
        

Version:
1.0 (October 1, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected  java.lang.String email
          Email.
protected  java.lang.Integer id
          User ID.
protected  java.lang.String institution
          Institution.
protected  java.lang.String name
          Login name.
 
Constructor Summary
User()
          Default constructor: creates an empty object.
User(java.lang.Integer id, java.lang.String name, java.lang.String email, java.lang.String institution)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.lang.String getEmail()
          Get the email.
 java.lang.Integer getId()
          Get the user ID.
 java.lang.String getInstitution()
          Get the institution.
 java.lang.String getName()
          Get the login name.
 void setEmail(java.lang.String email)
          Set the email.
 void setId(java.lang.Integer id)
          Set the user ID.
 void setInstitution(java.lang.String institution)
          Set the institution.
 void setName(java.lang.String name)
          Set the login name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
User ID.


name

protected java.lang.String name
Login name.


email

protected java.lang.String email
Email.


institution

protected java.lang.String institution
Institution.

Constructor Detail

User

public User()
Default constructor: creates an empty object.


User

public User(java.lang.Integer id,
            java.lang.String name,
            java.lang.String email,
            java.lang.String institution)
Creates a new object that stores the supplied information.

Parameters:
id - User ID.
name - Login name.
email - Email.
institution - Institution.
Method Detail

getId

public java.lang.Integer getId()
Get the user ID.

Returns:
The user ID.

setId

public void setId(java.lang.Integer id)
Set the user ID.

Parameters:
id - The user ID.

getName

public java.lang.String getName()
Get the login name.

Returns:
The login name.

setName

public void setName(java.lang.String name)
Set the login name.

Parameters:
name - The login name.

getEmail

public java.lang.String getEmail()
Get the email.

Returns:
The email.

setEmail

public void setEmail(java.lang.String email)
Set the email.

Parameters:
email - The email.

getInstitution

public java.lang.String getInstitution()
Get the institution.

Returns:
The institution.

setInstitution

public void setInstitution(java.lang.String institution)
Set the institution.

Parameters:
institution - The institution.