eu.etaxonomy.cdm.model.common
Class User

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by 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

Field Summary
protected  boolean accountNonExpired
           
protected  boolean accountNonLocked
           
protected  boolean credentialsNonExpired
           
protected  String emailAddress
           
protected  boolean enabled
           
protected  Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities
           
protected  Set<Group> groups
           
protected  String password
          a salted, MD5 encoded hash of the plaintext password
protected  Person person
           
protected  String username
           
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected User()
           
 
Method Summary
 Object clone()
          Clones this User.
 Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
           
 String getEmailAddress()
           
 Set<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities()
           
 Set<Group> getGroups()
           
 String getPassword()
           
 Person getPerson()
           
 String getUsername()
           
 boolean isAccountNonExpired()
           
 boolean isAccountNonLocked()
           
 boolean isCredentialsNonExpired()
           
 boolean isEnabled()
           
static User NewInstance(String username, String pwd)
           
static User NewInstance(String personTitle, String username, String pwd)
           
 void setAccountNonExpired(boolean accountNonExpired)
           
 void setAccountNonLocked(boolean accountNonLocked)
           
 void setCredentialsNonExpired(boolean credentialsNonExpired)
           
 void setEmailAddress(String emailAddress)
           
 void setEnabled(boolean enabled)
           
 void setGrantedAuthorities(Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities)
           
protected  void setGroups(Set<Group> groups)
           
 void setPassword(String password)
           
 void setPerson(Person person)
           
 void setUsername(String username)
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

User

protected User()
Method Detail

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.