org.pentaho.platform.engine.security.userroledao.userrolelistservice
Class UserRoleDaoUserRoleListService

java.lang.Object
  extended by org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService
All Implemented Interfaces:
IUserRoleListService

public class UserRoleDaoUserRoleListService
extends Object
implements IUserRoleListService

An IUserRoleListService that delegates to an IUserRoleDao.

Author:
mlowery

Constructor Summary
UserRoleDaoUserRoleListService()
           
 
Method Summary
 GrantedAuthority[] getAllAuthorities()
          Returns all authorities known to the provider.
 String[] getAllUsernames()
          Returns all user names known to the provider.
 GrantedAuthority[] getAuthoritiesForUser(String username)
          Returns all authorities granted for a specified user.
 String[] getUsernamesInRole(GrantedAuthority authority)
          Returns all known users in the specified role.
 void setUserDetailsService(UserDetailsService userDetailsService)
           
 void setUserRoleDao(IUserRoleDao userRoleDao)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRoleDaoUserRoleListService

public UserRoleDaoUserRoleListService()
Method Detail

getAllAuthorities

public GrantedAuthority[] getAllAuthorities()
Description copied from interface: IUserRoleListService
Returns all authorities known to the provider. Cannot return null

Specified by:
getAllAuthorities in interface IUserRoleListService
Returns:
the authorities (never null)

getAllUsernames

public String[] getAllUsernames()
Description copied from interface: IUserRoleListService
Returns all user names known to the provider. Cannot return null

Specified by:
getAllUsernames in interface IUserRoleListService
Returns:
the users (never null)

getAuthoritiesForUser

public GrantedAuthority[] getAuthoritiesForUser(String username)
                                         throws UsernameNotFoundException,
                                                DataAccessException
Description copied from interface: IUserRoleListService
Returns all authorities granted for a specified user.

Specified by:
getAuthoritiesForUser in interface IUserRoleListService
Parameters:
username - The name of the user to look up authorities for
Returns:
the authorities. (Never null)
Throws:
UsernameNotFoundException
DataAccessException

getUsernamesInRole

public String[] getUsernamesInRole(GrantedAuthority authority)
Description copied from interface: IUserRoleListService
Returns all known users in the specified role. Cannot return null

Specified by:
getUsernamesInRole in interface IUserRoleListService
Parameters:
authority - The authority to look users up by. Cannot be null
Returns:
the users. (never null)

setUserRoleDao

public void setUserRoleDao(IUserRoleDao userRoleDao)

setUserDetailsService

public void setUserDetailsService(UserDetailsService userDetailsService)