Examples of RepositoryConfig


Examples of org.apache.jackrabbit.core.config.RepositoryConfig

     * @return repository instance
     * @throws RepositoryException if the repository could not be created
     */
    protected JackrabbitRepository createRepository()
            throws RepositoryException {
        RepositoryConfig config = RepositoryConfig.create(
                reference.get(CONFIGFILEPATH_ADDRTYPE).getContent().toString(),
                reference.get(REPHOMEDIR_ADDRTYPE).getContent().toString());
        return RepositoryImpl.create(config);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

    private static String pass = "pass";
    private static String workspace = null;
    @BeforeClass
    public static void before() throws RepositoryException {
      
        RepositoryConfig  config = RepositoryConfig.create(new InputSource(JCRMailboxManagerTest.class.getClassLoader().getResourceAsStream("test-repository.xml")), JACKRABBIT_HOME);
        repository = RepositoryImpl.create(config);
      

        // Register imap cnd file
        JCRUtils.registerCnd(repository, workspace, user, pass);
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

        new File(JACKRABBIT_HOME).delete();

        String user = "user";
        String pass = "pass";
        String workspace = null;
        RepositoryConfig config;
        try {
            config = RepositoryConfig.create(new InputSource(JCRMailboxManagerTest.class.getClassLoader().getResourceAsStream("test-repository.xml")), JACKRABBIT_HOME);
            repository = RepositoryImpl.create(config);
        } catch (ConfigurationException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

        new File(JACKRABBIT_HOME).delete();

        String user = "user";
        String pass = "pass";
        String workspace = null;
        RepositoryConfig config = RepositoryConfig.create(new InputSource(this.getClass().getClassLoader().getResourceAsStream("test-repository.xml")), JACKRABBIT_HOME);
        repository = RepositoryImpl.create(config);

        // Register imap cnd file
        JCRUtils.registerCnd(repository, workspace, user, pass);
        MailboxSessionJCRRepository sessionRepos = new GlobalMailboxSessionJCRRepository(repository, workspace, user, pass);
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

     * @return
     * @throws RepositoryException
     */
    protected Repository createRepository(InputSource is, File homedir)
            throws RepositoryException {
        RepositoryConfig config = RepositoryConfig.create(is, homedir.getAbsolutePath());
        return RepositoryImpl.create(config);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

    public void repositoryStart() throws Exception {
        InputStream config =
            RepositoryImpl.class.getResourceAsStream("repository.xml");
        String home = new File("target/cltest").getAbsolutePath();
        RepositoryConfig rc = RepositoryConfig.create(config, home);
        RepositoryImpl repository = RepositoryImpl.create(rc);

        try {
            Context ctx = getInitialContext();
            ctx.bind(REPOSITORY_NAME, repository);
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

   * @param homedir
   * @return
   * @throws RepositoryException
   */
  private Repository createRepository(InputSource is, File homedir) throws RepositoryException {
    RepositoryConfig config = RepositoryConfig.create(is, homedir.getAbsolutePath());
    return RepositoryImpl.create(config);
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.config.RepositoryConfig

            } else {
                URL configURL = new URL(configURLObj);
                ins = configURL.openStream();
            }

            RepositoryConfig crc = RepositoryConfig.create(ins, home);
            return RepositoryImpl.create(crc);
           
        } catch (IOException ioe) {
           
            log(LogService.LOG_ERROR,
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

            // server is running. ok.
        }
    }

    public void testGetRepository() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

        Repository repo = factory.getRepository(Collections.singletonMap(RepositoryFactoryImpl.REPOSITORY_CONFIG, config));
        assertNotNull(repo);
    }

    public void testGetRepositoryWithLogger() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
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.