@ThreadSafe public class RepositoryManagerImpl extends Object implements RepositoryManager
ServiceLoader and org.modeshape.jcr.api.RepositoriesContainer mechanism.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
(package private) javax.jcr.RepositoryFactory |
repositoryFactory |
| Modifier | Constructor and Description |
|---|---|
private |
RepositoryManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getJcrRepositoryNames()
Returns a set with all the names of the available repositories.
|
javax.jcr.Repository |
getRepository(String repositoryName)
Returns the
Repository instance with the given name. |
javax.jcr.Session |
getSession(org.wisdom.api.http.Request request,
String repositoryName,
String workspaceName)
Get a JCR Session for the named workspace in the named repository, using the supplied HTTP servlet request for
authentication information.
|
private static final org.slf4j.Logger LOGGER
javax.jcr.RepositoryFactory repositoryFactory
public javax.jcr.Session getSession(org.wisdom.api.http.Request request,
String repositoryName,
String workspaceName)
throws javax.jcr.RepositoryException
getSession in interface RepositoryManagerrequest - the servlet request; may not be null or unauthenticatedrepositoryName - the name of the repository in which the session is createdworkspaceName - the name of the workspace to which the session should be connectedjavax.jcr.RepositoryException - if the named repository does not exist or there was a problem obtaining the named repositorypublic javax.jcr.Repository getRepository(String repositoryName) throws NoSuchRepositoryException
Repository instance with the given name.getRepository in interface RepositoryManagerrepositoryName - a non-null stringRepository instance, never nullNoSuchRepositoryException - if no repository with the given name exists.public Set<String> getJcrRepositoryNames()
getJcrRepositoryNames in interface RepositoryManagernullCopyright © 2013–2016 Wisdom Framework. All rights reserved.