public boolean contains(final S schema) { if (forSelfContains(schema)) { return true; } return forMembershipsContains(schema); }
public boolean contains(final String schema) { if (forSelfContains(schema)) { return true; } return forMembershipsContains(schema); }
@Override public List<String> getValues(final Any<?> any, final VirSchema schema) { if (!anyUtilsFactory.getInstance(any).dao(). findAllowedSchemas(any, VirSchema.class).forSelfContains(schema)) { LOG.debug("{} not allowed for {}", schema, any); return Collections.emptyList(); } List<String> result = getValues(any, Collections.singleton(schema)).get(schema); return result == null ? Collections.emptyList() : result; }
@Override public String getValue(final Any<?> any, final DerSchema schema) { if (!anyUtilsFactory.getInstance(any).dao(). findAllowedSchemas(any, DerSchema.class).forSelfContains(schema)) { LOG.debug("{} not allowed for {}", schema, any); return null; } return getValues(any, Collections.singleton(schema)).get(schema); }
if (attr != null && !allowedPlainSchemas.forSelfContains(attr.getSchema().getKey())) { return raiseNotAllowedViolation(context, attr.getSchema().getKey(), null);