use of com.google.gerrit.extensions.common.WebLinkInfo in project gerrit by GerritCodeReview.
the class ProjectJson method format.
public ProjectInfo format(Project p) {
ProjectInfo info = new ProjectInfo();
info.name = p.getName();
Project.NameKey parentName = p.getParent(allProjects);
info.parent = parentName != null ? parentName.get() : null;
info.description = Strings.emptyToNull(p.getDescription());
info.state = p.getState();
info.id = Url.encode(info.name);
List<WebLinkInfo> links = webLinks.getProjectLinks(p.getName());
info.webLinks = links.isEmpty() ? null : links;
return info;
}
Aggregations