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 Summary
Modifier and TypeMethodDescriptionList<org.springframework.security.core.userdetails.UserDetails>
List<org.springframework.security.core.userdetails.UserDetails>
getSubstitutedUsers
(String username, Date date) void
substituteUser
(String substitutedUserName) Performs user substitution
-
Method Details
-
getCurrentSubstitutedUsers
List<org.springframework.security.core.userdetails.UserDetails> getCurrentSubstitutedUsers()- Returns:
- users which can be substituted by the currently authenticated user at the current time
-
getSubstitutedUsers
List<org.springframework.security.core.userdetails.UserDetails> getSubstitutedUsers(String username, Date date) - Returns:
- users which can be substituted by user with specified
username
at the givendate
-
substituteUser
Performs user substitution- Throws:
IllegalArgumentException
- if current user isn't allowed to substitute user with specified name
-