org.exist.collections
Class CollectionConfigurationManager
java.lang.Object
org.exist.collections.CollectionConfigurationManager
public class CollectionConfigurationManager
- extends Object
Manages index configurations. Index configurations are stored in a collection
hierarchy below /db/system/config. CollectionConfigurationManager is called
by Collection to retrieve the
CollectionConfiguration instance for a given collection.
- Author:
- wolf
CONFIG_COLLECTION
public static final String CONFIG_COLLECTION
- See Also:
- Constant Field Values
COLLECTION_CONFIG_FILENAME
public static final String COLLECTION_CONFIG_FILENAME
- See Also:
- Constant Field Values
CollectionConfigurationManager
public CollectionConfigurationManager(DBBroker broker)
throws EXistException
- Throws:
EXistException
addConfiguration
public void addConfiguration(Txn transaction,
DBBroker broker,
Collection collection,
String config)
throws CollectionConfigurationException
- Add a new collection configuration. The XML document is passed as a string.
- Parameters:
transaction - The transaction that will hold the WRITE locks until they are released by commit()/abort()broker - collection - the collection to which the configuration applies.config - the xconf document as a String.
- Throws:
CollectionConfigurationException
checkRootCollectionConfigCollection
public void checkRootCollectionConfigCollection(DBBroker broker)
throws EXistException
- Throws:
EXistException
checkRootCollectionConfig
public void checkRootCollectionConfig(DBBroker broker)
throws EXistException
- Create a stored default configuration document for the root collection
- Parameters:
broker - The broker which will do the operation
- Throws:
EXistException
Copyright (C) Wolfgang Meier. All rights reserved.