private Boolean isAccessible(AbstractMetadataRecord record, CommandContext commandContext, PermissionType action) { Boolean result = commandContext.isAccessible(record); if (result != null) { return result; } HashSet<String> resources = new HashSet<String>(2); resources.add(record.getFullName()); return this.policyDecider.getInaccessibleResources(action, resources, Context.METADATA, commandContext).isEmpty(); }
private Boolean isAccessible(AbstractMetadataRecord record, CommandContext commandContext, PermissionType action) { Boolean result = commandContext.isAccessible(record); if (result != null) { return result; } HashSet<String> resources = new HashSet<String>(2); resources.add(record.getFullName()); return this.policyDecider.getInaccessibleResources(action, resources, Context.METADATA, commandContext).isEmpty(); }
/** * Out of the resources specified, return the subset for which the specified not have authorization to access. */ public Set<String> getInaccessibleResources(DataPolicy.PermissionType action, Set<String> resources, Context context) { logRequest(resources, context); Set<String> results = decider.getInaccessibleResources(action, resources, context, commandContext); logResult(resources, context, results.isEmpty()); return results; }
/** * Out of the resources specified, return the subset for which the specified not have authorization to access. */ public Set<String> getInaccessibleResources(DataPolicy.PermissionType action, Set<String> resources, Context context) { logRequest(resources, context); Set<String> results = decider.getInaccessibleResources(action, resources, context, commandContext); logResult(resources, context, results.isEmpty()); return results; }
/** * Out of the resources specified, return the subset for which the specified not have authorization to access. */ public Set<String> getInaccessibleResources(DataPolicy.PermissionType action, Set<String> resources, Context context) { logRequest(resources, context); Set<String> results = decider.getInaccessibleResources(action, resources, context, commandContext); logResult(resources, context, results.isEmpty()); return results; }
result = this.policyDecider.getInaccessibleResources(action, resources, Context.METADATA, commandContext).isEmpty(); commandContext.setAccessible(record, result); return result;
Set<String> results = this.policyDecider.getInaccessibleResources(PermissionType.READ, map.keySet(), Context.QUERY, commandContext); if (!results.isEmpty()) {
Set<String> results = this.policyDecider.getInaccessibleResources(PermissionType.READ, map.keySet(), Context.QUERY, commandContext); if (!results.isEmpty()) {
Set<String> results = this.policyDecider.getInaccessibleResources(PermissionType.READ, map.keySet(), Context.QUERY, commandContext); if (!results.isEmpty()) {