public interface Provider
Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
getSystemSession(String workspaceName) |
javax.jcr.Repository |
getUnderlyingRepository()
Gets the repository instance initialized on init() call.
|
void |
init(RepositoryDefinition repositoryDefinition)
Initializes repository, this depends on the underlying repository implementation.
|
void |
registerNamespace(String prefix,
String uri,
javax.jcr.Workspace workspace)
Register namespace with the repository.
|
void |
registerNodeTypes()
Node type registration is entirely dependent on the implementation.
|
void |
registerNodeTypes(InputStream stream)
Node type registration is entirely dependent on the implementation.
|
void |
registerNodeTypes(String configuration)
Node type registration is entirely dependent on the implementation.
|
boolean |
registerWorkspace(String workspaceName)
Register a new workspace in the current repository.
|
void |
shutdownRepository() |
void |
unregisterNamespace(String prefix,
javax.jcr.Workspace workspace)
Unregister namespace with the repository.
|
void init(RepositoryDefinition repositoryDefinition) throws RepositoryNotInitializedException
repositoryDefinition
- key value pars as define in repository.xmlRepositoryNotInitializedException
javax.jcr.Repository getUnderlyingRepository() throws RepositoryNotInitializedException
RepositoryNotInitializedException
- if init failed to get repositoryvoid registerNamespace(String prefix, String uri, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
prefix
- namespace prefixuri
- namespace URIworkspace
- session workspace instancejavax.jcr.RepositoryException
void unregisterNamespace(String prefix, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
prefix
- as registered previouslyworkspace
- session workspace instancejavax.jcr.RepositoryException
void registerNodeTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void registerNodeTypes(String configuration) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void registerNodeTypes(InputStream stream) throws javax.jcr.RepositoryException
stream
- , stream type depends on the implementation of this methodjavax.jcr.RepositoryException
boolean registerWorkspace(String workspaceName) throws javax.jcr.RepositoryException
workspaceName
- workspace nametrue
true if the workspace is registered now of false
if it was already
registeredjavax.jcr.RepositoryException
- if any exception occours during registrationvoid shutdownRepository()
javax.jcr.Session getSystemSession(String workspaceName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.