Class RepositoryConfigurator

  • All Implemented Interfaces:
    org.eclipse.net4j.util.container.IManagedContainerProvider

    public class RepositoryConfigurator
    extends java.lang.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
    • Constructor Detail

      • RepositoryConfigurator

        public RepositoryConfigurator()
      • RepositoryConfigurator

        public RepositoryConfigurator​(org.eclipse.net4j.util.container.IManagedContainer container)
    • Method Detail

      • getContainer

        public org.eclipse.net4j.util.container.IManagedContainer getContainer()
        Specified by:
        getContainer in interface org.eclipse.net4j.util.container.IManagedContainerProvider
      • getRepositoryFactories

        public java.util.Map<java.lang.String,​IRepositoryFactory> getRepositoryFactories()
      • getStoreFactories

        public java.util.Map<java.lang.String,​IStoreFactory> getStoreFactories()
      • getParameter

        public java.lang.String getParameter​(java.lang.String key)
        Since:
        4.10
      • setParameter

        public java.lang.String setParameter​(java.lang.String key,
                                             java.lang.String value)
        Since:
        4.10
      • configure

        public IRepository[] configure​(java.io.File configFile)
                                throws javax.xml.parsers.ParserConfigurationException,
                                       org.xml.sax.SAXException,
                                       java.io.IOException,
                                       CoreException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
        CoreException
      • configure

        public IRepository[] configure​(java.io.Reader configReader)
                                throws javax.xml.parsers.ParserConfigurationException,
                                       org.xml.sax.SAXException,
                                       java.io.IOException,
                                       CoreException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
        CoreException
        Since:
        4.3
      • configure

        protected IRepository[] configure​(org.w3c.dom.Document document)
                                   throws javax.xml.parsers.ParserConfigurationException,
                                          org.xml.sax.SAXException,
                                          java.io.IOException,
                                          CoreException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
        CoreException
        Since:
        4.3
      • getDocument

        protected org.w3c.dom.Document getDocument​(java.io.File configFile)
                                            throws javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException,
                                                   java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
      • getDocument

        protected org.w3c.dom.Document getDocument​(java.io.Reader configReader)
                                            throws javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException,
                                                   java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
        Since:
        4.3
      • getUserManagerConfig

        protected org.w3c.dom.Element getUserManagerConfig​(org.w3c.dom.Element repositoryConfig)
      • getUserManager

        protected org.eclipse.net4j.util.security.IUserManager getUserManager​(org.w3c.dom.Element userManagerConfig)
                                                                       throws CoreException
        Throws:
        CoreException
      • getUserManager

        protected org.eclipse.net4j.util.security.IUserManager getUserManager​(java.lang.String type,
                                                                              java.lang.String description)
                                                                       throws CoreException
        Throws:
        CoreException
      • getAuthenticatorConfig

        protected org.w3c.dom.Element getAuthenticatorConfig​(org.w3c.dom.Element repositoryConfig)
        Since:
        4.2
      • getAuthenticator

        protected org.eclipse.net4j.util.security.IAuthenticator getAuthenticator​(org.w3c.dom.Element authenticatorConfig)
                                                                           throws CoreException
        Throws:
        CoreException
        Since:
        4.2
      • getAuthenticator

        protected org.eclipse.net4j.util.security.IAuthenticator getAuthenticator​(java.lang.String type,
                                                                                  java.lang.String description)
                                                                           throws CoreException
        Throws:
        CoreException
        Since:
        4.2
      • setActivityLog

        protected void setActivityLog​(InternalRepository repository,
                                      org.w3c.dom.Element repositoryConfig)
        Since:
        4.7
      • getInitialPackages

        protected EPackage[] getInitialPackages​(org.w3c.dom.Element repositoryConfig)
      • getStoreConfig

        protected org.w3c.dom.Element getStoreConfig​(org.w3c.dom.Element repositoryConfig)
      • createStore

        protected IStore createStore​(java.lang.String repositoryName,
                                     java.util.Map<java.lang.String,​java.lang.String> repositoryProperties,
                                     org.w3c.dom.Element storeConfig)
                              throws CoreException
        Throws:
        CoreException
      • getContainerElement

        protected <T> T getContainerElement​(org.w3c.dom.Element element,
                                            java.lang.String defaultType)
        Since:
        4.7
      • getChildElement

        protected org.w3c.dom.Element getChildElement​(org.w3c.dom.Element element,
                                                      java.lang.String name)
        Since:
        4.10
      • getAttribute

        protected java.lang.String getAttribute​(org.w3c.dom.Element element,
                                                java.lang.String name)
        Since:
        4.10
      • substituteParameters

        public static java.lang.String substituteParameters​(java.lang.String value,
                                                            java.util.Map<java.lang.String,​java.lang.String> parameters)
        Since:
        4.10
      • getProperties

        public static java.util.Map<java.lang.String,​java.lang.String> getProperties​(org.w3c.dom.Element element,
                                                                                           int levels)
      • getProperties

        public static java.util.Map<java.lang.String,​java.lang.String> getProperties​(org.w3c.dom.Element element,
                                                                                           int levels,
                                                                                           java.util.Map<java.lang.String,​java.lang.String> parameters)
        Since:
        4.10