|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUser
A User is a user of a certain program. A User can be assigned Role-objects, which contain Authorities to perform certain tasks.
Method Summary | |
---|---|
void |
addRole(Role role)
Adds a Role to the set of Roles of this User. |
java.util.Date |
getExpiryDate()
|
long |
getId()
The unique identifier that can be used to distinguish different Users from eachother. |
java.lang.String |
getLoginname()
|
java.lang.String |
getName()
|
java.lang.String |
getPassword()
Gets the encrypted version of this Users password. |
java.util.Set<Role> |
getRoles()
|
java.util.List<Role> |
getRolesList()
Convenience method to get the roles in List form. |
void |
setExpiryDate(java.util.Date expiryDate)
Sets the expirydate of this User. |
void |
setId(long id)
Sets the identifier of the User. |
void |
setLoginname(java.lang.String loginname)
Sets the loginname for this User. |
void |
setName(java.lang.String username)
Set the real name of this User. |
void |
setPassword(java.lang.String encryptedPassword)
Sets the encrypted version of this Users password. |
void |
setRoles(java.util.Set<Role> roles)
Set the Roles which this User is assigned to. |
void |
setRolesList(java.util.List<Role> roles)
Convenience method to set the roles in List form. |
void |
setUnencryptedPassword(java.lang.String unencryptedpass)
Sets the password for a User. |
Methods inherited from interface org.acegisecurity.userdetails.UserDetails |
---|
getAuthorities, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled |
Method Detail |
---|
long getId()
void setId(long id)
id
- an integer.java.util.Date getExpiryDate()
void setExpiryDate(java.util.Date expiryDate)
expiryDate
- java.lang.String getLoginname()
void setLoginname(java.lang.String loginname)
loginname
- The loginname. It is advisable to use only lowercase letters in the loginname.java.lang.String getName()
void setName(java.lang.String username)
username
- The name.java.util.Set<Role> getRoles()
void setRoles(java.util.Set<Role> roles)
roles
- The Roles.java.util.List<Role> getRolesList()
void setRolesList(java.util.List<Role> roles)
roles
- The Roles.void addRole(Role role)
role
- The Role to addvoid setUnencryptedPassword(java.lang.String unencryptedpass)
unencryptedpass
- The unencryted password.java.lang.String getPassword()
getPassword
in interface org.acegisecurity.userdetails.UserDetails
void setPassword(java.lang.String encryptedPassword)
encryptedPassword
- The encrypted password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |