blob: 1554a1cc10da1080bcb9503fca4bd54ee081724b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.convertor;
import com.amdocs.zusammen.adaptor.inbound.api.types.item.Element;
import org.openecomp.convertor.ElementConvertor;
import org.openecomp.core.utilities.file.FileUtils;
import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity;
/**
* Created by ayalaben on 9/27/2017
*/
public class ElementToComponentQuestionnnaireConvertor extends ElementConvertor<ComponentEntity> {
@Override
public ComponentEntity convert( Element element) {
ComponentEntity componentEntity = new ComponentEntity();
componentEntity.setId(element.getElementId().getValue());
componentEntity.setQuestionnaireData(new String(FileUtils.toByteArray(element.getData())));
return componentEntity;
}
}
|