Project

General

Profile

« Previous | Next » 

Revision 51451

added preliminary support for events regarding software

View differences:

ProtoMapping.java
97 97
		return p;
98 98
	}
99 99

  
100
	protected static final Software mapRelatedSoftware(final ResultProtos.Result result) {
101
		final Software s = new Software();
102
		final ResultProtos.Result.Metadata rp = result.getMetadata();
103

  
104
		s.setName(getValue(rp.getTitleList()));
105
		s.setDescription(getValue(rp.getDescriptionList()));
106
		s.setLandingPage(getValue(rp.getCodeRepositoryUrl()));
107

  
108
		if (result.getInstanceList() != null && result.getInstanceList().size() > 0) {
109
			s.setRepository(getValue(result.getInstanceList().get(0).getUrlList()));
110
		}
111

  
112
		//System.out.println("ProtoMapping.mapRelatedProjects project = " + project.toJSON());
113
		return s;
114
	}
100 115
}

Also available in: Unified diff