Examples of BatchReadConfig


Examples of org.apache.jackrabbit.spi2davex.BatchReadConfig

        super(cacheBehaviour, itemCacheSize, pollTimeout);
        service = createService(uri, Collections.EMPTY_MAP);
    }

    private static RepositoryService createService(String uri, Map parameters) throws RepositoryException {
        BatchReadConfig brc = null;
        if (parameters != null) {
            Object param = parameters.get(REPOSITORY_SPI2DAVEX_BATCHREADCONFIG);
            if (param != null && param instanceof BatchReadConfig) {
                brc = (BatchReadConfig) param;
            }
        }
        if (brc == null) {
            brc = new BatchReadConfig() {
                public int getDepth(Path path, PathResolver pathResolver) throws NamespaceException {
                    return 4;
                }
            };
        }
View Full Code Here

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

Examples of org.apache.jackrabbit.spi2jcr.BatchReadConfig

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