@Test public void testManagedAclFull() { String json = JsonConv.full(macl).toJson(); logger.info(json); JsonPath jp = from(json); assertEquals(4, ((Map) jp.get()).size()); assertEquals(new Integer(1), jp.get("id")); assertEquals("default_org", jp.get("organizationId")); assertEquals("Public", jp.get("name")); assertEquals(1, ((List) jp.get("acl.ace")).size()); }
public static Obj full(ManagedAcl acl) { return obj(p(KEY_ID, acl.getId()), p(KEY_NAME, acl.getName()), p(KEY_ORGANIZATION_ID, acl.getOrganizationId()), p(KEY_ACL, full(acl.getAcl()))); }
JsonConv { public static Obj full(ManagedAcl acl) { return obj(p(KEY_ID, acl.getId()), p(KEY_NAME, acl.getName()), p(KEY_ORGANIZATION_ID, acl.getOrganizationId()), p(KEY_ACL, full(acl.getAcl()))); } }
JsonConv { public static Obj full(ManagedAcl acl) { return obj(p(KEY_ID, acl.getId()), p(KEY_NAME, acl.getName()), p(KEY_ORGANIZATION_ID, acl.getOrganizationId()), p(KEY_ACL, full(acl.getAcl()))); } private  JsonConv(); }
JsonConv { public static Obj full(ManagedAcl acl) { return obj(p(KEY_ID, acl.getId()), p(KEY_NAME, acl.getName()), p(KEY_ORGANIZATION_ID, acl.getOrganizationId()), p(KEY_ACL, full(acl.getAcl()))); } private  JsonConv(); static Obj digest(ManagedAcl acl); static Obj full(ManagedAcl acl); static Obj full(AccessControlList acl); static Obj full(AccessControlEntry ace); }
JsonConv { public static Obj full(ManagedAcl acl) { return obj(p(KEY_ID, acl.getId()), p(KEY_NAME, acl.getName()), p(KEY_ORGANIZATION_ID, acl.getOrganizationId()), p(KEY_ACL, full(acl.getAcl()))); } private  JsonConv(); static Obj digest(ManagedAcl acl); static Obj full(ManagedAcl acl); static Obj full(AccessControlList acl); static Obj full(AccessControlEntry ace); static final String KEY_ID; static final String KEY_NAME; static final String KEY_ORGANIZATION_ID; static final String KEY_ACL; static final String KEY_ACE; static final String KEY_ROLE; static final String KEY_ACTION; static final String KEY_ALLOW; static final Function<ManagedAcl, Val> fullManagedAcl; static final Function<AccessControlEntry, Val> fullAccessControlEntry; }