/** * Create a role mapper which contains all the roles mapped by this mapper, minus the roles mapped by the given * role mapper. * * @param other the other role mapper * @return the difference role mapper */ default RoleMapper minus(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).minus(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which contains all the roles mapped by this mapper, minus the roles mapped by the given * role mapper. * * @param other the other role mapper * @return the difference role mapper */ default RoleMapper minus(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).minus(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which contains all the roles mapped by this mapper, minus the roles mapped by the given * role mapper. * * @param other the other role mapper * @return the difference role mapper */ default RoleMapper minus(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).minus(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which contains all the roles mapped by this mapper, minus the roles mapped by the given * role mapper. * * @param other the other role mapper * @return the difference role mapper */ default RoleMapper minus(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).minus(other.mapRoles(rolesToMap)); }
return () -> roleMapper.or(delegate -> delegate.minus(keyRoles));