Examples of processCommit()


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.removeChildNode(":hidden");
        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.removeChildNode(":hidden");
        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()

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        checkPathExists(indexed, INDEX_DEFINITIONS_NAME, "rootIndex",
                INDEX_CONTENT_NODE_NAME);
        checkPathExists(indexed, "newchild", "other", INDEX_DEFINITIONS_NAME,
View Full Code Here

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

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, INDEX_DEFINITIONS_NAME,
                "rootIndex");
        checkPathExists(ns, INDEX_CONTENT_NODE_NAME);
View Full Code Here

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

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, INDEX_DEFINITIONS_NAME,
                "rootIndex");
        checkPathExists(ns, INDEX_CONTENT_NODE_NAME);
View Full Code Here

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

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // check that the index content nodes exist
        checkPathExists(indexed, INDEX_DEFINITIONS_NAME, "existing",
                INDEX_CONTENT_NODE_NAME);
        checkPathExists(indexed, "test", "other", INDEX_DEFINITIONS_NAME,
View Full Code Here

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

                "rootIndex", true, false, ImmutableSet.of("foo"), null);
        builder.child(INDEX_DEFINITIONS_NAME).child("azerty");
        builder.child("testRoot").setProperty("foo", "abc");
        NodeState after = builder.getNodeState();

        NodeState indexed = hook.processCommit(before, after, CommitInfo.EMPTY);
        NodeState rootIndex = checkPathExists(indexed, INDEX_DEFINITIONS_NAME,
                "rootIndex");
        PropertyState ps = rootIndex.getProperty(REINDEX_PROPERTY_NAME);
        assertNotNull(ps);
        assertTrue(ps.getValue(Type.BOOLEAN));
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.