public class OnmsUser extends Object implements org.springframework.security.core.userdetails.UserDetails
Modifier and Type | Method and Description |
---|---|
void |
addAuthority(org.springframework.security.core.GrantedAuthority authority) |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
getAuthorities
|
String |
getComments()
getComments
|
List<String> |
getDutySchedule() |
String |
getFullName()
getFullName
|
String |
getPassword()
getPassword
|
boolean |
getPasswordSalted() |
String |
getUsername()
getUsername
|
boolean |
isAccountNonExpired()
isAccountNonExpired
|
boolean |
isAccountNonLocked()
isAccountNonLocked
|
boolean |
isCredentialsNonExpired()
isCredentialsNonExpired
|
boolean |
isEnabled()
isEnabled
|
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
setAuthorities
|
void |
setComments(String comments)
setComments
|
void |
setDutySchedule(List<String> dutySchedule) |
void |
setFullName(String fullName)
setFullName
|
void |
setPassword(String password)
setPassword
|
void |
setPasswordSalted(boolean passwordSalted) |
void |
setUsername(String username)
setUsername
|
String |
toString()
toString
|
public OnmsUser()
public OnmsUser(String username)
public void setComments(String comments)
setComments
comments
- a String
object.public String getPassword()
getPassword
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
String
object.public void setPassword(String password)
setPassword
password
- a String
object.public boolean getPasswordSalted()
public void setPasswordSalted(boolean passwordSalted)
public void setFullName(String fullName)
setFullName
fullName
- a String
object.public String getUsername()
getUsername
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
String
object.public void setUsername(String username)
setUsername
username
- a String
object.public String toString()
toString
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
org.springframework.security.GrantedAuthority
objects.public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
setAuthorities
authorities
- an array of org.springframework.security.GrantedAuthority
objects.public boolean isAccountNonExpired()
isAccountNonExpired
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isEnabled()
isEnabled
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
public void addAuthority(org.springframework.security.core.GrantedAuthority authority)
Copyright © 2015. All Rights Reserved.