Class UserRoleDaoUserRoleListService
- java.lang.Object
-
- org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IUserRoleListService
public class UserRoleDaoUserRoleListService extends Object implements org.pentaho.platform.api.engine.IUserRoleListService
AnIUserRoleListService
that delegates to anIUserRoleDao
.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, String roleName)
List<String>
getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role, String roleName)
void
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
void
setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao)
-
-
-
Constructor Detail
-
UserRoleDaoUserRoleListService
public UserRoleDaoUserRoleListService()
-
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)
-
-
Method Detail
-
getAllRoles
public List<String> getAllRoles()
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
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()
- Specified by:
getAllUsers
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
-
getRolesForUser
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
- Specified by:
getRolesForUser
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
-
getUsersInRole
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role, String roleName)
-
getUsersInRole
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String roleName)
- Specified by:
getUsersInRole
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
setUserRoleDao
public void setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao)
-
setUserDetailsService
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
-
-