public class UserRoleDaoUserRoleListService extends Object implements org.pentaho.platform.api.engine.IUserRoleListService
IUserRoleListService
that delegates to an IUserRoleDao
.Constructor and Description |
---|
UserRoleDaoUserRoleListService() |
UserRoleDaoUserRoleListService(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver usernamePrincipalResolver,
List<String> systemRoles,
List<String> extraRoles,
String adminRole) |
Modifier and Type | Method and Description |
---|---|
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() |
List<String> |
getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant,
org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role,
String roleName) |
List<String> |
getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant,
String roleName) |
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
void |
setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao) |
public UserRoleDaoUserRoleListService()
public UserRoleDaoUserRoleListService(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver usernamePrincipalResolver, List<String> systemRoles, List<String> extraRoles, String adminRole)
public List<String> getAllRoles()
getAllRoles
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getAllRoles(org.pentaho.platform.api.mt.ITenant tenant)
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> getAllUsers(org.pentaho.platform.api.mt.ITenant tenant)
getAllUsers
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
getRolesForUser
in interface org.pentaho.platform.api.engine.IUserRoleListService
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role, String roleName)
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String roleName)
getUsersInRole
in interface org.pentaho.platform.api.engine.IUserRoleListService
public void setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao)
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
Copyright © 2019 Hitachi Vantara. All rights reserved.