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));
}
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());
}
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());
}
Aggregations