|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryProvider
Interface for any class that provides access to one or more local JCR repositories.
Repository providers must provide a public, no-argument constructor and be thread-safe.
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. |
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. |
Method Detail |
---|
Session getSession(HttpServletRequest request, String repositoryName, String workspaceName) throws RepositoryException
JCR implementations that do not support multiple repositories on the same server can ignore the repositoryName parameter.
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 any other error occursSet<String> getJcrRepositoryNames()
JCR implementations that do not support multiple repositories on the same server should provide a singleton set containing some default repository name.
void startup(ServletContext context)
servlet
context
and begin accepting connections.
context
- the servlet context for the REST servletvoid shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |