Add collaboration feature
[sdc.git] / openecomp-be / lib / openecomp-sdc-vendor-software-product-lib / openecomp-sdc-vendor-software-product-core / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / dao / impl / zusammen / convertor / ElementToOrchestrationTemplateCandidateMapConvertor.java
1 package org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.convertor;
2
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;
8
9 /**
10  * Created by ayalaben on 9/6/2017
11  */
12 public class ElementToOrchestrationTemplateCandidateMapConvertor
13     extends ElementConvertor<FilesDataStructure> {
14
15   @Override
16   public FilesDataStructure convert(Element element) {
17     return JsonUtil.json2Object(new String(FileUtils.toByteArray(element.getData())),
18         FilesDataStructure.class);
19   }
20 }