Examples of createRepository()


Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            ServletHolder holder =
                    new ServletHolder(new OakServlet(repository));
            context.addServlet(holder, path + "/*");

            final Repository jcrRepository = jcr.createRepository();

            ServletHolder webdav =
                    new ServletHolder(new SimpleWebdavServlet() {
                        @Override
                        public Repository getRepository() {
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

        } else {
            securityProvider = new SecurityProviderImpl();
        }
        Jcr jcr = new Jcr();
        jcr.with(securityProvider);
        repo = jcr.createRepository();
        adminSession = repo.login(new SimpleCredentials(UserConstants.DEFAULT_ADMIN_ID, UserConstants.DEFAULT_ADMIN_ID.toCharArray()));

        if (!(adminSession instanceof JackrabbitSession)) {
            throw new NotExecutableException();
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            ServletHolder holder =
                    new ServletHolder(new OakServlet(repository));
            context.addServlet(holder, path + "/*");

            final Repository jcrRepository = jcr.createRepository();

            ServletHolder webdav =
                    new ServletHolder(new SimpleWebdavServlet() {
                        @Override
                        public Repository getRepository() {
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            ContentRepository repository = oak.createContentRepository();
            ServletHolder holder = new ServletHolder(new OakServlet(repository));
            context.addServlet(holder, path + "/*");

            // 2 - Webdav Server on JCR repository
            final Repository jcrRepository = jcr.createRepository();
            ServletHolder webdav = new ServletHolder(new SimpleWebdavServlet() {
                @Override
                public Repository getRepository() {
                    return jcrRepository;
                }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            ContentRepository repository = oak.createContentRepository();
            ServletHolder holder = new ServletHolder(new OakServlet(repository));
            context.addServlet(holder, path + "/*");

            // 2 - Webdav Server on JCR repository
            final Repository jcrRepository = jcr.createRepository();
            ServletHolder webdav = new ServletHolder(new SimpleWebdavServlet() {
                @Override
                public Repository getRepository() {
                    return jcrRepository;
                }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            SecurityProvider securityProvider = new SecurityProviderImpl(config);
            String dir = "target/mk-tck-" + System.currentTimeMillis();
            Jcr jcr = new Jcr(new MicroKernelImpl(dir));
            jcr.with(Executors.newScheduledThreadPool(1))
                    .with(securityProvider);
            repo = jcr.createRepository();
            adminSession = repo.login(getHelper().getSuperuserCredentials());
        } else {
            adminSession = superuser;
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.Jcr.createRepository()

            ContentRepository repository = oak.createContentRepository();
            ServletHolder holder = new ServletHolder(new OakServlet(repository));
            context.addServlet(holder, path + "/*");

            // 2 - Webdav Server on JCR repository
            final Repository jcrRepository = jcr.createRepository();
            ServletHolder webdav = new ServletHolder(new SimpleWebdavServlet() {
                @Override
                public Repository getRepository() {
                    return jcrRepository;
                }
View Full Code Here

Examples of org.apache.jackrabbit.vault.davex.DAVExRepositoryFactory.createRepository()

    private Session getSourceSession(RepositoryAddress src) throws RepositoryException {
        DAVExRepositoryFactory factory = new DAVExRepositoryFactory();
        Repository srcRepo;
        try {
            srcRepo = factory.createRepository(src);
        } catch (RepositoryException e) {
            log.error("Error while retrieving src repository {}: {}", src, e.toString());
            throw e;
        }
        try {
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.RepositoryFactory.createRepository()

        Iterator<RepositoryFactory> iter = ServiceRegistry.lookupProviders(RepositoryFactory.class);
        Set<String> supported = new HashSet<String>();
        while (iter.hasNext()) {
            RepositoryFactory fac = iter.next();
            supported.addAll(fac.getSupportedSchemes());
            Repository rep = fac.createRepository(address);
            if (rep != null) {
                // wrap JCR logger
                if (Boolean.getBoolean("jcrlog.sysout") || System.getProperty("jcrlog.file") != null) {
                    Repository wrapped = wrapLogger(rep, address);
                    if (wrapped != null) {
View Full Code Here

Examples of org.apache.maven.archetype.common.ArchetypeRegistryManager.createRepository()

        super.setUp();

        ArchetypeRegistryManager registryManager = (ArchetypeRegistryManager) lookup( ArchetypeRegistryManager.ROLE );

        File local = new File( getBasedir(), "target/test-classes/repositories/local" );
        localRepository = registryManager.createRepository( local.toURI().toURL().toExternalForm(), "local-repo");

        aam = (ArchetypeArtifactManager) lookup( ArchetypeArtifactManager.class.getName() );
        arm = (ArchetypeRegistryManager) lookup( ArchetypeRegistryManager.class.getName() );

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