Serializable
, Cloneable
, Comparable<Entity>
, Entity
public class User extends AbstractEntity implements Comparable<Entity>
Modifier and Type | Class | Description |
---|---|---|
static class |
User.LoginComparator |
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
Modifier and Type | Field | Description |
---|---|---|
static Comparator<User> |
LOGIN_COMPARATOR |
|
static Comparator<User> |
NAME_COMPARATOR |
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
Constructor | Description |
---|---|
User() |
Default constructor (required by Hibernate).
|
User(String login) |
|
User(String login,
String password,
String firstName,
String lastName,
String email,
boolean superUser) |
|
User(String login,
String password,
String firstName,
String lastName,
String email,
int registrationType,
boolean superUser) |
Modifier and Type | Method | Description |
---|---|---|
String |
getEmail() |
|
javax.mail.internet.InternetAddress |
getEmailAddress() |
|
String |
getFirstInitial() |
|
String |
getFirstName() |
|
String |
getFullName() |
|
String |
getLastName() |
|
String |
getLogin() |
|
String |
getPassword() |
|
Set<Permission> |
getPermissions() |
|
UserPreferences |
getPreferences() |
|
List<Project> |
getProjects() |
|
int |
getRegistrationType() |
|
int |
getStatus() |
|
boolean |
hasRequiredData() |
|
boolean |
hasRequiredData(boolean passwordRequired) |
|
boolean |
isSuperUser() |
|
void |
setEmail(String email) |
|
void |
setFirstName(String value) |
|
void |
setLastName(String value) |
|
void |
setLogin(String login) |
|
void |
setPassword(String value) |
|
void |
setPermissions(Set<Permission> getPermissions) |
|
void |
setPreferences(UserPreferences preferences) |
|
void |
setProjects(List<Project> projects) |
|
void |
setRegistrationType(int registrationType) |
|
void |
setStatus(int status) |
|
void |
setSuperUser(boolean superUser) |
|
String |
toString() |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
compareTo
public static final Comparator<User> NAME_COMPARATOR
public static final Comparator<User> LOGIN_COMPARATOR
public User()
PENDING: should be private
so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
public User(String login)
public User(String login, String password, String firstName, String lastName, String email, boolean superUser)
public UserPreferences getPreferences()
public void setPreferences(UserPreferences preferences)
public String getLogin()
public void setLogin(String login)
public String getPassword()
public void setPassword(String value)
public String getFirstName()
public void setFirstName(String value)
public String getLastName()
public void setLastName(String value)
public String getFullName()
public String getEmail()
public javax.mail.internet.InternetAddress getEmailAddress()
public void setEmail(String email)
public Set<Permission> getPermissions()
public void setPermissions(Set<Permission> getPermissions)
public int getRegistrationType()
public void setRegistrationType(int registrationType)
public int getStatus()
public void setStatus(int status)
public boolean isSuperUser()
public void setSuperUser(boolean superUser)
public String getFirstInitial()
public boolean hasRequiredData()
public boolean hasRequiredData(boolean passwordRequired)
Copyright © 2002–2019 itracker. All rights reserved.