Project

General

Profile

« Previous | Next » 

Revision 55031

update for the mapping to the CommunityIpenAIRECommunities class

View differences:

CommunityApiCore.java
221 221
		return zc;
222 222
	}
223 223

  
224
	public List<String> getOpenAIRECommunities(String zenodoId) throws IOException {
224
	public CommunityOpenAIRECommunities getOpenAIRECommunities(String zenodoId) throws IOException {
225 225

  
226 226
			if(cci.getInverseZenodoCommunityMap().containsKey(zenodoId))
227
				return cci.getInverseZenodoCommunityMap().get(zenodoId).stream().collect(Collectors.toList());
228
			return new ArrayList<>();
227
				return new CommunityOpenAIRECommunities().setZenodoid(zenodoId).setOpenAirecommunitylist(cci.getInverseZenodoCommunityMap().get(zenodoId).stream().collect(Collectors.toList()));
228
			return new CommunityOpenAIRECommunities();
229 229

  
230 230
	}
231 231

  

Also available in: Unified diff