Search in sources :

Example 1 with DataAccessConfigBundle

use of org.obiba.mica.web.controller.domain.DataAccessConfigBundle in project mica2 by obiba.

the class DataAccessController method addDataAccessFormConfiguration.

private void addDataAccessFormConfiguration(Map<String, Object> params, DataAccessRequest request, boolean readOnly, String locale) {
    DataAccessForm dataAccessForm = getDataAccessForm(request);
    params.put("formConfig", new SchemaFormConfig(micaConfigService, dataAccessForm.getSchema(), dataAccessForm.getDefinition(), request.getContent(), locale, readOnly));
    params.put("accessConfig", new DataAccessConfigBundle(dataAccessConfigervice.getOrCreateConfig(), dataAccessForm));
}
Also used : SchemaFormConfig(org.obiba.mica.web.controller.domain.SchemaFormConfig) DataAccessForm(org.obiba.mica.micaConfig.domain.DataAccessForm) DataAccessConfigBundle(org.obiba.mica.web.controller.domain.DataAccessConfigBundle)

Aggregations

DataAccessForm (org.obiba.mica.micaConfig.domain.DataAccessForm)1 DataAccessConfigBundle (org.obiba.mica.web.controller.domain.DataAccessConfigBundle)1 SchemaFormConfig (org.obiba.mica.web.controller.domain.SchemaFormConfig)1