Some checks failed
kiz-shop-pipeline/pipeline/head There was a failure building this commit
20 lines
889 B
Plaintext
20 lines
889 B
Plaintext
public static Map<String, Object> nexacroDatasetToMap(NexacroContext nexacroCachedData) {
|
|
Map<String, Object> result = null;
|
|
try {
|
|
DataSetToObjectConverter converter = new DataSetToObjectConverter();
|
|
ConvertDefinition definition = new ConvertDefinition();
|
|
String dsName = nexacroCachedData.getPlatformRequest().getData().getDataSetList().get(0).getName();
|
|
definition.setName(dsName);
|
|
definition.setGenericType(Map.class);
|
|
|
|
DataSet dataSet = nexacroCachedData.getPlatformData().getDataSet(dsName);
|
|
result = (Map<String, Object>) converter.convert(dataSet, definition);
|
|
} catch (Exception e) {
|
|
throw new BizException();
|
|
}
|
|
return result;
|
|
}
|
|
|
|
|
|
NexacroContext nexacroCachedData = NexacroContextHolder.getNexacroContext(request, response);
|
|
Map<String, Object> user = Utils.nexacroDatasetToMap(nexacroCachedData); |