cz.muni.fi.pclis.domain
Class User

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.domain.User
All Implemented Interfaces:
Comparable<User>

public class User
extends DomainObject
implements Comparable<User>

User entity class, which represents user in the system.

User: Ľuboš Pecho Date: 6.7.2009 Time: 17:49:45


Field Summary
private  boolean admin
          Says, if the user is adminastrator of the system
private  String email
          E-mail address of the user
private  String googleWavesAccount
          Google Wave account of the user
private  String name
          First name of the user
private  String surname
          Surname of the user
private  String userIdentificationNumber
          User identification number from central information system of Masaryk University ("učo")
 
Constructor Summary
User()
           
 
Method Summary
 int compareTo(User o)
          Compares this user to another by surname and name lexicographically
 String getEmail()
           
 String getGoogleWavesAccount()
           
 String getName()
           
 String getSurname()
           
 String getUserIdentificationNumber()
           
 String getWholeName()
          Returns whole name of the user
 boolean isAdmin()
          Returns true if user has admin flag
 void setAdmin(boolean admin)
          Sets the admin flag
 void setEmail(String email)
          Sets the email
 void setGoogleWavesAccount(String googleWavesAccount)
          Sets the google wave account
 void setName(String name)
          Sets the name
 void setSurname(String surname)
          Sets the surname
 void setUserIdentificationNumber(String userIdentificationNumber)
          Sets the user identification number
 String toString()
          
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.DomainObject
equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

userIdentificationNumber

private String userIdentificationNumber
User identification number from central information system of Masaryk University ("učo")


name

private String name
First name of the user


surname

private String surname
Surname of the user


email

private String email
E-mail address of the user


admin

private boolean admin
Says, if the user is adminastrator of the system


googleWavesAccount

private String googleWavesAccount
Google Wave account of the user

Constructor Detail

User

public User()
Method Detail

getUserIdentificationNumber

public String getUserIdentificationNumber()
Returns:
user identification number

setUserIdentificationNumber

public void setUserIdentificationNumber(String userIdentificationNumber)
Sets the user identification number

Parameters:
userIdentificationNumber -

getName

public String getName()
Returns:
name

setName

public void setName(String name)
Sets the name

Parameters:
name -

getSurname

public String getSurname()
Returns:
surname

setSurname

public void setSurname(String surname)
Sets the surname

Parameters:
surname -

getEmail

public String getEmail()
Returns:
email

setEmail

public void setEmail(String email)
Sets the email

Parameters:
email -

isAdmin

public boolean isAdmin()
Returns true if user has admin flag

Returns:

setAdmin

public void setAdmin(boolean admin)
Sets the admin flag

Parameters:
admin -

getGoogleWavesAccount

public String getGoogleWavesAccount()
Returns:
google wave account

setGoogleWavesAccount

public void setGoogleWavesAccount(String googleWavesAccount)
Sets the google wave account

Parameters:
googleWavesAccount -

getWholeName

public String getWholeName()
Returns whole name of the user

Returns:

compareTo

public int compareTo(User o)
Compares this user to another by surname and name lexicographically

Specified by:
compareTo in interface Comparable<User>
Parameters:
o -
Returns:

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.