Files
kiz-shop/nexacro-security.txt
mindol1004 4e5ccb872f
Some checks failed
kiz-shop-pipeline/pipeline/head There was a failure building this commit
pipeline commit
2023-12-26 16:15:25 +09:00

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);