/** * Create a role mapper which is the intersection (logical "and") of the results of this and the given role mapper. * * @param other the other role mapper * @return the intersection role mapper */ default RoleMapper and(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).and(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which is the intersection (logical "and") of the results of this and the given role mapper. * * @param other the other role mapper * @return the intersection role mapper */ default RoleMapper and(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).and(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which is the intersection (logical "and") of the results of this and the given role mapper. * * @param other the other role mapper * @return the intersection role mapper */ default RoleMapper and(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).and(other.mapRoles(rolesToMap)); }
/** * Create a role mapper which is the intersection (logical "and") of the results of this and the given role mapper. * * @param other the other role mapper * @return the intersection role mapper */ default RoleMapper and(RoleMapper other) { Assert.checkNotNullParam("other", other); return rolesToMap -> mapRoles(rolesToMap).and(other.mapRoles(rolesToMap)); }
return () -> roleMapper.or(delegate -> delegate.and(keyRoles));