Package org.silverpeas.core.jcr.impl
Class RepositorySettings
- java.lang.Object
-
- org.silverpeas.core.jcr.impl.RepositorySettings
-
public class RepositorySettings extends Object
The parameters the differentRepositoryFactory
have to understand and satisfy when creating aRepository
object through which Silverpeas access the JCR.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description RepositorySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJCRConfigurationFile()
Gets the absolute path of the JCR configuration file required to bootstrap or to open access to the repository.String
getJCRHomeDirectory()
Gets the absolute path of the JCR home directory.
-
-
-
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 aRepository
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
-
-
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 aSilverpeasRuntimeException
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 theRepository
instance. If no such property is found, then aSilverpeasRuntimeException
exception is thrown.- Returns:
- the absolute path of the JCR configuration file to use to create a
Repository
instance.
-
-