Package com.im.df.impl.db.persist
Class IJCUserDetailsServiceImpl
- java.lang.Object
-
- com.im.df.impl.db.persist.IJCUserDetailsServiceImpl
-
- All Implemented Interfaces:
com.im.df.api.capabilities.IJCUserDetailsService
,com.im.df.api.capabilities.SchemaServiceCapability
,com.im.df.api.ddl.DFCapability
,UpdatePasswordServiceProvider
,org.springframework.security.core.userdetails.UserDetailsService
public final class IJCUserDetailsServiceImpl extends Object implements com.im.df.api.capabilities.IJCUserDetailsService, UpdatePasswordServiceProvider
- Author:
- Tim Dudgeon
-
-
Constructor Summary
Constructors Constructor Description IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform)
IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform, com.chemaxon.ijc.db.dao.schema.api.IjcUserDetailsDao dao, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Deprecated.This is only used in pre-6.3 security templates:modules/DIF/src/META-INF/spring/database-built-in-security-template.xml
,modules/DIF/src/META-INF/spring/database-security-template.xml
IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
addUser(String username, String password, boolean enabled, org.springframework.security.core.GrantedAuthority[] authorities, com.im.commons.progress.DFEnvironmentRW env)
void
createTables(com.im.commons.progress.DFEnvironmentRW env)
void
deleteTables(com.im.commons.progress.DFEnvironmentRW env)
void
deleteUser(String username, com.im.commons.progress.DFEnvironmentRW env)
List<org.springframework.security.core.userdetails.UserDetails>
getAllUsers()
Map<org.springframework.security.core.GrantedAuthority,String>
getAuthorities()
com.im.commons.progress.DFLockable
getLockable()
com.im.df.api.capabilities.UpdatePasswordService
getUpdatePasswordService()
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String username)
boolean
tablesExist()
org.springframework.security.core.userdetails.UserDetails
updateAuthorities(String username, org.springframework.security.core.GrantedAuthority[] authorities, com.im.commons.progress.DFEnvironmentRW env)
org.springframework.security.core.userdetails.UserDetails
updateEnabled(String username, boolean enabled, com.im.commons.progress.DFEnvironmentRW env)
org.springframework.security.core.userdetails.UserDetails
updatePassword(String username, String password, com.im.commons.progress.DFEnvironmentRW env)
-
-
-
Constructor Detail
-
IJCUserDetailsServiceImpl
public IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
IJCUserDetailsServiceImpl
public IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform)
-
IJCUserDetailsServiceImpl
@Deprecated public IJCUserDetailsServiceImpl(com.im.commons.db.DatabasePlatform platform, com.chemaxon.ijc.db.dao.schema.api.IjcUserDetailsDao dao, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Deprecated.This is only used in pre-6.3 security templates:modules/DIF/src/META-INF/spring/database-built-in-security-template.xml
,modules/DIF/src/META-INF/spring/database-security-template.xml
-
-
Method Detail
-
addUser
public org.springframework.security.core.userdetails.UserDetails addUser(String username, String password, boolean enabled, org.springframework.security.core.GrantedAuthority[] authorities, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
addUser
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
tablesExist
public boolean tablesExist()
- Specified by:
tablesExist
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
createTables
public void createTables(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
createTables
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
deleteTables
public void deleteTables(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
deleteTables
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
deleteUser
public void deleteUser(String username, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
deleteUser
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
updateEnabled
public org.springframework.security.core.userdetails.UserDetails updateEnabled(String username, boolean enabled, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
updateEnabled
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
updateAuthorities
public org.springframework.security.core.userdetails.UserDetails updateAuthorities(String username, org.springframework.security.core.GrantedAuthority[] authorities, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
updateAuthorities
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
updatePassword
public org.springframework.security.core.userdetails.UserDetails updatePassword(String username, String password, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
updatePassword
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
- Specified by:
loadUserByUsername
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
-
getLockable
public com.im.commons.progress.DFLockable getLockable()
- Specified by:
getLockable
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
getUpdatePasswordService
public com.im.df.api.capabilities.UpdatePasswordService getUpdatePasswordService()
- Specified by:
getUpdatePasswordService
in interfaceUpdatePasswordServiceProvider
-
getAuthorities
public Map<org.springframework.security.core.GrantedAuthority,String> getAuthorities()
- Specified by:
getAuthorities
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
getAllUsers
public List<org.springframework.security.core.userdetails.UserDetails> getAllUsers()
- Specified by:
getAllUsers
in interfacecom.im.df.api.capabilities.IJCUserDetailsService
-
-