Search in sources :

Example 1 with CacheCallback

use of eu.esdihumboldt.hale.ui.service.project.CacheCallback in project hale by halestudio.

the class ProjectServiceImpl method executeConfiguration.

/**
 * Execute a single I/O configuration.
 *
 * @param conf the I/O configuration
 */
private void executeConfiguration(final IOConfiguration conf) {
    // work with a cloned configuration for the case that we make a relative
    // URI absolute
    IOConfiguration cloned = conf.clone();
    updater.updateIOConfiguration(cloned, false);
    ProjectResourcesUtil.executeConfiguration(cloned, new CacheCallback() {

        @Override
        public void update(Value cache) {
            // update the original configuration with the new cache value
            conf.setCache(cache);
            // set the project status to changed
            setChanged();
        }
    });
}
Also used : CacheCallback(eu.esdihumboldt.hale.ui.service.project.CacheCallback) IOConfiguration(eu.esdihumboldt.hale.common.core.io.project.model.IOConfiguration) Value(eu.esdihumboldt.hale.common.core.io.Value)

Aggregations

Value (eu.esdihumboldt.hale.common.core.io.Value)1 IOConfiguration (eu.esdihumboldt.hale.common.core.io.project.model.IOConfiguration)1 CacheCallback (eu.esdihumboldt.hale.ui.service.project.CacheCallback)1