test_class.declarator: privilegeManager
test_class.modifier: private
test_class.original_string: private PrivilegeManager privilegeManager;
test_class.type: PrivilegeManager
test_class.var_name: privilegeManager
test_class.declarator: newPrivilege
test_class.modifier: private
test_class.original_string: private Privilege newPrivilege;
test_class.type: Privilege
test_class.var_name: newPrivilege
test_class.declarator: hook = new JcrAllCommitHook()
test_class.modifier: private final
test_class.original_string: private final JcrAllCommitHook hook = new JcrAllCommitHook();
test_class.type: JcrAllCommitHook
test_class.var_name: hook
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/privilege/JcrAllCommitHookTest.java
test_class.identifier: JcrAllCommitHookTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testJcrAllNodeAlreadyContainsNewName() {
          NodeState before = getTreeProvider().asNodeState(root.getTree(PathUtils.ROOT_PATH));
  
          Root r = adminSession.getLatestRoot();
          Tree t = r.getTree(PRIVILEGES_PATH);
          Tree jcrAll = t.getChild(JCR_ALL);
          jcrAll.setProperty(REP_AGGREGATES, ImmutableList.of("newPriv"), Type.NAMES);
          t.addChild("newPriv");
          NodeState after = getTreeProvider().asNodeState(r.getTree(PathUtils.ROOT_PATH));
          hook.processCommit(before, after, null);
      }
test_case.class_method_signature: JcrAllCommitHookTest.testJcrAllNodeAlreadyContainsNewName()
test_case.full_signature: @Test public void testJcrAllNodeAlreadyContainsNewName()
test_case.identifier: testJcrAllNodeAlreadyContainsNewName
test_case.invocations: asNodeState getTreeProvider getTree getLatestRoot getTree getChild setProperty of addChild asNodeState getTreeProvider getTree processCommit
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testJcrAllNodeAlreadyContainsNewName()
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/JcrAllCommitHook.java
focal_class.identifier: JcrAllCommitHook
focal_class.interfaces: implements PostValidationHook, PrivilegeConstants
focal_class.class_method_signature: JcrAllCommitHook.processCommit(
              NodeState before, NodeState after, CommitInfo info)
focal_class.full_signature: @NotNull @Override public NodeState processCommit(
              NodeState before, NodeState after, CommitInfo info)
focal_class.identifier: processCommit
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (
              NodeState before, NodeState after, CommitInfo info)
focal_class.return: NodeState
focal_class.signature: NodeState processCommit(
              NodeState before, NodeState after, CommitInfo info)
focal_class.class_method_signature: JcrAllCommitHook.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @NotNull
      @Override
      public NodeState processCommit(
              NodeState before, NodeState after, CommitInfo info) {
          NodeBuilder builder = after.builder();
          after.compareAgainstBaseState(before, new PrivilegeDiff(null, null, builder));
          return builder.getNodeState();
      }
focal_method.class_method_signature: JcrAllCommitHook.processCommit(
              NodeState before, NodeState after, CommitInfo info)
focal_method.full_signature: @NotNull @Override public NodeState processCommit(
              NodeState before, NodeState after, CommitInfo info)
focal_method.identifier: processCommit
focal_method.invocations: builder compareAgainstBaseState getNodeState
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: (
              NodeState before, NodeState after, CommitInfo info)
focal_method.return: NodeState
focal_method.signature: NodeState processCommit(
              NodeState before, NodeState after, CommitInfo info)