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
 org.springframework.security.GrantedAuthority[] getAllAuthorities()
          Returns all authorities known to the provider.
 String[] getAllUsernames()
          Returns all user names known to the provider.
 org.springframework.security.GrantedAuthority[] getAuthoritiesForUser(String username)
          Returns all authorities granted for a specified user.
 String[] getUsernamesInRole(org.springframework.security.GrantedAuthority authority)
          Returns all known users in the specified role.
 void setUserDetailsService(org.springframework.security.userdetails.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 org.springframework.security.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 org.springframework.security.GrantedAuthority[] getAuthoritiesForUser(String username)
                                                                      throws org.springframework.security.userdetails.UsernameNotFoundException,
                                                                             org.springframework.dao.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:
org.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

getUsernamesInRole

public String[] getUsernamesInRole(org.springframework.security.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(org.springframework.security.userdetails.UserDetailsService userDetailsService)