Search in sources :

Example 1 with SchemaFormConfig

use of org.obiba.mica.web.controller.domain.SchemaFormConfig 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)

Example 2 with SchemaFormConfig

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

the class DataAccessController method addDataAccessFeasibilityFormConfiguration.

private void addDataAccessFeasibilityFormConfiguration(Map<String, Object> params, DataAccessFeasibility feasibility, boolean readOnly, String locale) {
    DataAccessFeasibilityForm dataAccessFeasibilityForm = dataAccessFeasibilityFormService.findByRevision("latest").get();
    params.put("formConfig", new SchemaFormConfig(micaConfigService, dataAccessFeasibilityForm.getSchema(), dataAccessFeasibilityForm.getDefinition(), feasibility.getContent(), locale, readOnly));
    params.put("accessConfig", dataAccessConfigervice.getOrCreateConfig());
}
Also used : SchemaFormConfig(org.obiba.mica.web.controller.domain.SchemaFormConfig) DataAccessFeasibilityForm(org.obiba.mica.micaConfig.domain.DataAccessFeasibilityForm)

Example 3 with SchemaFormConfig

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

the class DataAccessController method addDataAccessAmendmentFormConfiguration.

private void addDataAccessAmendmentFormConfiguration(Map<String, Object> params, DataAccessAmendment amendment, boolean readOnly, String locale) {
    DataAccessAmendmentForm dataAccessAmendmentForm = getDataAccessAmendmentForm(amendment);
    params.put("formConfig", new SchemaFormConfig(micaConfigService, dataAccessAmendmentForm.getSchema(), dataAccessAmendmentForm.getDefinition(), amendment.getContent(), locale, readOnly));
    params.put("accessConfig", dataAccessConfigervice.getOrCreateConfig());
}
Also used : DataAccessAmendmentForm(org.obiba.mica.micaConfig.domain.DataAccessAmendmentForm) SchemaFormConfig(org.obiba.mica.web.controller.domain.SchemaFormConfig)

Aggregations

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