|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Provider
Repository provider. This interface is intended to be implemented by all repository implementations that can be used by Magnolia.
Method Summary | |
---|---|
javax.jcr.Repository |
getUnderlineRepository()
Deprecated. typo - use get #getUnderlyingRepository() - since 4.0 |
javax.jcr.Repository |
getUnderlyingRepository()
Gets the repository instance initialized on init() call. |
void |
init(RepositoryMapping repositoryMapping)
Initializes repository, this depends on the underlying repository implementation. |
void |
registerNamespace(java.lang.String prefix,
java.lang.String uri,
javax.jcr.Workspace workspace)
Register namespace with the repository. |
void |
registerNodeTypes()
Node type registration is entirely dependent on the implementation. |
void |
registerNodeTypes(java.io.InputStream stream)
Node type registration is entirely dependent on the implementation. |
void |
registerNodeTypes(java.lang.String configuration)
Node type registration is entirely dependent on the implementation. |
boolean |
registerWorkspace(java.lang.String workspaceName)
Register a new workspace in the current repository. |
void |
shutdownRepository()
|
void |
unregisterNamespace(java.lang.String prefix,
javax.jcr.Workspace workspace)
Unregister namespace with the repository. |
Method Detail |
---|
void init(RepositoryMapping repositoryMapping) throws RepositoryNotInitializedException
repositoryMapping
- key value pars as define in repository.xml
RepositoryNotInitializedException
javax.jcr.Repository getUnderlyingRepository() throws RepositoryNotInitializedException
RepositoryNotInitializedException
- if init failed to get repositoryjavax.jcr.Repository getUnderlineRepository() throws RepositoryNotInitializedException
RepositoryNotInitializedException
void registerNamespace(java.lang.String prefix, java.lang.String uri, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
prefix
- namespace prefixuri
- namespace URIworkspace
- session workspace instance
javax.jcr.RepositoryException
void unregisterNamespace(java.lang.String prefix, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
prefix
- as registered previouslyworkspace
- session workspace instance
javax.jcr.RepositoryException
void registerNodeTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void registerNodeTypes(java.lang.String configuration) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void registerNodeTypes(java.io.InputStream stream) throws javax.jcr.RepositoryException
stream
- , stream type depends on the implementation of this method
javax.jcr.RepositoryException
boolean registerWorkspace(java.lang.String workspaceName) throws javax.jcr.RepositoryException
workspaceName
- workspace name
true
true if the workspace is registered now of false
if it was already
registered
javax.jcr.RepositoryException
- if any exception occours during registrationvoid shutdownRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |