AbstractAccessControlManager implements JackrabbitAccessControlManager, AccessControlConstants { @NotNull @Override public Privilege privilegeFromName(@NotNull String privilegeName) throws RepositoryException { return privilegeManager.getPrivilege(privilegeName); } protected  AbstractAccessControlManager(@NotNull Root root,
                                           @NotNull NamePathMapper namePathMapper,
                                           @NotNull SecurityProvider securityProvider); @NotNull @Override Privilege[] getSupportedPrivileges(@Nullable String absPath); @NotNull @Override Privilege privilegeFromName(@NotNull String privilegeName); @Override boolean hasPrivileges(@Nullable String absPath, @Nullable Privilege[] privileges); @NotNull @Override Privilege[] getPrivileges(@Nullable String absPath); @Override boolean hasPrivileges(@Nullable String absPath, @NotNull Set<Principal> principals, @Nullable Privilege[] privileges); @NotNull @Override Privilege[] getPrivileges(@Nullable String absPath, @NotNull Set<Principal> principals);  }
@Test public void testPrivilegeFromName() throws Exception { List<Privilege> allPrivileges = Arrays.asList(privilegeManager.getRegisteredPrivileges()); for (Privilege privilege : allPrivileges) { Privilege p = acMgr.privilegeFromName(privilege.getName()); assertEquals(privilege, p); } }