@Test public void testAccessControlEntries() throws Exception { AccessControlEntry[] entries = acl.getAccessControlEntries(); assertEquals(1, entries.length); assertEquals("kulikov", entries[0].getPrincipal().getName()); }
@Override public AccessControlEntry[] getAccessControlEntries() { AccessControlEntry[] list = new AccessControlEntry[principals.values().size()]; principals.values().toArray(list); return list; }
JcrAccessControlList implements AccessControlList { @Override public AccessControlEntry[] getAccessControlEntries() { AccessControlEntry[] list = new AccessControlEntry[principals.values().size()]; principals.values().toArray(list); return list; } }
JcrAccessControlList implements AccessControlList { @Override public AccessControlEntry[] getAccessControlEntries() { AccessControlEntry[] list = new AccessControlEntry[principals.values().size()]; principals.values().toArray(list); return list; } JcrAccessControlList( String path ); }
JcrAccessControlList implements AccessControlList { @Override public AccessControlEntry[] getAccessControlEntries() { AccessControlEntry[] list = new AccessControlEntry[principals.values().size()]; principals.values().toArray(list); return list; } JcrAccessControlList( String path ); static JcrAccessControlList defaultAcl( AccessControlManagerImpl acm ); boolean isEmpty(); @Override AccessControlEntry[] getAccessControlEntries(); @Override boolean addAccessControlEntry( Principal principal,
                                          Privilege[] privileges ); @Override void removeAccessControlEntry( AccessControlEntry accessControlEntry ); boolean hasPrivileges( SecurityContext sc,
                                  Privilege[] privileges ); Privilege[] getPrivileges( SecurityContext context ); boolean hasEntry( String name ); @Override boolean equals( Object other ); @Override int hashCode(); @Override String toString(); }
JcrAccessControlList implements AccessControlList { @Override public AccessControlEntry[] getAccessControlEntries() { AccessControlEntry[] list = new AccessControlEntry[principals.values().size()]; principals.values().toArray(list); return list; } JcrAccessControlList( String path ); static JcrAccessControlList defaultAcl( AccessControlManagerImpl acm ); boolean isEmpty(); @Override AccessControlEntry[] getAccessControlEntries(); @Override boolean addAccessControlEntry( Principal principal,
                                          Privilege[] privileges ); @Override void removeAccessControlEntry( AccessControlEntry accessControlEntry ); boolean hasPrivileges( SecurityContext sc,
                                  Privilege[] privileges ); Privilege[] getPrivileges( SecurityContext context ); boolean hasEntry( String name ); @Override boolean equals( Object other ); @Override int hashCode(); @Override String toString();  }