public class RepositoryConfigurator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryConfigurator.Factory |
Constructor and Description |
---|
RepositoryConfigurator() |
RepositoryConfigurator(IManagedContainer container) |
Modifier and Type | Method and Description |
---|---|
protected IRepository[] |
configure(org.w3c.dom.Document document) |
IRepository[] |
configure(java.io.File configFile) |
IRepository[] |
configure(java.io.Reader configReader) |
protected IStore |
createStore(java.lang.String repositoryName,
java.util.Map<java.lang.String,java.lang.String> repositoryProperties,
org.w3c.dom.Element storeConfig) |
protected IAuthenticator |
getAuthenticator(org.w3c.dom.Element authenticatorConfig) |
protected IAuthenticator |
getAuthenticator(java.lang.String type,
java.lang.String description) |
protected org.w3c.dom.Element |
getAuthenticatorConfig(org.w3c.dom.Element repositoryConfig) |
IManagedContainer |
getContainer() |
protected <T> T |
getContainerElement(org.w3c.dom.Element element,
java.lang.String defaultType) |
protected org.w3c.dom.Document |
getDocument(java.io.File configFile) |
protected org.w3c.dom.Document |
getDocument(java.io.Reader configReader) |
protected EPackage[] |
getInitialPackages(org.w3c.dom.Element repositoryConfig) |
static java.util.Map<java.lang.String,java.lang.String> |
getProperties(org.w3c.dom.Element element,
int levels) |
protected IRepository |
getRepository(org.w3c.dom.Element repositoryConfig) |
protected IRepository |
getRepository(java.lang.String repositoryType) |
java.util.Map<java.lang.String,IRepositoryFactory> |
getRepositoryFactories() |
protected IRepositoryFactory |
getRepositoryFactory(java.lang.String type) |
protected org.w3c.dom.Element |
getStoreConfig(org.w3c.dom.Element repositoryConfig) |
java.util.Map<java.lang.String,IStoreFactory> |
getStoreFactories() |
protected IStoreFactory |
getStoreFactory(java.lang.String type) |
protected IUserManager |
getUserManager(org.w3c.dom.Element userManagerConfig) |
protected IUserManager |
getUserManager(java.lang.String type,
java.lang.String description) |
protected org.w3c.dom.Element |
getUserManagerConfig(org.w3c.dom.Element repositoryConfig) |
protected void |
setActivityLog(InternalRepository repository,
org.w3c.dom.Element repositoryConfig) |
protected void |
setAuthenticator(InternalRepository repository,
org.w3c.dom.Element repositoryConfig) |
protected void |
setUserManager(InternalRepository repository,
org.w3c.dom.Element repositoryConfig) |
public RepositoryConfigurator()
public RepositoryConfigurator(IManagedContainer container)
public IManagedContainer getContainer()
public java.util.Map<java.lang.String,IRepositoryFactory> getRepositoryFactories()
public java.util.Map<java.lang.String,IStoreFactory> getStoreFactories()
public IRepository[] configure(java.io.File configFile) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, CoreException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
CoreException
public IRepository[] configure(java.io.Reader configReader) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, CoreException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
CoreException
protected IRepository[] configure(org.w3c.dom.Document document) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, CoreException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
CoreException
protected org.w3c.dom.Document getDocument(java.io.File configFile) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected org.w3c.dom.Document getDocument(java.io.Reader configReader) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected IRepositoryFactory getRepositoryFactory(java.lang.String type) throws CoreException
CoreException
protected IRepository getRepository(org.w3c.dom.Element repositoryConfig) throws CoreException
CoreException
protected IRepository getRepository(java.lang.String repositoryType) throws CoreException
CoreException
protected org.w3c.dom.Element getUserManagerConfig(org.w3c.dom.Element repositoryConfig)
protected IUserManager getUserManager(org.w3c.dom.Element userManagerConfig) throws CoreException
CoreException
protected IUserManager getUserManager(java.lang.String type, java.lang.String description) throws CoreException
CoreException
protected void setUserManager(InternalRepository repository, org.w3c.dom.Element repositoryConfig) throws CoreException
CoreException
protected org.w3c.dom.Element getAuthenticatorConfig(org.w3c.dom.Element repositoryConfig)
protected IAuthenticator getAuthenticator(org.w3c.dom.Element authenticatorConfig) throws CoreException
CoreException
protected IAuthenticator getAuthenticator(java.lang.String type, java.lang.String description) throws CoreException
CoreException
protected void setAuthenticator(InternalRepository repository, org.w3c.dom.Element repositoryConfig) throws CoreException
CoreException
protected void setActivityLog(InternalRepository repository, org.w3c.dom.Element repositoryConfig)
protected EPackage[] getInitialPackages(org.w3c.dom.Element repositoryConfig)
protected org.w3c.dom.Element getStoreConfig(org.w3c.dom.Element repositoryConfig)
protected IStoreFactory getStoreFactory(java.lang.String type) throws CoreException
CoreException
protected IStore createStore(java.lang.String repositoryName, java.util.Map<java.lang.String,java.lang.String> repositoryProperties, org.w3c.dom.Element storeConfig) throws CoreException
CoreException
protected <T> T getContainerElement(org.w3c.dom.Element element, java.lang.String defaultType)
public static java.util.Map<java.lang.String,java.lang.String> getProperties(org.w3c.dom.Element element, int levels)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html