org.pentaho.platform.engine.security
Class DefaultRoleJdbcDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.security.userdetails.jdbc.JdbcDaoImpl
              extended by org.pentaho.platform.engine.security.DefaultRoleJdbcDaoImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.userdetails.UserDetailsService

public class DefaultRoleJdbcDaoImpl
extends org.springframework.security.userdetails.jdbc.JdbcDaoImpl

A subclass of JdbcDaoImpl that allows the addition of a default role to all authenticated users.

Author:
mlowery

Field Summary
 
Fields inherited from class org.springframework.security.userdetails.jdbc.JdbcDaoImpl
DEF_AUTHORITIES_BY_USERNAME_QUERY, DEF_GROUP_AUTHORITIES_BY_USERNAME_QUERY, DEF_USERS_BY_USERNAME_QUERY
 
Constructor Summary
DefaultRoleJdbcDaoImpl()
           
 
Method Summary
 void setDefaultRole(String defaultRole)
          The default role which will be assigned to all users.
 
Methods inherited from class org.springframework.security.userdetails.jdbc.JdbcDaoImpl
getUsersByUsernameQuery, loadUserByUsername, setAuthoritiesByUsernameQuery, setEnableAuthorities, setEnableGroups, setGroupAuthoritiesByUsernameQuery, setRolePrefix, setUsernameBasedPrimaryKey, setUsersByUsernameQuery
 
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
 

Constructor Detail

DefaultRoleJdbcDaoImpl

public DefaultRoleJdbcDaoImpl()
Method Detail

setDefaultRole

public void setDefaultRole(String defaultRole)
The default role which will be assigned to all users.

Parameters:
defaultRole - the role name, including any desired prefix.