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 Details

  • Constructor Details

    • SameTenantUserSubstitutionCandidatePredicate

      public SameTenantUserSubstitutionCandidatePredicate(TenantProvider tenantProvider)
  • Method Details

    • test

      public boolean test(org.springframework.security.core.userdetails.UserDetails firstUser, org.springframework.security.core.userdetails.UserDetails secondUser)
      Specified by:
      test in interface BiPredicate<org.springframework.security.core.userdetails.UserDetails,org.springframework.security.core.userdetails.UserDetails>