public class InMemoryUserRoleListService extends Object implements IUserRoleListService, org.springframework.beans.factory.InitializingBean
UserRoleListService
.Constructor and Description |
---|
InMemoryUserRoleListService() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<String> |
getAllRoles() |
List<String> |
getAllRoles(ITenant tenant) |
List<String> |
getAllUsers() |
List<String> |
getAllUsers(ITenant tenant) |
List<String> |
getRolesForUser(ITenant tenant,
String username) |
List<String> |
getSystemRoles() |
org.springframework.security.core.userdetails.UserDetailsService |
getUserDetailsService() |
UserRoleListEnhancedUserMap |
getUserRoleListEnhancedUserMap() |
List<String> |
getUsersInRole(ITenant tenant,
String role) |
void |
setAllRoles(List<String> allRoles) |
void |
setRoleComparator(Comparator<String> roleComparator) |
void |
setSystemRoles(List<String> systemRoles) |
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
void |
setUsernameComparator(Comparator<String> usernameComparator) |
void |
setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap) |
public List<String> getAllRoles()
getAllRoles
in interface IUserRoleListService
public List<String> getAllUsers()
getAllUsers
in interface IUserRoleListService
public List<String> getUsersInRole(ITenant tenant, String role)
getUsersInRole
in interface IUserRoleListService
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public List<String> getRolesForUser(ITenant tenant, String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
getRolesForUser
in interface IUserRoleListService
org.springframework.security.core.userdetails.UsernameNotFoundException
public void setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
public org.springframework.security.core.userdetails.UserDetailsService getUserDetailsService()
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public UserRoleListEnhancedUserMap getUserRoleListEnhancedUserMap()
public void setRoleComparator(Comparator<String> roleComparator)
public void setUsernameComparator(Comparator<String> usernameComparator)
public List<String> getAllRoles(ITenant tenant)
getAllRoles
in interface IUserRoleListService
public List<String> getAllUsers(ITenant tenant)
getAllUsers
in interface IUserRoleListService
public List<String> getSystemRoles()
getSystemRoles
in interface IUserRoleListService
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.