Class 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)  
    • 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 interface com.im.df.api.capabilities.IJCUserDetailsService
      • tablesExist

        public boolean tablesExist()
        Specified by:
        tablesExist in interface com.im.df.api.capabilities.IJCUserDetailsService
      • createTables

        public void createTables​(com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        createTables in interface com.im.df.api.capabilities.IJCUserDetailsService
      • deleteTables

        public void deleteTables​(com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        deleteTables in interface com.im.df.api.capabilities.IJCUserDetailsService
      • deleteUser

        public void deleteUser​(String username,
                               com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        deleteUser in interface com.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 interface com.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 interface com.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 interface com.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 interface com.im.df.api.capabilities.IJCUserDetailsService
        Specified by:
        loadUserByUsername in interface org.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 interface com.im.df.api.capabilities.IJCUserDetailsService
      • getAuthorities

        public Map<org.springframework.security.core.GrantedAuthority,​String> getAuthorities()
        Specified by:
        getAuthorities in interface com.im.df.api.capabilities.IJCUserDetailsService
      • getAllUsers

        public List<org.springframework.security.core.userdetails.UserDetails> getAllUsers()
        Specified by:
        getAllUsers in interface com.im.df.api.capabilities.IJCUserDetailsService