Constructor and Description |
---|
ProviderImpl() |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
public void init(RepositoryDefinition repositoryMapping) throws RepositoryNotInitializedException
Provider
init
in interface Provider
repositoryMapping
- key value pars as define in repository.xmlRepositoryNotInitializedException
Provider.init(info.magnolia.repository.definition.RepositoryDefinition)
public void shutdownRepository()
shutdownRepository
in interface Provider
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 instancejavax.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 instancejavax.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 methodjavax.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 nametrue
true if the workspace is registered now of false
if it was already
registeredjavax.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
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.