@SuppressWarnings("unchecked") public Collection<ACL> getACLs() { Map<String, Object> context = new HashMap<String, Object>(); context.put("resource", "ALL"); return (Collection<ACL>) this.registration.getPolicy(null, PolicyRegistration.ACL, context); }
public ACL getACL(Resource resource) { String resourceString = Util.getResourceAsString(resource); Map<String, Object> context = new HashMap<String, Object>(); context.put("resource", resourceString); return (ACL) this.registration.getPolicy(null, PolicyRegistration.ACL, context); }