Examples of EditorHook


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

            public Editor getRootEditor(NodeState before, NodeState after,
                    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

                    commitHooks.add(ch);
                }
            }
            List<? extends ValidatorProvider> validators = sc.getValidators(workspaceName);
            if (!validators.isEmpty()) {
                commitHooks.add(new EditorHook(CompositeEditorProvider.compose(validators)));
            }
        }
        commitHooks.addAll(postValidationHooks);
        return CompositeHook.compose(commitHooks);
    }
View Full Code Here

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

                                  @Nonnull IndexEditorProvider indexEditor) {
        NodeStoreBranch branch = store.branch();
        NodeState before = branch.getHead();
        branch.setRoot(initializer.initialize(before));
        try {
            branch.merge(new EditorHook(new IndexUpdateProvider(indexEditor)));
        } catch (CommitFailedException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

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

        for (WorkspaceInitializer wspInit : initializer) {
            root = wspInit.initialize(root, workspaceName, indexProvider, commitHook);
        }
        branch.setRoot(root);
        try {
            branch.merge(new EditorHook(new IndexUpdateProvider(indexEditor)));
        } catch (CommitFailedException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

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

            public Editor getRootEditor(NodeState before, NodeState after,
                    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

            public Editor getRootEditor(NodeState before, NodeState after,
                    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

            public Editor getRootEditor(NodeState before, NodeState after,
                    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

            public Editor getRootEditor(NodeState before, NodeState after,
                    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

    private static CommitHook newCommitHook(final String name,
            final PropertyState state) throws CommitFailedException {
        return new CompositeHook(
                new ConflictHook(new AnnotatingConflictHandler()),
                new EditorHook(new ConflictValidatorProvider()),
                new CommitHook() {
            @Override
            @Nonnull
            public NodeState processCommit(NodeState before, NodeState after,
                    CommitInfo info) throws CommitFailedException {
View Full Code Here

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

        addFolder(root, "folder-1");
        addFolder(root, "folder-2");
        addFile(root, "file-1");

        store.merge(root, new EditorHook(new IndexUpdateProvider(
                new PropertyIndexEditorProvider())), CommitInfo.EMPTY);

        NodeState rootState = store.getRoot();
        NodeTypeIndex index = new NodeTypeIndex();
        FilterImpl filter;
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.