Examples of processCommit()


Examples of org.apache.jackrabbit.oak.spi.commit.CommitHook.processCommit()

    @Override
    public NodeState merge() throws CommitFailedException {
        NodeState oldRoot = base;
        CommitHook commitHook = store.getHook();
        NodeState toCommit = commitHook.processCommit(store, oldRoot, currentRoot);
        setRoot(toCommit);

        try {
            if (branchRevision == null) {
                // Nothing was written to this branch: return initial node state.
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.CommitHook.processCommit()

    @Override
    public NodeState merge() throws CommitFailedException {
        checkNotMerged();
        CommitHook commitHook = store.getHook();
        NodeState toCommit = commitHook.processCommit(base, head);
        NodeState oldRoot = head;
        setRoot(toCommit);

        try {
            if (headRevision == null) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        NodeBuilder builder = root.builder();

        NodeState before = builder.getNodeState();
        builder.child(":hidden");
        NodeState after = builder.getNodeState();
        hook.processCommit(before, after);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        hook.processCommit(before, after);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after);

        before = after;
        builder.getChildNode(":hidden").remove();
        after = builder.getNodeState();
        hook.processCommit(before, after);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        hook.processCommit(before, after);

        before = after;
        builder.getChildNode(":hidden").remove();
        after = builder.getNodeState();
        hook.processCommit(before, after);
    }

    @Test
    public void removeNonMandatoryProperty() throws CommitFailedException {
        EffectiveType effective = createControl().createMock(EffectiveType.class);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        NodeBuilder builder = root.builder();

        NodeState before = builder.getNodeState();
        builder.child(":hidden");
        NodeState after = builder.getNodeState();
        hook.processCommit(before, after);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        hook.processCommit(before, after);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after);

        before = after;
        builder.getChildNode(":hidden").remove();
        after = builder.getNodeState();
        hook.processCommit(before, after);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        hook.processCommit(before, after);

        before = after;
        builder.getChildNode(":hidden").remove();
        after = builder.getNodeState();
        hook.processCommit(before, after);
    }

    @Test
    public void removeNonMandatoryProperty() throws CommitFailedException {
        EffectiveType effective = createControl().createMock(EffectiveType.class);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        NodeBuilder builder = root.builder();

        NodeState before = builder.getNodeState();
        builder.child(":hidden");
        NodeState after = builder.getNodeState();
        hook.processCommit(before, after, CommitInfo.EMPTY);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after, CommitInfo.EMPTY);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit()

        hook.processCommit(before, after, CommitInfo.EMPTY);

        before = after;
        builder.child(":hidden").setProperty("prop", "value");
        after = builder.getNodeState();
        hook.processCommit(before, after, CommitInfo.EMPTY);

        before = after;
        builder.getChildNode(":hidden").remove();
        after = builder.getNodeState();
        hook.processCommit(before, after, CommitInfo.EMPTY);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.