Package org.eclipse.emf.cdo.spi.server
Class RepositoryConfigurator
java.lang.Object
org.eclipse.emf.cdo.spi.server.RepositoryConfigurator
- All Implemented Interfaces:
org.eclipse.net4j.util.container.IManagedContainerProvider
public class RepositoryConfigurator
extends Object
implements org.eclipse.net4j.util.container.IManagedContainerProvider
If the meaning of this type isn't clear, there really should be more of a description here...
- Since:
- 4.0
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Can usecdo-server.xml
markup elements to configure extended aspects of arepository
.static class
-
Constructor Summary
ConstructorDescriptionRepositoryConfigurator
(org.eclipse.net4j.util.container.IManagedContainer container) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addOperationAuthorizers
(InternalRepository repository, Element repositoryConfig) protected IRepository[]
protected IStore
static String
expandValue
(String value, Map<String, String> parameters, org.eclipse.net4j.util.container.IManagedContainer container) static void
forEachChildElement
(Element element, String name, org.eclipse.net4j.util.XMLUtil.ElementHandler handler) protected String
getAttribute
(Element element, String name) protected org.eclipse.net4j.util.security.IAuthenticator
getAuthenticator
(String type, String description) protected org.eclipse.net4j.util.security.IAuthenticator
getAuthenticator
(Element authenticatorConfig) protected Element
getAuthenticatorConfig
(Element repositoryConfig) protected Element
getChildElement
(Element element, String name) org.eclipse.net4j.util.container.IManagedContainer
protected <T> T
getContainerElement
(Element element, String defaultType) protected Document
getDocument
(File configFile) protected Document
getDocument
(Reader configReader) protected EPackage[]
getInitialPackages
(Element repositoryConfig) protected org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession>
getOperationAuthorizer
(String type, String description) getParameter
(String key) getProperties
(Element element, int levels) getProperties
(Element element, int levels, Map<String, String> parameters) getProperties
(Element element, int levels, Map<String, String> parameters, org.eclipse.net4j.util.container.IManagedContainer container) protected IRepository
getRepository
(String repositoryType) protected IRepository
getRepository
(Element repositoryConfig) protected IRepositoryFactory
getRepositoryFactory
(String type) protected Element
getStoreConfig
(Element repositoryConfig) protected IStoreFactory
getStoreFactory
(String type) protected org.eclipse.net4j.util.security.IUserManager
getUserManager
(String type, String description) protected org.eclipse.net4j.util.security.IUserManager
getUserManager
(Element userManagerConfig) protected Element
getUserManagerConfig
(Element repositoryConfig) protected void
setActivityLog
(InternalRepository repository, Element repositoryConfig) protected void
setAuthenticator
(InternalRepository repository, Element repositoryConfig) setParameter
(String key, String value) protected void
setUserManager
(InternalRepository repository, Element repositoryConfig) static String
substituteParameters
(String str, Map<String, String> parameters) Deprecated.
-
Constructor Details
-
RepositoryConfigurator
public RepositoryConfigurator() -
RepositoryConfigurator
public RepositoryConfigurator(org.eclipse.net4j.util.container.IManagedContainer container)
-
-
Method Details
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Specified by:
getContainer
in interfaceorg.eclipse.net4j.util.container.IManagedContainerProvider
-
getRepositoryFactories
-
getStoreFactories
-
getParameter
- Since:
- 4.10
-
setParameter
- Since:
- 4.10
-
configure
public IRepository[] configure(File configFile) throws ParserConfigurationException, SAXException, IOException, CoreException -
configure
public IRepository[] configure(Reader configReader) throws ParserConfigurationException, SAXException, IOException, CoreException - Throws:
ParserConfigurationException
SAXException
IOException
CoreException
- Since:
- 4.3
-
configure
protected IRepository[] configure(Document document) throws ParserConfigurationException, SAXException, IOException, CoreException - Throws:
ParserConfigurationException
SAXException
IOException
CoreException
- Since:
- 4.3
-
getDocument
protected Document getDocument(File configFile) throws ParserConfigurationException, SAXException, IOException -
getDocument
protected Document getDocument(Reader configReader) throws ParserConfigurationException, SAXException, IOException - Throws:
ParserConfigurationException
SAXException
IOException
- Since:
- 4.3
-
getRepositoryFactory
- Throws:
CoreException
-
getRepository
- Throws:
CoreException
-
getRepository
- Throws:
CoreException
-
getUserManagerConfig
-
getUserManager
protected org.eclipse.net4j.util.security.IUserManager getUserManager(Element userManagerConfig) throws CoreException - Throws:
CoreException
-
getUserManager
protected org.eclipse.net4j.util.security.IUserManager getUserManager(String type, String description) throws CoreException - Throws:
CoreException
-
setUserManager
protected void setUserManager(InternalRepository repository, Element repositoryConfig) throws CoreException - Throws:
CoreException
- Since:
- 4.2
-
getAuthenticatorConfig
- Since:
- 4.2
-
getAuthenticator
protected org.eclipse.net4j.util.security.IAuthenticator getAuthenticator(Element authenticatorConfig) throws CoreException - Throws:
CoreException
- Since:
- 4.2
-
getAuthenticator
protected org.eclipse.net4j.util.security.IAuthenticator getAuthenticator(String type, String description) throws CoreException - Throws:
CoreException
- Since:
- 4.2
-
setAuthenticator
protected void setAuthenticator(InternalRepository repository, Element repositoryConfig) throws CoreException - Throws:
CoreException
- Since:
- 4.2
-
addOperationAuthorizers
protected void addOperationAuthorizers(InternalRepository repository, Element repositoryConfig) throws CoreException - Throws:
CoreException
- Since:
- 4.15
-
getOperationAuthorizer
protected org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession> getOperationAuthorizer(String type, String description) throws CoreException - Throws:
CoreException
- Since:
- 4.15
-
setActivityLog
- Since:
- 4.7
-
getInitialPackages
-
getStoreConfig
-
getStoreFactory
- Throws:
CoreException
-
createStore
protected IStore createStore(String repositoryName, Map<String, String> repositoryProperties, Element storeConfig) throws CoreException- Throws:
CoreException
-
getContainerElement
- Since:
- 4.7
-
getChildElement
- Since:
- 4.10
-
getAttribute
- Since:
- 4.10
-
forEachChildElement
public static void forEachChildElement(Element element, String name, org.eclipse.net4j.util.XMLUtil.ElementHandler handler) throws Exception - Throws:
Exception
- Since:
- 4.20
-
expandValue
public static String expandValue(String value, Map<String, String> parameters, org.eclipse.net4j.util.container.IManagedContainer container) - Since:
- 4.20
-
getProperties
-
getProperties
public static Map<String,String> getProperties(Element element, int levels, Map<String, String> parameters) - Since:
- 4.10
-
getProperties
public static Map<String,String> getProperties(Element element, int levels, Map<String, String> parameters, org.eclipse.net4j.util.container.IManagedContainer container) - Since:
- 4.20
-
substituteParameters
Deprecated.As of 4.20 useStringUtil.replace(String, Map)
.- Since:
- 4.10
-
StringUtil.replace(String, Map)
.