|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJdbcDaoSupport
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(UserDetailsService userDetailsService)
|
|
| Method Summary | |
|---|---|
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()
|
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 |
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(UserDetailsService userDetailsService)
|
| 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(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 GrantedAuthority[] getAllAuthorities()
throws DataAccessException
IUserRoleListServicenull
getAllAuthorities in interface IUserRoleListServicenull)
DataAccessException
public String[] getAllUsernames()
throws DataAccessException
IUserRoleListServicenull
getAllUsernames in interface IUserRoleListServicenull)
DataAccessExceptionpublic String[] getUsernamesInRole(GrantedAuthority authority)
IUserRoleListServicenull
getUsernamesInRole in interface IUserRoleListServiceauthority - The authority to look users up by. Cannot be null
null)
public GrantedAuthority[] getAuthoritiesForUser(String userName)
throws UsernameNotFoundException,
DataAccessException
IUserRoleListService
getAuthoritiesForUser in interface IUserRoleListServiceuserName - The name of the user to look up authorities for
null)
UsernameNotFoundException
DataAccessExceptionpublic void setRolePrefix(String rolePrefix)
public void setUserDetailsService(UserDetailsService userDetailsService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||