Package org.apache.jackrabbit.oak.spi.commit

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


        state = createInitialState(microKernel);
    }

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


        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

        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

            NodeStoreBranch branch = store.branch();
            branch.setRoot(nodeState);
            branch.merge();
        }
        finally {
            commitHookDelegate.set(new EmptyEditor());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.commit.EmptyEditor

Copyright © 2018 www.massapicom. 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.