|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.muni.fi.pclis.commons.domain.DomainObject
cz.muni.fi.pclis.domain.User
public class 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 |
---|
private String userIdentificationNumber
private String name
private String surname
private String email
private boolean admin
private String googleWavesAccount
Constructor Detail |
---|
public User()
Method Detail |
---|
public String getUserIdentificationNumber()
public void setUserIdentificationNumber(String userIdentificationNumber)
userIdentificationNumber
- public String getName()
public void setName(String name)
name
- public String getSurname()
public void setSurname(String surname)
surname
- public String getEmail()
public void setEmail(String email)
email
- public boolean isAdmin()
public void setAdmin(boolean admin)
admin
- public String getGoogleWavesAccount()
public void setGoogleWavesAccount(String googleWavesAccount)
googleWavesAccount
- public String getWholeName()
public int compareTo(User o)
compareTo
in interface Comparable<User>
o
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |