Class InMemoryUserRoleListService
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.memory.InMemoryUserRoleListService
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IUserRoleListService
,org.springframework.beans.factory.InitializingBean
public class InMemoryUserRoleListService extends Object implements org.pentaho.platform.api.engine.IUserRoleListService, org.springframework.beans.factory.InitializingBean
An in-memory implementation ofUserRoleListService
.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description InMemoryUserRoleListService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getAllRoles
public List<String> getAllRoles()
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getAllUsers
public List<String> getAllUsers()
- Specified by:
getAllUsers
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getUsersInRole
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String role)
- Specified by:
getUsersInRole
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getRolesForUser
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
getRolesForUser
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
setUserRoleListEnhancedUserMap
public void setUserRoleListEnhancedUserMap(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
-
getUserDetailsService
public org.springframework.security.core.userdetails.UserDetailsService getUserDetailsService()
-
setUserDetailsService
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
-
getUserRoleListEnhancedUserMap
public UserRoleListEnhancedUserMap getUserRoleListEnhancedUserMap()
-
setRoleComparator
public void setRoleComparator(Comparator<String> roleComparator)
-
setUsernameComparator
public void setUsernameComparator(Comparator<String> usernameComparator)
-
getAllRoles
public List<String> getAllRoles(org.pentaho.platform.api.mt.ITenant tenant)
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getAllUsers
public List<String> getAllUsers(org.pentaho.platform.api.mt.ITenant tenant)
- Specified by:
getAllUsers
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getSystemRoles
public List<String> getSystemRoles()
- Specified by:
getSystemRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
-