Package io.jmix.multitenancyflowui.impl
Class SameTenantUserSubstitutionCandidatePredicate
java.lang.Object
io.jmix.multitenancyflowui.impl.SameTenantUserSubstitutionCandidatePredicate
- All Implemented Interfaces:
UserSubstitutionCandidatePredicate,BiPredicate<org.springframework.security.core.userdetails.UserDetails,org.springframework.security.core.userdetails.UserDetails>
public class SameTenantUserSubstitutionCandidatePredicate
extends Object
implements UserSubstitutionCandidatePredicate
Implementation of
UserSubstitutionCandidatePredicate
that allows user to be substituted by user from the same tenant only.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(org.springframework.security.core.userdetails.UserDetails firstUser, org.springframework.security.core.userdetails.UserDetails secondUser) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Field Details
-
tenantProvider
-
-
Constructor Details
-
SameTenantUserSubstitutionCandidatePredicate
-
-
Method Details
-
test
public boolean test(org.springframework.security.core.userdetails.UserDetails firstUser, org.springframework.security.core.userdetails.UserDetails secondUser) - Specified by:
testin interfaceBiPredicate<org.springframework.security.core.userdetails.UserDetails,org.springframework.security.core.userdetails.UserDetails>
-