use of de.metas.ui.web.view.json.JSONViewRowAttributes in project metasfresh-webui-api by metasfresh.
the class ASIViewRowAttributes method toJson.
@Override
public JSONViewRowAttributes toJson(final JSONOptions jsonOpts) {
final DocumentPath documentPath = getDocumentPath();
final JSONViewRowAttributes jsonDocument = new JSONViewRowAttributes(documentPath);
final List<JSONDocumentField> jsonFields = asiDoc.getFieldViews().stream().map(field -> toJSONDocumentField(field, jsonOpts)).collect(Collectors.toList());
jsonDocument.setFields(jsonFields);
return jsonDocument;
}
use of de.metas.ui.web.view.json.JSONViewRowAttributes in project metasfresh-webui-api by metasfresh.
the class HUEditorRowAttributes method toJson.
@Override
public JSONViewRowAttributes toJson(final JSONOptions jsonOpts_NOTUSED) {
final JSONViewRowAttributes jsonDocument = new JSONViewRowAttributes(documentPath);
final List<JSONDocumentField> jsonFields = attributesStorage.getAttributeValues().stream().map(this::toJSONDocumentField).collect(Collectors.toList());
jsonDocument.setFields(jsonFields);
return jsonDocument;
}
Aggregations