Package com.avoka.fc.core.security
Class AccountUserDetailsService
java.lang.Object
com.avoka.fc.core.security.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn aPortalAccessor
object that can be used to retrieve the SmartForm Manager portal that the service is running inorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) Return the user details for a TM user with the given login name.void
setPortalAccessor
(PortalAccessor portalAccessor) Set the portal accessor
-
Constructor Details
-
AccountUserDetailsService
public AccountUserDetailsService()
-
-
Method Details
-
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 interfaceorg.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
Return aPortalAccessor
object that can be used to retrieve the SmartForm Manager portal that the service is running in- Returns:
- the portal accessor
-
setPortalAccessor
Set the portal accessor- Parameters:
portalAccessor
- the new portal accessor
-