Examples of createRepository()


Examples of atg.tools.dynunit.test.configuration.RepositoryConfiguration.createRepository()

        repositoryConfiguration.setDebug(debug);
        repositoryConfiguration.setRoot(configurationLocation);
        repositoryConfiguration.createPropertiesByConfigurationLocation();
        repositoryConfiguration.createFakeXADataSource(connectionProperties);
        repositoryConfiguration.createRepository(repositoryPath, dropTables, createTables, definitionFiles);

        repositoryManager.initializeMinimalRepositoryConfiguration(
                configurationLocation,
                repositoryPath,
                connectionSettings,
View Full Code Here

Examples of com.kolich.havalo.io.managers.RepositoryManager.createRepository()

            // Create a new keypair for the default ADMIN level user.
            final KeyPair adminKeyPair = new KeyPair(new HavaloUUID(adminUUID),
                adminSecret, Arrays.asList(new UserRole[]{ADMIN}));
            // Actually attempt to create a new Repository for the Admin user.
            // This should work, if not, bail the whole app.
            repoManager.createRepository(adminKeyPair.getKey(), adminKeyPair);
            return repoManager;
        } catch (RepositoryCreationException e) {
            // Log in TRACE and continue silently.  This is a normal case,
            // when the admin repo has already been created on firstboot
            // but Havalo is being re-started.
View Full Code Here

Examples of hudson.maven.MavenEmbedder.createRepository()

            }

      private File resolvePluginFile(MavenEmbedder embedder, String artifactId, String version, String groupId, String type)
          throws MavenEmbedderException, ComponentLookupException, AbstractArtifactResolutionException {
        final Artifact jpi = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, type);
        embedder.resolve(jpi, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
        return jpi.getFile();
       
      }
        });
    }
View Full Code Here

Examples of hudson.maven.MavenEmbedder.createRepository()

            }
           
            private File resolvePluginFile(MavenEmbedder embedder, String artifactId, String version, String groupId, String type)
          throws MavenEmbedderException, ComponentLookupException, AbstractArtifactResolutionException {
        final Artifact jpi = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, type);
        embedder.resolve(jpi, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
        return jpi.getFile();
       
      }
        });
    }
View Full Code Here

Examples of org.apache.avalon.repository.provider.CacheManager.createRepository()

        assertNotNull( factory );

        CacheManager manager = (CacheManager) factory.create() ;
        assertNotNull( manager ) ;
  
        Repository repository = manager.createRepository() ;
        assertNotNull( repository ) ;
       
        Artifact artifact = Artifact.createArtifact(
          "avalon-framework", "avalon-framework-api", "4.1.5" );
        URL url = repository.getResource( artifact );
View Full Code Here

Examples of org.apache.avalon.repository.provider.CacheManager.createRepository()

        try
        {
            Factory factory = m_context.getInitialFactory();
            CacheManager manager = (CacheManager)factory.create();
            m_repository = manager.createRepository();
        }
        catch( Throwable e )
        {
            final String error =
              "Internal error while attempt to construct initial repository.";
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IRepositoryProvider.createRepository()

        }

        try
        {
            IRepositoryProvider instance = (IRepositoryProvider) (Class.forName(provider).newInstance());
            IBundleRepository repository = instance.createRepository(name, repo);
            return repository;
        }
        catch (Exception e)
        {
            String msg = "failed to create repository: ";
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()

        // lucene specific
        jcr.with(new LuceneInitializerHelper("lucene").async());
        jcr.with(new LuceneIndexProvider());
        jcr.with(new LuceneIndexEditorProvider());

        repository = jcr.createRepository();
    }

    protected Session createAdminSession() throws RepositoryException {
        return repository.login(new SimpleCredentials("admin", "admin"
                .toCharArray()));
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.