|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.plugin.services.security.userrole.memory.InMemoryUserRoleListService
public class InMemoryUserRoleListService
An in-memory implementation of UserRoleListService.
| Constructor Summary | |
|---|---|
InMemoryUserRoleListService()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
GrantedAuthority[] |
getAllAuthorities()
Returns all authorities known to the provider. |
String[] |
getAllUsernames()
Returns all user names known to the provider. |
GrantedAuthority[] |
getAuthoritiesForUser(String username)
Returns all authorities granted for a specified user. |
UserDetailsService |
getUserDetailsService()
|
String[] |
getUsernamesInRole(GrantedAuthority authority)
Returns all known users in the specified role. |
UserRoleListEnhancedUserMap |
getUserRoleListEnhancedUserMap()
|
void |
setAllAuthorities(GrantedAuthority[] allAuthorities)
|
void |
setGrantedAuthorityComparator(Comparator<GrantedAuthority> grantedAuthorityComparator)
|
void |
setUserDetailsService(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 GrantedAuthority[] getAllAuthorities()
IUserRoleListServicenull
getAllAuthorities in interface IUserRoleListServicenull)public String[] getAllUsernames()
IUserRoleListServicenull
getAllUsernames in interface IUserRoleListServicenull)public String[] getUsernamesInRole(GrantedAuthority authority)
IUserRoleListServicenull
getUsernamesInRole in interface IUserRoleListServiceauthority - The authority to look users up by. Cannot be null
null)public void setAllAuthorities(GrantedAuthority[] allAuthorities)
public void afterPropertiesSet()
throws Exception
Exception
public GrantedAuthority[] getAuthoritiesForUser(String username)
throws UsernameNotFoundException
IUserRoleListService
getAuthoritiesForUser in interface IUserRoleListServiceusername - The name of the user to look up authorities for
null)
UsernameNotFoundExceptionpublic void setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
public UserDetailsService getUserDetailsService()
public void setUserDetailsService(UserDetailsService userDetailsService)
public UserRoleListEnhancedUserMap getUserRoleListEnhancedUserMap()
public void setGrantedAuthorityComparator(Comparator<GrantedAuthority> grantedAuthorityComparator)
public void setUsernameComparator(Comparator<String> usernameComparator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||