Class SpringSecurityUserDaoImpl
- java.lang.Object
- 
- org.opennms.web.springframework.security.SpringSecurityUserDaoImpl
 
- 
- All Implemented Interfaces:
- SpringSecurityUserDao,- org.springframework.beans.factory.InitializingBean
 
 public class SpringSecurityUserDaoImpl extends java.lang.Object implements SpringSecurityUserDao, org.springframework.beans.factory.InitializingBean Implements the interface to allow the servlet container to check our users.xml file to authenticate users.- Author:
- Lawrence Karnowski, Eric Molitor, Alejandro Galue
 
- 
- 
Field Summary- 
Fields inherited from interface org.opennms.web.springframework.security.SpringSecurityUserDaoROLE_USER
 
- 
 - 
Constructor SummaryConstructors Constructor Description SpringSecurityUserDaoImpl()Instantiates a new spring security user DAO implementation.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthoritiesByUsername(java.lang.String username)Gets the authorities by username.protected org.springframework.security.core.GrantedAuthoritygetAuthority(java.lang.String role)Gets the authority.SpringSecurityUsergetByUsername(java.lang.String username)getByUsernameUserManagergetUserManager()Gets the user manager.java.lang.StringgetUsersConfigurationFile()Gets the users configuration file.longgetUsersLastModified()Gets the users last modified.voidsetUserManager(UserManager mgr)Sets the user manager.voidsetUsersConfigurationFile(java.lang.String usersConfigurationFile)Sets the users configuration file.
 
- 
- 
- 
Method Detail- 
getAuthorityprotected org.springframework.security.core.GrantedAuthority getAuthority(java.lang.String role) Gets the authority.- Parameters:
- role- the role
- Returns:
- the authority
 
 - 
getAuthoritiesByUsernameprotected java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthoritiesByUsername(java.lang.String username) Gets the authorities by username.- Parameters:
- username- the username
- Returns:
- the authorities by username
 
 - 
setUsersConfigurationFilepublic void setUsersConfigurationFile(java.lang.String usersConfigurationFile) Sets the users configuration file.- Parameters:
- usersConfigurationFile- the new users configuration file
 
 - 
getUsersConfigurationFilepublic java.lang.String getUsersConfigurationFile() Gets the users configuration file.- Returns:
- the users configuration file
 
 - 
getByUsernamepublic SpringSecurityUser getByUsername(java.lang.String username) Description copied from interface:SpringSecurityUserDaogetByUsername - Specified by:
- getByUsernamein interface- SpringSecurityUserDao
- Parameters:
- username- a- Stringobject.
- Returns:
- a OnmsUserobject.
 
 - 
getUsersLastModifiedpublic long getUsersLastModified() Gets the users last modified.- Returns:
- the users last modified
 
 - 
getUserManagerpublic UserManager getUserManager() Gets the user manager.- Returns:
- the user manager
 
 - 
setUserManagerpublic void setUserManager(UserManager mgr) Sets the user manager.- Parameters:
- mgr- the new user manager
 
 - 
afterPropertiesSetpublic void afterPropertiesSet() - Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
 
- 
 
-