|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.plugin.services.security.userrole.memory.InMemoryUserRoleListService
public class InMemoryUserRoleListService
An in-memory implementation of UserRoleListService
.
Constructor Summary | |
---|---|
InMemoryUserRoleListService()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
org.springframework.security.GrantedAuthority[] |
getAllAuthorities()
Returns all authorities known to the provider. |
String[] |
getAllUsernames()
Returns all user names known to the provider. |
org.springframework.security.GrantedAuthority[] |
getAuthoritiesForUser(String username)
Returns all authorities granted for a specified user. |
org.springframework.security.userdetails.UserDetailsService |
getUserDetailsService()
|
String[] |
getUsernamesInRole(org.springframework.security.GrantedAuthority authority)
Returns all known users in the specified role. |
UserRoleListEnhancedUserMap |
getUserRoleListEnhancedUserMap()
|
void |
setAllAuthorities(org.springframework.security.GrantedAuthority[] allAuthorities)
|
void |
setGrantedAuthorityComparator(Comparator<org.springframework.security.GrantedAuthority> grantedAuthorityComparator)
|
void |
setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
|
void |
setUsernameComparator(Comparator<String> usernameComparator)
|
void |
setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InMemoryUserRoleListService()
Method Detail |
---|
public org.springframework.security.GrantedAuthority[] getAllAuthorities()
IUserRoleListService
null
getAllAuthorities
in interface IUserRoleListService
null
)public String[] getAllUsernames()
IUserRoleListService
null
getAllUsernames
in interface IUserRoleListService
null
)public String[] getUsernamesInRole(org.springframework.security.GrantedAuthority authority)
IUserRoleListService
null
getUsernamesInRole
in interface IUserRoleListService
authority
- The authority to look users up by. Cannot be null
null
)public void setAllAuthorities(org.springframework.security.GrantedAuthority[] allAuthorities)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public org.springframework.security.GrantedAuthority[] getAuthoritiesForUser(String username) throws org.springframework.security.userdetails.UsernameNotFoundException
IUserRoleListService
getAuthoritiesForUser
in interface IUserRoleListService
username
- The name of the user to look up authorities for
null
)
org.springframework.security.userdetails.UsernameNotFoundException
public void setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
public org.springframework.security.userdetails.UserDetailsService getUserDetailsService()
public void setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
public UserRoleListEnhancedUserMap getUserRoleListEnhancedUserMap()
public void setGrantedAuthorityComparator(Comparator<org.springframework.security.GrantedAuthority> grantedAuthorityComparator)
public void setUsernameComparator(Comparator<String> usernameComparator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |