Examples of processCommit()


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

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

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

    @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()

                public Editor getRootEditor(NodeState before, NodeState after,
                        NodeBuilder builder) {
                    return VisibleEditor.wrap(new IndexConfigWatcher());
                }
            });
            hook.processCommit(current, after);
            current = after;
        } catch (CommitFailedException e) {
            log.warn("IndexTask update failed", e);
        }
    }
View Full Code Here

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

            NodeStoreBranch branch = store.branch();
            NodeState after = branch.getHead();
            try {
                EditorHook hook = new EditorHook(new TypedEditorProvider(
                        provider, type));
                NodeState processed = hook.processCommit(before, after);
                branch.setRoot(processed);
                branch.merge(EmptyHook.INSTANCE);
                before = after;
            } catch (CommitFailedException e) {
                log.warn("IndexTask update failed", e);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexHook("/", builder, server);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexHook("/", builder, server);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexHook("/", builder, server);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexDiff(builder, server, configuration);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexDiff(builder, server, configuration);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexDiff(builder, server, configuration);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
View Full Code Here

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

                    NodeBuilder builder) {
                return new SolrIndexDiff(builder, server, configuration);
            }
        };
        EditorHook hook = new EditorHook(provider);
        NodeState indexed = hook.processCommit(before, after);

        IndexDefinition testDef = new IndexDefinitionImpl("solr",
                "solr", "/oak:index/solr");
        QueryIndex queryIndex = new SolrQueryIndex(testDef, server, configuration);
        FilterImpl filter = new FilterImpl(null, null);
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.