use of org.obiba.opal.web.model.Projects in project mica2 by obiba.
the class OpalService method getProjectDtos.
public List<Projects.ProjectDto> getProjectDtos(String opalUrl) throws URISyntaxException {
if (Strings.isNullOrEmpty(opalUrl))
opalUrl = getDefaultOpal();
OpalJavaClient opalJavaClient = getOpalJavaClient(opalUrl);
URI uri = opalJavaClient.newUri().segment("projects").build();
return opalJavaClient.getResources(Projects.ProjectDto.class, uri, Projects.ProjectDto.newBuilder());
}
Aggregations