|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jackrabbit.ProviderImpl
public class ProviderImpl
Provider implementation for Apache JackRabbit JCR repository.
Constructor Summary | |
---|---|
ProviderImpl()
|
Method Summary | |
---|---|
protected void |
checkXmlSettings()
WORKAROUND for tomcat 5.0/jdk 1.5 problem tomcat\common\endorsed contains an xml-apis.jar needed by tomcat and loaded before all xmsl stuff present in the jdk (1.4 naming problem). |
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 namespacePrefix,
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 xmlStream)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProviderImpl()
Method Detail |
---|
public void init(RepositoryMapping repositoryMapping) throws RepositoryNotInitializedException
Provider
init
in interface Provider
repositoryMapping
- key value pars as define in repository.xml
RepositoryNotInitializedException
Provider.init(info.magnolia.repository.RepositoryMapping)
public void shutdownRepository()
shutdownRepository
in interface Provider
public javax.jcr.Repository getUnderlineRepository() throws RepositoryNotInitializedException
getUnderlineRepository
in interface Provider
RepositoryNotInitializedException
public javax.jcr.Repository getUnderlyingRepository() throws RepositoryNotInitializedException
Provider
getUnderlyingRepository
in interface Provider
RepositoryNotInitializedException
- if init failed to get repositorypublic void registerNamespace(java.lang.String namespacePrefix, java.lang.String uri, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
Provider
registerNamespace
in interface Provider
namespacePrefix
- namespace prefixuri
- namespace URIworkspace
- session workspace instance
javax.jcr.RepositoryException
Provider.registerNamespace(java.lang.String, java.lang.String, javax.jcr.Workspace)
public void unregisterNamespace(java.lang.String prefix, javax.jcr.Workspace workspace) throws javax.jcr.RepositoryException
Provider
unregisterNamespace
in interface Provider
prefix
- as registered previouslyworkspace
- session workspace instance
javax.jcr.RepositoryException
Provider.unregisterNamespace(java.lang.String, javax.jcr.Workspace)
public void registerNodeTypes() throws javax.jcr.RepositoryException
Provider
registerNodeTypes
in interface Provider
javax.jcr.RepositoryException
Provider.registerNodeTypes(String)
public void registerNodeTypes(java.lang.String configuration) throws javax.jcr.RepositoryException
Provider
registerNodeTypes
in interface Provider
javax.jcr.RepositoryException
Provider.registerNodeTypes(java.lang.String)
public void registerNodeTypes(java.io.InputStream xmlStream) throws javax.jcr.RepositoryException
Provider
registerNodeTypes
in interface Provider
xmlStream
- , stream type depends on the implementation of this method
javax.jcr.RepositoryException
Provider.registerNodeTypes(java.io.InputStream)
protected void checkXmlSettings()
public boolean registerWorkspace(java.lang.String workspaceName) throws javax.jcr.RepositoryException
Provider
registerWorkspace
in interface Provider
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 registrationProvider.registerWorkspace(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |