Class RepositorySettings


  • public class RepositorySettings
    extends Object
    The parameters the different RepositoryFactory have to understand and satisfy when creating a Repository object through which Silverpeas access the JCR.
    Author:
    mmoquillon
    • Field Detail

      • JCR_HOME

        public static final String JCR_HOME
        The absolute path of the home directory of the JCR. The directory into which the data could be persisted and some JCR implementation-specific configuration files are located.
        See Also:
        Constant Field Values
      • JCR_CONF

        public static final String JCR_CONF
        The absolute path of the JCR configuration file required to create a Repository instance. This file is either specific to the underlying JCR implementation or it is specific to Silverpeas to customize the repository creation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RepositorySettings

        public RepositorySettings()
    • Method Detail

      • getJCRHomeDirectory

        public String getJCRHomeDirectory()
        Gets the absolute path of the JCR home directory. The JCR home directory is the location in which is defined the repository to use in Silverpeas. It should be defined in the system properties to be retrieved. If no such property is found, then a SilverpeasRuntimeException exception is thrown.
        Returns:
        the absolute path of the JCR home directory.
      • getJCRConfigurationFile

        public String getJCRConfigurationFile()
        Gets the absolute path of the JCR configuration file required to bootstrap or to open access to the repository. The configuration file can be either specific to the underlying implementation or specific to Silverpeas whether this one performs itself the creation of the Repository instance. If no such property is found, then a SilverpeasRuntimeException exception is thrown.
        Returns:
        the absolute path of the JCR configuration file to use to create a Repository instance.