Add collaboration feature
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-license-rest / vendor-license-rest-services / src / main / java / org / openecomp / sdcrests / vendorlicense / rest / mapping / MapVendorLicenseModelEntityToDto.java
  * ============LICENSE_END=========================================================
  */
 
-package org.openecomp.sdcrests.activitylog.types;
+package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import java.io.Serializable;
-
-public enum ActivityType implements Serializable {
-
-  CREATE_NEW("Create New"),
-  CHECKOUT("Check Out"),
-  UNDO_CHECKOUT("Undo Check Out"),
-  CHECKIN("Check In"),
-  UPLOAD_HEAT("Upload Heat"),
-  UPLOAD_MONITORING_FILE("Upload Monitoring File"),
-  SUBMIT("Submit");
-
-  // after collaboration will be added - this will be added:
-    /*
-    CREATE_NEW,
-    COMMIT,
-    ADD_PERMISSION,
-    REMOVE_PERMISSION,
-    */
-
-  private String name;
-
-  ActivityType(String name) {
-    this.name = name;
-  }
+import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity;
+import org.openecomp.sdcrests.mapping.MappingBase;
+import org.openecomp.sdcrests.vendorlicense.types.VendorLicenseModelEntityDto;
 
+public class MapVendorLicenseModelEntityToDto
+    extends MappingBase<VendorLicenseModelEntity, VendorLicenseModelEntityDto> {
   @Override
-  public String toString() {
-    return name;
+  public void doMapping(VendorLicenseModelEntity source, VendorLicenseModelEntityDto target) {
+    target.setId(source.getId());
+    target.setVendorName(source.getVendorName());
+    target.setDescription(source.getDescription());
+    target.setIconRef(source.getIconRef());
   }
 }