Class AccountUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

    public class AccountUserDetailsService
    extends Object
    implements org.springframework.security.core.userdetails.UserDetailsService
    Provides a service class to access user details.
    • Constructor Detail

      • AccountUserDetailsService

        public AccountUserDetailsService()
    • Method Detail

      • loadUserByUsername

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(String username)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Return the user details for a TM user with the given login name. The user must be associated with the current TM portal.
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Parameters:
        username - the user name
        Returns:
        a UserDetails object wrapping the TM user account
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException - if no TM user account with access to the current portal and a matching login name exists
        See Also:
        UserDetailsService.loadUserByUsername(String), org.springframework.security.AccountUserDetailsService.UserDetailsService#loadUserByUsername(String)
      • getPortalAccessor

        public PortalAccessor getPortalAccessor()
        Return a PortalAccessor object that can be used to retrieve the SmartForm Manager portal that the service is running in
        Returns:
        the portal accessor
      • setPortalAccessor

        public void setPortalAccessor​(PortalAccessor portalAccessor)
        Set the portal accessor
        Parameters:
        portalAccessor - the new portal accessor