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

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


        if (validatorProvider == null) {
            validatorProvider = createDefaultValidatorProvider();
        }

        List<CommitEditor> editors = new ArrayList<CommitEditor>();
        editors.add(new ValidatingEditor(validatorProvider));
        CompositeEditor editor = new CompositeEditor(editors);

        nodeStore = new KernelNodeStore(microKernel, editor);
        QueryIndexProvider qip = (indexProvider == null) ? getDefaultIndexProvider(microKernel) : indexProvider;
        queryEngine = new QueryEngineImpl(nodeStore, microKernel, qip);
View Full Code Here


        }

        private static CommitEditor buildDefaultCommitEditor() {
            List<CommitEditor> editors = new ArrayList<CommitEditor>();
            editors.add(new DefaultTypeEditor());
            editors.add(new ValidatingEditor(createDefaultValidatorProvider()));
            editors.add(new LuceneEditor());
            return new CompositeEditor(editors);
        }
View Full Code Here

    }

    private static CommitEditor buildDefaultCommitEditor() {
        List<CommitEditor> editors = new ArrayList<CommitEditor>();
        editors.add(new DefaultTypeEditor());
        editors.add(new ValidatingEditor(createDefaultValidatorProvider()));
        editors.add(new LuceneEditor());
        return new CompositeEditor(editors);
    }
View Full Code Here

public class RepositoryTestUtils {

    public static CommitEditor buildDefaultCommitEditor() {
        List<CommitEditor> editors = new ArrayList<CommitEditor>();
        editors.add(new DefaultTypeEditor());
        editors.add(new ValidatingEditor(createDefaultValidatorProvider()));
        editors.add(new LuceneEditor());
        return new CompositeEditor(editors);
    }
View Full Code Here

     * Utility constructor that creates a new in-memory repository with default
     * query index provider. This constructor is intended to be used within
     * test cases only.
     */
    public ContentRepositoryImpl() {
        this(new MicroKernelImpl(), null, new ValidatingEditor(
                new CompositeValidatorProvider(
                        Collections.<ValidatorProvider> emptyList())));
        // this(new IndexWrapper(new MicroKernelImpl()), null, null);
    }
View Full Code Here

     *            the validation provider
     */
    public ContentRepositoryImpl(MicroKernel microKernel,
            QueryIndexProvider indexProvider,
            ValidatorProvider validatorProvider) {
        this(microKernel, indexProvider, new ValidatingEditor(
                validatorProvider != null ? validatorProvider
                        : new CompositeValidatorProvider(
                                Collections.<ValidatorProvider> emptyList())));
    }
View Full Code Here

TOP

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

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.