use of org.obiba.mica.micaConfig.event.DataAccessConfigUpdatedEvent in project mica2 by obiba.
the class DataAccessConfigService method save.
public void save(@NotNull @Valid DataAccessConfig config) {
DataAccessConfig savedConfig = getOrCreateConfig();
BeanUtils.copyProperties(config, savedConfig, "id", "version", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate");
dataAccessConfigRepository.save(savedConfig);
eventBus.post(new DataAccessConfigUpdatedEvent(savedConfig));
}
Aggregations