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

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


        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder),
                new VersionStorageEditor(versionStorage, builder)));
    }
View Full Code Here


            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 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

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder, info),
                new SubtreeEditor(
                        new VersionStorageEditor(versionStorage, builder),
                            JCR_SYSTEM, JCR_VERSIONSTORAGE)));
    }
View Full Code Here

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder, info),
                new VersionStorageEditor(versionStorage, builder)));
    }
View Full Code Here

TOP

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

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.