|
||||||||||
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.Session |
getSystemSession(String workspaceName)
|
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(RepositoryDefinition repositoryMapping)
Initializes repository, this depends on the underlying repository implementation. |
void |
registerNamespace(String namespacePrefix,
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 xmlStream)
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. |
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(RepositoryDefinition repositoryMapping) throws RepositoryNotInitializedException
Provider
init
in interface Provider
repositoryMapping
- key value pars as define in repository.xml
RepositoryNotInitializedException
Provider.init(info.magnolia.repository.definition.RepositoryDefinition)
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(String namespacePrefix, 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(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(String configuration) throws javax.jcr.RepositoryException
Provider
registerNodeTypes
in interface Provider
javax.jcr.RepositoryException
Provider.registerNodeTypes(java.lang.String)
public void registerNodeTypes(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(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)
public javax.jcr.Session getSystemSession(String workspaceName) throws javax.jcr.RepositoryException
getSystemSession
in interface Provider
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |