org.opennms.web.springframework.security
Class UserDaoImpl

java.lang.Object
  extended by org.opennms.web.springframework.security.UserDaoImpl
All Implemented Interfaces:
UserDao, org.springframework.beans.factory.InitializingBean

public class UserDaoImpl
extends Object
implements UserDao, org.springframework.beans.factory.InitializingBean

Implements the interface to allow Tomcat to check our users.xml file to authenticate users.

This class is Tomcat-specific and will not be portable to other servlet containers. It relies on packages supplied with Tomcat.

Author:
Lawrence Karnowski, Eric Molitor, OpenNMS

Constructor Summary
UserDaoImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.security.GrantedAuthority[] getAuthoritiesByUsername(String user)
           
 User getByUsername(String username)
           
 long getGroupsLastModified()
           
 String getMagicUsersConfigurationFile()
           
 long getMagicUsersLastModified()
           
 String getUsersConfigurationFile()
           
 long getUsersLastModified()
           
 boolean isUseGroups()
           
 void setGroupsConfigurationFile(String groupsConfigurationFile)
           
 void setMagicUsersConfigurationFile(String magicUsersConfigurationFile)
           
 void setUseGroups(boolean useGroups)
           
 void setUsersConfigurationFile(String usersConfigurationFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDaoImpl

public UserDaoImpl()
Method Detail

getAuthoritiesByUsername

protected org.springframework.security.GrantedAuthority[] getAuthoritiesByUsername(String user)

setUsersConfigurationFile

public void setUsersConfigurationFile(String usersConfigurationFile)

setGroupsConfigurationFile

public void setGroupsConfigurationFile(String groupsConfigurationFile)

setUseGroups

public void setUseGroups(boolean useGroups)

getUsersConfigurationFile

public String getUsersConfigurationFile()

setMagicUsersConfigurationFile

public void setMagicUsersConfigurationFile(String magicUsersConfigurationFile)

getMagicUsersConfigurationFile

public String getMagicUsersConfigurationFile()

getByUsername

public User getByUsername(String username)
Specified by:
getByUsername in interface UserDao

getMagicUsersLastModified

public long getMagicUsersLastModified()

getUsersLastModified

public long getUsersLastModified()

getGroupsLastModified

public long getGroupsLastModified()

isUseGroups

public boolean isUseGroups()

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean


Copyright © 2009. All Rights Reserved.