Search in sources :

Example 1 with ModelInfoDto

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;
}
Also used : ModelInfoDto(org.eclipse.vorto.repository.web.api.v1.dto.ModelInfoDto)

Aggregations

ModelInfoDto (org.eclipse.vorto.repository.web.api.v1.dto.ModelInfoDto)1