Add collaboration feature
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / item-rest / item-rest-services / src / main / java / org / openecomp / sdcrests / item / rest / mapping / MapVersionToDto.java
1 package org.openecomp.sdcrests.item.rest.mapping;
2
3 import org.openecomp.sdc.versioning.dao.types.Version;
4 import org.openecomp.sdcrests.item.types.VersionDto;
5 import org.openecomp.sdcrests.mapping.MappingBase;
6
7 public class MapVersionToDto extends MappingBase<Version, VersionDto> {
8   @Override
9   public void doMapping(Version source, VersionDto target) {
10     target.setId(source.getId());
11     target.setName(source.getName());
12     target.setDescription(source.getDescription());
13     target.setBaseId(source.getBaseId());
14     target.setStatus(source.getStatus());
15     target.setState(source.getState());
16     target.setCreationTime(source.getCreationTime());
17     target.setModificationTime(source.getModificationTime());
18     target.setAdditionalInfo(source.getAdditionalInfo());
19   }
20 }