Package org.apache.jackrabbit.spi2jcr

Examples of org.apache.jackrabbit.spi2jcr.BatchReadConfig


     */
    public RepositoryService getRepositoryService() throws RepositoryStubException {
        Repository jackrabbitRepo = super.getRepository();

        // TODO: make configurable
        BatchReadConfig brconfig = new BatchReadConfig();
        brconfig.setDepth(NameConstants.NT_FILE, BatchReadConfig.DEPTH_INFINITE);
        brconfig.setDepth(NameConstants.NT_RESOURCE, BatchReadConfig.DEPTH_INFINITE);

        return new RepositoryServiceImpl(jackrabbitRepo, brconfig);
    }
View Full Code Here


        super(params);
        Object repo = params.get(PARAM_REPOSITORY);
        if (repo == null || !(repo instanceof Repository)) {
            throw new RepositoryException();
        }
        BatchReadConfig brConfig = new BatchReadConfig();
        Object obj = params.get(PARAM_BATCH_READ_CONFIG);
        if (obj != null && obj instanceof BatchReadConfig) {
            brConfig = (BatchReadConfig) obj;
        }
        service = new RepositoryServiceImpl((Repository) repo, brConfig);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi2jcr.BatchReadConfig

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.