Examples of EmptyEditor


Examples of org.apache.jackrabbit.oak.spi.commit.EmptyEditor

        state = createInitialState(microKernel);
    }

    protected CommitEditor createCommitEditor() {
        return new EmptyEditor();
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EmptyEditor

        testBuilder.removeNode("a");

        rootBuilder.setNode("test", testBuilder.getNodeState());
        final NodeState newRoot = rootBuilder.getNodeState();

        commitWithEditor(newRoot, new EmptyEditor() {
// TODO: OAK-153 - use the Observer interface to observe content changes
//            @Override
//            public void afterCommit(NodeStore store, NodeState before, NodeState after) {
//                assertNull(before.getChildNode("test").getChildNode("newNode"));
//                assertNotNull(after.getChildNode("test").getChildNode("newNode"));
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EmptyEditor

        testBuilder.removeNode("a");

        rootBuilder.setNode("test", testBuilder.getNodeState());
        final NodeState newRoot = rootBuilder.getNodeState();

        commitWithEditor(newRoot, new EmptyEditor() {
            @Override
            public NodeState editCommit(NodeStore store, NodeState before, NodeState after) {
                NodeStateBuilder rootBuilder = store.getBuilder(after);
                NodeStateBuilder testBuilder = store.getBuilder(after.getChildNode("test"));
                testBuilder.setNode("fromHook", MemoryNodeState.EMPTY_NODE);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.EmptyEditor

            NodeStoreBranch branch = store.branch();
            branch.setRoot(nodeState);
            branch.merge();
        }
        finally {
            commitHookDelegate.set(new EmptyEditor());
        }
    }
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.