eu.etaxonomy.cdm.model.common
Class User
java.lang.Object
eu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.User
- All Implemented Interfaces:
- ICdmBase, Serializable, Cloneable, org.springframework.security.core.userdetails.UserDetails
@Indexed(index="eu.etaxonomy.cdm.model.common.User")
public class User
- extends CdmBase
- implements org.springframework.security.core.userdetails.UserDetails
- See Also:
- Serialized Form
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
uuid |
|
Constructor Summary |
protected |
User()
|
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, equals, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString |
username
@Field(index=UN_TOKENIZED)
protected String username
password
protected String password
- a salted, MD5 encoded hash of the plaintext password
emailAddress
protected String emailAddress
grantedAuthorities
protected Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities
groups
@IndexedEmbedded(depth=1)
protected Set<Group> groups
enabled
protected boolean enabled
accountNonExpired
protected boolean accountNonExpired
credentialsNonExpired
protected boolean credentialsNonExpired
accountNonLocked
protected boolean accountNonLocked
person
@IndexedEmbedded(depth=1)
protected Person person
User
protected User()
NewInstance
public static User NewInstance(String username,
String pwd)
NewInstance
public static User NewInstance(String personTitle,
String username,
String pwd)
getAuthorities
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
getPassword
public String getPassword()
- Specified by:
getPassword in interface org.springframework.security.core.userdetails.UserDetails
getUsername
public String getUsername()
- Specified by:
getUsername in interface org.springframework.security.core.userdetails.UserDetails
isAccountNonExpired
public boolean isAccountNonExpired()
- Specified by:
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
isAccountNonLocked
public boolean isAccountNonLocked()
- Specified by:
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
isCredentialsNonExpired
public boolean isCredentialsNonExpired()
- Specified by:
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface org.springframework.security.core.userdetails.UserDetails
getEmailAddress
public String getEmailAddress()
setEmailAddress
public void setEmailAddress(String emailAddress)
getGrantedAuthorities
public Set<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities()
setGrantedAuthorities
public void setGrantedAuthorities(Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities)
setUsername
public void setUsername(String username)
setPassword
public void setPassword(String password)
setEnabled
public void setEnabled(boolean enabled)
setAccountNonExpired
public void setAccountNonExpired(boolean accountNonExpired)
setCredentialsNonExpired
public void setCredentialsNonExpired(boolean credentialsNonExpired)
setAccountNonLocked
public void setAccountNonLocked(boolean accountNonLocked)
setGroups
protected void setGroups(Set<Group> groups)
getGroups
public Set<Group> getGroups()
getPerson
public Person getPerson()
setPerson
public void setPerson(Person person)
clone
public Object clone()
- Clones this User. This is a shortcut that enables to create
a new instance that differs only slightly from this User.
The corresponding person is cloned.
- Overrides:
clone in class CdmBase
- See Also:
CdmBase.clone(),
Object.clone()
Copyright © 2007-2012 EDIT. All Rights Reserved.