|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.web.jcr.rest.spi.DnaJcrRepositoryProvider
@ThreadSafe public class DnaJcrRepositoryProvider

Repository provider backed by the DNA JCR implementation.
The provider instantiates a JcrEngine that is configured from the file
in the location specified by the servlet context parameter org.jboss.dna.web.jcr.rest.CONFIG_FILE. This location must
be accessible by the classloader for this class.
RepositoryProvider,
Class.getResourceAsStream(String)| Field Summary | |
|---|---|
static String |
CONFIG_FILE
|
| Constructor Summary | |
|---|---|
DnaJcrRepositoryProvider()
|
|
| Method Summary | |
|---|---|
Set<String> |
getJcrRepositoryNames()
Returns the available repository names JCR implementations that do not support multiple repositories on the same server should provide a singleton set containing some default repository name. |
javax.jcr.Session |
getSession(HttpServletRequest request,
String repositoryName,
String workspaceName)
Returns an active session for the given workspace name in the named repository. |
void |
shutdown()
Signals the repository provider that it should complete any pending transactions, shutdown, and release any external resource held. |
void |
startup(ServletContext context)
Signals the repository provider that it should initialize itself based on the provided servlet
context and begin accepting connections. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_FILE
| Constructor Detail |
|---|
public DnaJcrRepositoryProvider()
| Method Detail |
|---|
public Set<String> getJcrRepositoryNames()
RepositoryProviderJCR implementations that do not support multiple repositories on the same server should provide a singleton set containing some default repository name.
getJcrRepositoryNames in interface RepositoryProviderpublic void startup(ServletContext context)
RepositoryProviderservlet
context and begin accepting connections.
startup in interface RepositoryProvidercontext - the servlet context for the REST servletpublic void shutdown()
RepositoryProvider
shutdown in interface RepositoryProvider
public javax.jcr.Session getSession(HttpServletRequest request,
String repositoryName,
String workspaceName)
throws javax.jcr.RepositoryException
getSession in interface RepositoryProviderrequest - 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
javax.jcr.RepositoryException - if any other error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||