Commit a1e1eca58e5be29809618d3e5cdc855ece9e5dc4

Authored by lpedro
1 parent dd6860788b
Exists in master and in 1 other branch API_v3.0

C4073

src/main/java/org/um/dsi/gavea/orcid/client/OrcidOAuthClient.java
... ... @@ -17,8 +17,10 @@ import org.um.dsi.gavea.orcid.client.constants.OrcidConstants;
17 17 import org.um.dsi.gavea.orcid.client.exception.OrcidClientException;
18 18 import org.um.dsi.gavea.orcid.client.extend.ScopePathTypeExt;
19 19 import org.um.dsi.gavea.orcid.model.activities.ActivitiesSummary;
  20 +import org.um.dsi.gavea.orcid.model.activities.Works;
20 21 import org.um.dsi.gavea.orcid.model.address.Address;
21 22 import org.um.dsi.gavea.orcid.model.address.Addresses;
  23 +import org.um.dsi.gavea.orcid.model.bulk.Bulk;
22 24 import org.um.dsi.gavea.orcid.model.common.ScopePathType;
23 25 import org.um.dsi.gavea.orcid.model.education.Education;
24 26 import org.um.dsi.gavea.orcid.model.education.EducationSummary;
... ... @@ -42,7 +44,6 @@ import org.um.dsi.gavea.orcid.model.researcherurl.ResearcherUrl;
42 44 import org.um.dsi.gavea.orcid.model.researcherurl.ResearcherUrls;
43 45 import org.um.dsi.gavea.orcid.model.work.Work;
44 46 import org.um.dsi.gavea.orcid.model.work.WorkSummary;
45   -import org.um.dsi.gavea.orcid.model.bulk.Bulk;
46 47  
47 48  
48 49 public class OrcidOAuthClient extends BaseOrcidOAuthClient {
... ... @@ -185,12 +186,12 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient {
185 186 }
186 187  
187 188 /* Activities - Works */
188   - public org.um.dsi.gavea.orcid.model.activities.Works readWorksSummary(final OrcidAccessToken token) throws OrcidClientException {
  189 + public Works readWorksSummary(final OrcidAccessToken token) throws OrcidClientException {
189 190 Response response = null;
190 191 try {
191 192 response = get(OrcidConstants.ENDPOINT_WORKS, token, null);
192 193  
193   - return response.readEntity(org.um.dsi.gavea.orcid.model.activities.Works.class);
  194 + return response.readEntity(Works.class);
194 195 } finally {
195 196 if (response != null)
196 197 response.close();
... ...