Examples of EditorProvider


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

     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Editor editor) {
        checkNotNull(editor);
        return with(new EditorProvider() {
            @Override @Nonnull
            public Editor getRootEditor(
                    NodeState before, NodeState after, NodeBuilder builder) {
                return editor;
            }
View Full Code Here

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

    @Override
    @CheckForNull
    public Editor getRootEditor(
            NodeState before, NodeState after, NodeBuilder builder)
            throws CommitFailedException {
        EditorProvider provider =
                CompositeEditorProvider.compose(getServices());
        return provider.getRootEditor(before, after, builder);
    }
View Full Code Here

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

     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Editor editor) {
        checkNotNull(editor);
        return with(new EditorProvider() {
            @Override @Nonnull
            public Editor getRootEditor(
                    NodeState before, NodeState after, NodeBuilder builder) {
                return editor;
            }
View Full Code Here

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

     */
    private CommitHook getCommitHook(@Nullable final String path) {
        List<CommitHook> hooks = newArrayList();

        if (path != null) {
            hooks.add(new EditorHook(new EditorProvider() {
                @Override
                public Editor getRootEditor(NodeState before, NodeState after, NodeBuilder builder) {
                    return new ItemSaveValidator(path);
                }
            }));
View Full Code Here

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

     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Editor editor) {
        checkNotNull(editor);
        return with(new EditorProvider() {
            @Override @Nonnull
            public Editor getRootEditor(
                    NodeState before, NodeState after, NodeBuilder builder) {
                return editor;
            }
View Full Code Here

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

    public void save(final String path) throws RepositoryException {
        if (denotesRoot(path)) {
            save();
        } else {
            try {
                root.commit(new EditorHook(new EditorProvider() {
                    @Override
                    public Editor getRootEditor(NodeState before, NodeState after, NodeBuilder builder) {
                        return new ItemSaveValidator(path);
                    }
                }));
View Full Code Here

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

     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Editor editor) {
        checkNotNull(editor);
        return with(new EditorProvider() {
            @Override @Nonnull
            public Editor getRootEditor(
                    NodeState before, NodeState after,
                    NodeBuilder builder, CommitInfo info) {
                return editor;
View Full Code Here

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

     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Editor editor) {
        checkNotNull(editor);
        return with(new EditorProvider() {
            @Override @Nonnull
            public Editor getRootEditor(
                    NodeState before, NodeState after, NodeBuilder builder) {
                return editor;
            }
View Full Code Here

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

    @Override
    public void run() {
        log.debug("Running background index config watcher task");
        NodeState after = store.getRoot();
        try {
            EditorHook hook = new EditorHook(new EditorProvider() {
                @Override
                public Editor getRootEditor(NodeState before, NodeState after,
                        NodeBuilder builder) {
                    return VisibleEditor.wrap(new IndexConfigWatcher());
                }
View Full Code Here

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

        NodeState before = builder.getNodeState();
        builder.child("newnode").setProperty("prop", "val");
        NodeState after = builder.getNodeState();

        EditorProvider provider = new EditorProvider() {
            @Override
            public Editor getRootEditor(NodeState before, NodeState after,
                    NodeBuilder builder) {
                return new SolrIndexHook("/", builder, server);
            }
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.