|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.web.jcr.RepositoryManager
@ThreadSafe public class RepositoryManager
Manager for accessing JCR Repository instances. This manager uses the idiomatic way to find JCR Repository (and ModeShape
Repositories) instances via the ServiceLoader and RepositoriesContainer mechanism.
| Method Summary | |
|---|---|
static Set<String> |
getJcrRepositoryNames()
Returns a set with all the names of the available repositories. |
static Repository |
getRepository(String repositoryName)
Returns the Repository instance with the given name. |
static Session |
getSession(HttpServletRequest 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Session getSession(HttpServletRequest request,
String repositoryName,
String workspaceName)
throws RepositoryException
request - 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 connected
RepositoryException - if the named repository does not exist or there was a problem obtaining the named repository
public static Repository getRepository(String repositoryName)
throws NoSuchRepositoryException
Repository instance with the given name.
repositoryName - a non-null string
Repository instance, never null
NoSuchRepositoryException - if no repository with the given name exists.public static Set<String> getJcrRepositoryNames()
null
|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||