1 package org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.convertor;
3 import com.amdocs.zusammen.adaptor.inbound.api.types.item.Element;
4 import org.openecomp.convertor.ElementConvertor;
5 import org.openecomp.core.utilities.file.FileUtils;
6 import org.openecomp.core.utilities.json.JsonUtil;
7 import org.openecomp.sdc.vendorsoftwareproduct.types.candidateheat.FilesDataStructure;
10 * Created by ayalaben on 9/6/2017
12 public class ElementToOrchestrationTemplateCandidateMapConvertor
13 extends ElementConvertor<FilesDataStructure> {
16 public FilesDataStructure convert(Element element) {
17 return JsonUtil.json2Object(new String(FileUtils.toByteArray(element.getData())),
18 FilesDataStructure.class);