| java.lang.Object org.openrdf.repository.config.RepositoryConfigUtil
RepositoryConfigUtil | public class RepositoryConfigUtil (Code) | | |
hasRepositoryConfig | public static boolean hasRepositoryConfig(Repository repository, String repositoryID) throws RepositoryException, RepositoryConfigException(Code) | | Is configuration information for the specified repository ID present in
the (system) repository?
Parameters: repository - the repository to look in Parameters: repositoryID - the repositoryID to look for true if configurion information for the specified repository IDwas found, false otherwise throws: RepositoryException - if an error occurred while trying to retrieve information from the(system) repository throws: RepositoryConfigException - |
removeRepositoryConfigs | public static boolean removeRepositoryConfigs(Repository repository, String... repositoryIDs) throws RepositoryException, RepositoryConfigException(Code) | | Removes one or more Repository configurations from a Repository. Nothing
happens when this Repository does not contain configurations for these
Repository IDs.
Parameters: repository - The Repository to remove the configurations from. Parameters: repositoryIDs - The IDs of the Repositories whose configurations need to beremoved. throws: RepositoryException - Whenever access to the Repository's RepositoryConnection causes aRepositoryException. throws: RepositoryConfigException - |
updateRepositoryConfigs | public static void updateRepositoryConfigs(Repository repository, RepositoryConfig... configs) throws RepositoryException, RepositoryConfigException(Code) | | Update the specified Repository with the specified set of
RepositoryConfigs. This will overwrite all existing configurations in the
Repository that have a Repository ID occurring in these RepositoryConfigs.
Parameters: repository - The Repository whose contents will be modified. Parameters: configs - The RepositoryConfigs that should be added to or updated in theRepository. The RepositoryConfig's ID may already occur in theRepository, in which case all previous configuration data for thatRepository will be cleared before the RepositoryConfig is added. throws: RepositoryException - When access to the Repository's RepositoryConnection causes aRepositoryException. throws: RepositoryConfigException - |
updateRepositoryConfigs | public static void updateRepositoryConfigs(RepositoryConnection con, RepositoryConfig... configs) throws RepositoryException, RepositoryConfigException(Code) | | Update the specified RepositoryConnection with the specified set of
RepositoryConfigs. This will overwrite all existing configurations in the
Repository that have a Repository ID occurring in these RepositoryConfigs.
Note: this method does NOT commit the updates on the connection.
Parameters: con - the repository connection to perform the update on Parameters: configs - The RepositoryConfigs that should be added to or updated in theRepository. The RepositoryConfig's ID may already occur in theRepository, in which case all previous configuration data for thatRepository will be cleared before the RepositoryConfig is added. throws: RepositoryException - throws: RepositoryConfigException - |
|
|