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

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


        List<ValidatorProvider> providers = new ArrayList<ValidatorProvider>();
        providers.add(new NameValidatorProvider());
        providers.add(new NamespaceValidatorProvider());
        providers.add(new TypeValidatorProvider());
        providers.add(new ConflictValidatorProvider());
        return new CompositeValidatorProvider(providers);
    }
View Full Code Here


            List<ValidatorProvider> providers = new ArrayList<ValidatorProvider>();
            providers.add(new NameValidatorProvider());
            providers.add(new NamespaceValidatorProvider());
            providers.add(new TypeValidatorProvider());
            providers.add(new ConflictValidatorProvider());
            return new CompositeValidatorProvider(providers);
        }
View Full Code Here

        List<ValidatorProvider> providers = new ArrayList<ValidatorProvider>();
        providers.add(new NameValidatorProvider());
        providers.add(new NamespaceValidatorProvider());
        providers.add(new TypeValidatorProvider());
        providers.add(new ConflictValidatorProvider());
        return new CompositeValidatorProvider(providers);
    }
View Full Code Here

        List<ValidatorProvider> providers = new ArrayList<ValidatorProvider>();
        providers.add(new NameValidatorProvider());
        providers.add(new NamespaceValidatorProvider());
        providers.add(new TypeValidatorProvider());
        providers.add(new ConflictValidatorProvider());
        return new CompositeValidatorProvider(providers);
    }
View Full Code Here

     * 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

    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

    //------------------------------------------------------------< ValidatorProvider >---

    @Override
    public Validator getRootValidator(NodeState before, NodeState after) {
        return new CompositeValidatorProvider(providers.values())
                .getRootValidator(before, after);
    }
View Full Code Here

            providers.add(new PermissionValidatorProvider());
            providers.add(new AccessControlValidatorProvider());
            // FIXME: retrieve from user context
            providers.add(new UserValidatorProvider(new UserConfig("admin")));
            providers.add(new PrivilegeValidatorProvider());
            return new CompositeValidatorProvider(providers);
        }
View Full Code Here

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

        // return new RepositoryImpl();

        mk = new IndexWrapper(mk);
        ValidatingHook ve =  new ValidatingHook(
                new CompositeValidatorProvider(Collections.<ValidatorProvider>emptyList()));
        ContentRepository contentRepository = new ContentRepositoryImpl(mk, null, ve);
        return new RepositoryImpl(contentRepository, null);

    }
View Full Code Here

TOP

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

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.