use of org.eclipse.vorto.repository.web.api.v1.dto.ModelInfoDto in project vorto by eclipse.
the class ModelDtoFactory method createDto.
public static ModelInfoDto createDto(String tenantId, ModelInfo resource) {
ModelInfoDto dto = new ModelInfoDto(createDto(resource.getId()), ModelType.valueOf(resource.getType().name()));
copy(resource, dto);
dto.setWorkspaceId(tenantId);
return dto;
}
Aggregations