@Entity public class User extends EntityJPA<String>
| Modifier and Type | Field and Description |
|---|---|
static int |
EMAIL_MAX_LENGTH
Taille max d'une adresse mail.
|
static String |
FIND_ALL |
static int |
PASSWORD_MAX_LENGHT |
static int |
USERNAME_MAX_LENGHT
Taille max d'un username.
|
DEFAULT_STRING_LENGTH, ENTITY_NAME, ID| Constructor and Description |
|---|
User()
Constructeur par defaut.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAuthority(Collection<Authority> auth) |
boolean |
addAuthority(Authority auth) |
boolean |
addGroup(GroupSec group) |
boolean |
equals(Object obj)
.
|
Collection<Authority> |
getAuthorities() |
protected Collection<Authority> |
getAuthoritiesInternal() |
Date |
getCreationDate()
Getter de la date de création.
|
protected Calendar |
getCreationDateInternal() |
String |
getEmail()
Getter de email.
|
Collection<GroupSec> |
getGroups() |
protected Collection<GroupSec> |
getGroupsInternal() |
String |
getId()
Getter de l'ID technique.
|
Date |
getLastLogin()
Getter de la date de dernière connection.
|
protected Calendar |
getLastLoginInternal()
Getter interne de la date de dernière connection.
|
String |
getPassword() |
String |
getUsername() |
int |
hashCode()
.
|
protected void |
initCreationDate()
Methode d'inititialisation de la date de creation d'un utilisateur.
Cette methode est utilise en pre-persistance. |
boolean |
isEnabled() |
protected void |
setAuthoritiesInternal(Collection<Authority> authorities) |
protected void |
setCreationDate(Date date)
Setter interne pour la persistence de la date de création.
|
protected void |
setCreationDateInternal(Calendar calendar) |
void |
setEmail(String email)
Setter de email.
|
void |
setEnabled(boolean enabled) |
protected void |
setGroupsInternal(Collection<GroupSec> groups) |
void |
setId(String id) |
void |
setLastLogin(Date date)
Setter de la date de dernière connection.
|
protected void |
setLastLoginInternal(Calendar calendar)
Setter interne de la date de dernière connection.
|
void |
setPassword(String password) |
void |
setUsername(String username) |
String |
toString()
.
|
public static final String FIND_ALL
public static final int USERNAME_MAX_LENGHT
public static final int PASSWORD_MAX_LENGHT
public static final int EMAIL_MAX_LENGTH
protected void initCreationDate()
protected Calendar getCreationDateInternal()
protected void setCreationDateInternal(Calendar calendar)
public String getEmail()
public void setEmail(String email)
email - email utilisateur.public Date getCreationDate()
protected void setCreationDate(Date date)
date - date de création.protected Calendar getLastLoginInternal()
protected void setLastLoginInternal(Calendar calendar)
calendar - date de dernière connection.public Date getLastLogin()
public void setLastLogin(Date date)
date - date de dernière connection.protected Collection<Authority> getAuthoritiesInternal()
protected void setAuthoritiesInternal(Collection<Authority> authorities)
public Collection<Authority> getAuthorities()
public boolean addAuthority(Authority auth)
public boolean addAllAuthority(Collection<Authority> auth)
public boolean isEnabled()
public void setEnabled(boolean enabled)
protected Collection<GroupSec> getGroupsInternal()
protected void setGroupsInternal(Collection<GroupSec> groups)
public Collection<GroupSec> getGroups()
public boolean addGroup(GroupSec group)
public String getPassword()
public void setPassword(String password)
public String getUsername()
public void setUsername(String username)
Copyright © 2012. All Rights Reserved.