Package io.jmix.core.usersubstitution
Interface UserSubstitutionManager
- All Known Implementing Classes:
- UserSubstitutionManagerImpl
public interface UserSubstitutionManager
Interface is used for getting possible substituted users and for performing the substitution operation.
- 
Method SummaryModifier and TypeMethodDescriptionList<org.springframework.security.core.userdetails.UserDetails>List<org.springframework.security.core.userdetails.UserDetails>getSubstitutedUsers(String username, Date date) voidsubstituteUser(String substitutedUserName) Performs user substitution
- 
Method Details- 
getCurrentSubstitutedUsersList<org.springframework.security.core.userdetails.UserDetails> getCurrentSubstitutedUsers()- Returns:
- users which can be substituted by the currently authenticated user at the current time
 
- 
getSubstitutedUsersList<org.springframework.security.core.userdetails.UserDetails> getSubstitutedUsers(String username, Date date) - Returns:
- users which can be substituted by user with specified usernameat the givendate
 
- 
substituteUserPerforms user substitution- Throws:
- IllegalArgumentException- if current user isn't allowed to substitute user with specified name
 
 
-