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
Constructors Constructor Description AccountUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortalAccessor
getPortalAccessor()
Return 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
-
-
-
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 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
public PortalAccessor 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
public void setPortalAccessor(PortalAccessor portalAccessor)
Set the portal accessor- Parameters:
portalAccessor
- the new portal accessor
-
-