|
||||||||||
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(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. |
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(String prefix, String uri, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
prefix
- namespace prefixuri
- namespace URIworkspace
- session workspace instance
javax.jcr.RepositoryException
void unregisterNamespace(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(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 method
javax.jcr.RepositoryException
boolean registerWorkspace(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 |