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

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


            copyPrivileges(builder);
            copyVersionStore(builder, idxToPrefix);
            copyWorkspaces(builder, idxToPrefix);

            // TODO: default hooks?
            CommitHook hook = new CompositeHook(
                    new EditorHook(new GroupEditorProvider()),
                    new EditorHook(new CompositeEditorProvider(
                            new TypeEditorProvider(),
                            new IndexUpdateProvider(new CompositeIndexEditorProvider(
                                    new ReferenceEditorProvider(),
View Full Code Here


            copyPrivileges(builder);
            copyVersionStore(builder, idxToPrefix);
            copyWorkspaces(builder, idxToPrefix);

            // TODO: default hooks?
            CommitHook hook = new CompositeHook(
                    new EditorHook(new GroupEditorProvider()),
                    new EditorHook(new CompositeEditorProvider(
                            new TypeEditorProvider(),
                            new IndexUpdateProvider(new CompositeIndexEditorProvider(
                                    new ReferenceEditorProvider(),
View Full Code Here

        }
    }

    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
View Full Code Here

            copyPrivileges(builder);
            copyVersionStore(builder, idxToPrefix);
            copyWorkspaces(builder, idxToPrefix);

            // TODO: default hooks?
            CommitHook hook = new CompositeHook(
                    new EditorHook(new GroupEditorProvider()),
                    new EditorHook(new CompositeEditorProvider(
                            new TypeEditorProvider(),
                            new IndexUpdateProvider(new CompositeIndexEditorProvider(
                                    new ReferenceEditorProvider(),
View Full Code Here

    }

    public RepositoryImpl(
            MicroKernel kernel, ScheduledExecutorService executor) {
        this(new ContentRepositoryImpl(
                kernel, null, new CompositeHook(
                        new ValidatingHook(DEFAULT_VALIDATOR),
                        new UniqueIndexHook())),
                executor);
    }
View Full Code Here

            MicroKernel kernel = (MicroKernel) service;
            services.put(reference, context.registerService(
                    ContentRepository.class.getName(),
                    new ContentRepositoryImpl(
                            kernel, indexProvider, new CompositeHook(hooks)),
                    new Properties()));
            return service;
        } else {
            context.ungetService(reference);
            return null;
View Full Code Here

        private static CommitHook buildDefaultCommitHook() {
            List<CommitHook> hooks = new ArrayList<CommitHook>();
            hooks.add(new DefaultTypeEditor());
            hooks.add(new ValidatingHook(createDefaultValidatorProvider()));
            hooks.add(new LuceneHook());
            return new CompositeHook(hooks);
        }
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 CompositeHook());
    }
View Full Code Here

        }
        if (hooks.isEmpty()) {
            return after;
        }

        return new CompositeHook(hooks).processCommit(store, before, after);
    }
View Full Code Here

        // MicroKernel mk = new MicroKernelImpl();
        // Indexer indexer = new Indexer(mk);

        PropertyIndexer pi = new PropertyIndexer(indexer);
        QueryIndexProvider qip = new CompositeQueryIndexProvider(pi);
        CompositeHook hook = new CompositeHook(pi);
        return new ContentRepositoryImpl(mk, qip, hook);
    }
View Full Code Here

TOP

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

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.