Package io.jmix.core.security.impl
Class CurrentUserSubstitutionImpl
java.lang.Object
io.jmix.core.security.impl.CurrentUserSubstitutionImpl
- All Implemented Interfaces:
- CurrentUserSubstitution
@Component("sec_CurrentUserSubstitution")
public class CurrentUserSubstitutionImpl
extends Object
implements CurrentUserSubstitution
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsMethod returns currently authenticated user (the user who actually logged in).org.springframework.security.core.userdetails.UserDetailsMethod returns the substituted user if the substitution happened or authenticated (logged in) user otherwiseorg.springframework.security.core.userdetails.UserDetailsMethod returns the substituted user or null if user substitution didn't happen.
- 
Field Details- 
currentAuthentication
 
- 
- 
Constructor Details- 
CurrentUserSubstitutionImpl
 
- 
- 
Method Details- 
getAuthenticatedUserpublic org.springframework.security.core.userdetails.UserDetails getAuthenticatedUser()Description copied from interface:CurrentUserSubstitutionMethod returns currently authenticated user (the user who actually logged in). The fact of user substitution is not taken into account.- Specified by:
- getAuthenticatedUserin interface- CurrentUserSubstitution
- Returns:
- currently authenticated user
 
- 
getSubstitutedUserpublic org.springframework.security.core.userdetails.UserDetails getSubstitutedUser()Description copied from interface:CurrentUserSubstitutionMethod returns the substituted user or null if user substitution didn't happen.- Specified by:
- getSubstitutedUserin interface- CurrentUserSubstitution
- Returns:
- substituted user or null if user substitution didn't happen
 
- 
getEffectiveUserpublic org.springframework.security.core.userdetails.UserDetails getEffectiveUser()Description copied from interface:CurrentUserSubstitutionMethod returns the substituted user if the substitution happened or authenticated (logged in) user otherwise- Specified by:
- getEffectiveUserin interface- CurrentUserSubstitution
- Returns:
- substituted user if the substitution happened or authenticated (logged in) user otherwise
 
 
-