|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.jdbc.core.support.JdbcDaoSupport org.pentaho.platform.plugin.services.security.userrole.jdbc.JdbcUserRoleListService
public class JdbcUserRoleListService
Field Summary | |
---|---|
static String |
DEF_ALL_AUTHORITIES_QUERY
|
static String |
DEF_ALL_USERNAMES_IN_ROLE_QUERY
|
static String |
DEF_ALL_USERNAMES_QUERY
|
Constructor Summary | |
---|---|
JdbcUserRoleListService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
|
Method Summary | |
---|---|
org.springframework.security.GrantedAuthority[] |
getAllAuthorities()
Returns all authorities known to the provider. |
String |
getAllAuthoritiesQuery()
|
String[] |
getAllUsernames()
Returns all user names known to the provider. |
String |
getAllUsernamesInRoleQuery()
|
String |
getAllUsernamesQuery()
|
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 |
setAllAuthoritiesQuery(String queryString)
Allows the default query string used to retrieve all authorities to be overriden, if default table or column names need to be changed. |
void |
setAllUsernamesInRoleQuery(String queryString)
Allows the default query string used to retrieve all user names in a role to be overriden, if default table or column names need to be changed. |
void |
setAllUsernamesQuery(String queryString)
Allows the default query string used to retrieve all user names to be overriden, if default table or column names need to be changed. |
void |
setRolePrefix(String rolePrefix)
|
void |
setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
---|
getDataSource, getJdbcTemplate, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEF_ALL_AUTHORITIES_QUERY
public static final String DEF_ALL_USERNAMES_QUERY
public static final String DEF_ALL_USERNAMES_IN_ROLE_QUERY
Constructor Detail |
---|
public JdbcUserRoleListService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
Method Detail |
---|
public void setAllAuthoritiesQuery(String queryString)
DEF_ALL_AUTHORITIES_QUERY
; when modifying this
query, ensure that all returned columns are mapped back to the same
column names as in the default query.
queryString
- The query string to setpublic String getAllAuthoritiesQuery()
public void setAllUsernamesInRoleQuery(String queryString)
#DEF_ALL_USERS_QUERY
; when modifying this
query, ensure that all returned columns are mapped back to the same
column names as in the default query.
queryString
- The query string to setpublic String getAllUsernamesInRoleQuery()
public void setAllUsernamesQuery(String queryString)
#DEF_ALL_USERS_IN_ROLE_QUERY
; when modifying
this query, ensure that all returned columns are mapped back to the same
column names as in the default query.
queryString
- The query string to setpublic String getAllUsernamesQuery()
public org.springframework.security.GrantedAuthority[] getAllAuthorities() throws org.springframework.dao.DataAccessException
IUserRoleListService
null
getAllAuthorities
in interface IUserRoleListService
null
)
org.springframework.dao.DataAccessException
public String[] getAllUsernames() throws org.springframework.dao.DataAccessException
IUserRoleListService
null
getAllUsernames
in interface IUserRoleListService
null
)
org.springframework.dao.DataAccessException
public String[] getUsernamesInRole(org.springframework.security.GrantedAuthority authority)
IUserRoleListService
null
getUsernamesInRole
in interface IUserRoleListService
authority
- The authority to look users up by. Cannot be null
null
)public org.springframework.security.GrantedAuthority[] getAuthoritiesForUser(String userName) throws org.springframework.security.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
IUserRoleListService
getAuthoritiesForUser
in interface IUserRoleListService
userName
- The name of the user to look up authorities for
null
)
org.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
public void setRolePrefix(String rolePrefix)
public void setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |