use of com.vartech.common.app.beans.EnumMapperValue in project varsql by varsqlinfo.
the class ExportServiceImpl method selectExportConfigInfo.
/**
* @Method Name : selectConfigInfo
* @Method 설명 : table export Info
* @작성자 : ytkim
* @작성일 : 2017. 11. 22.
* @변경이력 :
* @param preferencesInfo
* @param model
* @throws Exception
*/
public void selectExportConfigInfo(PreferencesRequestDTO preferencesInfo, ModelMap model) throws Exception {
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(preferencesInfo.getDbType());
model.addAttribute("userSettingInfo", preferencesServiceImpl.selectPreferencesInfo(preferencesInfo, true));
model.addAttribute("columnInfo", Arrays.stream(VarsqlReportConfig.TABLE_COLUMN.values()).map(EnumMapperValue::new).collect(Collectors.toList()));
if (SecurityUtil.isSchemaView(preferencesInfo)) {
model.addAttribute("schemaList", dbMetaEnum.getSchemas(preferencesInfo));
} else {
model.addAttribute("schemaInfo", "");
}
}
Aggregations