Search in sources :

Example 1 with CollectionConfiguration

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);
    }
}
Also used : Collection(org.exist.collections.Collection) CollectionConfigurationManager(org.exist.collections.CollectionConfigurationManager) CollectionConfiguration(org.exist.collections.CollectionConfiguration)

Aggregations

Collection (org.exist.collections.Collection)1 CollectionConfiguration (org.exist.collections.CollectionConfiguration)1 CollectionConfigurationManager (org.exist.collections.CollectionConfigurationManager)1