75767778798081828384
RegistryHelper.registerRepository(ctx, repositoryName, configFile, homeDir, true); } catch (Exception e) { throw new RepositoryException("Impossible to register the respository : " + repositoryName + " - config file : " + configFile, e); } }
102103104105106107108109110111
RegistryHelper.unregisterRepository(ctx, repositoryName); } catch (Exception e) { throw new RepositoryException("Impossible to unregister the respository : " + repositoryName , e); } }
131132133134135136137138
Repository repository = (Repository) ctx.lookup(repositoryName); return repository; } catch (Exception e) { throw new RepositoryException("Impossible to get the repository : " + repositoryName, e); } }
156157158159160161162163
return session; } catch (Exception e) { throw new RepositoryException("Impossible to login ", e); } }
202203204205206207208209
} catch (Exception e) { log.error("Error while setting up the jcr session.", e); throw new RepositoryException(e.getMessage()); } }