public class InMemoryUserRoleListService extends Object implements org.pentaho.platform.api.engine.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(org.pentaho.platform.api.mt.ITenant tenant) |
List<String> |
getAllUsers() |
List<String> |
getAllUsers(org.pentaho.platform.api.mt.ITenant tenant) |
List<String> |
getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant,
String username) |
List<String> |
getSystemRoles() |
org.springframework.security.core.userdetails.UserDetailsService |
getUserDetailsService() |
UserRoleListEnhancedUserMap |
getUserRoleListEnhancedUserMap() |
List<String> |
getUsersInRole(org.pentaho.platform.api.mt.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 org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getAllUsers()
getAllUsers
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String role)
getUsersInRole
in interface org.pentaho.platform.api.engine.IUserRoleListService
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
getRolesForUser
in interface org.pentaho.platform.api.engine.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(org.pentaho.platform.api.mt.ITenant tenant)
getAllRoles
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getAllUsers(org.pentaho.platform.api.mt.ITenant tenant)
getAllUsers
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getSystemRoles()
getSystemRoles
in interface org.pentaho.platform.api.engine.IUserRoleListService
Copyright © 2019 Hitachi Vantara. All rights reserved.