use of com.haulmont.cuba.client.sys.ConfigurationClientImpl in project cuba by cuba-platform.
the class AppPropertiesEdit method ok.
public void ok() {
AppPropertyEntity appPropertyEntity = appPropertyDs.getItem();
// Save property through the client-side cache to ensure it is updated in the cache immediately
Configuration configuration = AppBeans.get(Configuration.class);
ConfigStorageService configStorageService = ((ConfigurationClientImpl) configuration).getConfigStorageService();
configStorageService.setDbProperty(appPropertyEntity.getName(), appPropertyEntity.getCurrentValue());
close(COMMIT_ACTION_ID);
}
Aggregations