use of org.exist.collections.CollectionConfiguration in project exist by eXist-db.
the class BrokerPool method initialiseTriggersForCollections.
private void initialiseTriggersForCollections(final DBBroker broker, final XmldbURI uri) throws EXistException, PermissionDeniedException {
final Collection collection = broker.getCollection(uri);
// initialize configurations watcher trigger
if (collection != null) {
final CollectionConfigurationManager manager = getConfigurationManager();
final CollectionConfiguration collConf = manager.getOrCreateCollectionConfiguration(broker, collection);
// , collection.getURI());
final DocumentTriggerProxy triggerProxy = new DocumentTriggerProxy(ConfigurationDocumentTrigger.class);
collConf.documentTriggers().add(triggerProxy);
}
}
Aggregations