*backoffice-config.xml 中的典型 CSV 文件配置
<wz:property qualifier="csvFile" type="com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult"
editor="com.hybris.cockpitng.editor.dndfileupload" validate="false">
<wz:editor-parameter>
<wz:name>accept</wz:name>
<wz:value>text/csv</wz:value>
</wz:editor-parameter>
</wz:property>
在您的操作中访问它们的典型方式(假设您在后台向导中使用模板 bean)
final DefaultWidgetModel productUploadModel = (DefaultWidgetModel) adapter.getWidgetInstanceManager().getModel();
final ProductUploadWizardForm productUpload = productUploadModel.getValue("PRODUCT_UPLOAD",
ProductUploadWizardForm.class);
final FileUploadResult fileUploadResult = productUploadModel
.getValue("PRODUCT_UPLOAD" + ".csvFile",
FileUploadResult.class);
LOG.info("Value of fileUploadResult.name:" + fileUploadResult.getName());
LOG.info("Print the contents->"+new String(fileUploadResult.getData(), StandardCharsets.UTF_8));