Commit cd7f7f727e4b93de978d8dd485802c37ebff8437
1 parent
6c41472c88
Exists in
master
and in
1 other branch
Change namespace for bulks
Showing
2 changed files
with
12 additions
and
2 deletions
Show diff stats
src/main/java/org/um/dsi/gavea/orcid/client/OrcidOAuthClient.java
... | ... | @@ -41,6 +41,8 @@ import org.um.dsi.gavea.orcid.model.researcherurl.ResearcherUrl; |
41 | 41 | import org.um.dsi.gavea.orcid.model.researcherurl.ResearcherUrls; |
42 | 42 | import org.um.dsi.gavea.orcid.model.work.Work; |
43 | 43 | import org.um.dsi.gavea.orcid.model.work.WorkSummary; |
44 | +import org.um.dsi.gavea.orcid.model.bulk.Bulk; | |
45 | + | |
44 | 46 | |
45 | 47 | public class OrcidOAuthClient extends BaseOrcidOAuthClient { |
46 | 48 | private static final long serialVersionUID = -6655680509383446710L; |
... | ... | @@ -807,11 +809,11 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient { |
807 | 809 | } |
808 | 810 | |
809 | 811 | /* Bulks */ |
810 | - public org.orcid.ns.bulk.Bulk addWorks(final OrcidAccessToken token, final org.orcid.ns.bulk.Bulk bulk) throws OrcidClientException { | |
812 | + public Bulk addWorks(final OrcidAccessToken token, final Bulk bulk) throws OrcidClientException { | |
811 | 813 | Response response = null; |
812 | 814 | try { |
813 | 815 | response = post(OrcidConstants.ENDPOINT_WORKS, token, Entity.entity(bulk, MediaType.APPLICATION_XML_TYPE)); |
814 | - return response.readEntity(org.orcid.ns.bulk.Bulk.class); | |
816 | + return response.readEntity(Bulk.class); | |
815 | 817 | } finally { |
816 | 818 | if (response != null) |
817 | 819 | response.close(); | ... | ... |
src/main/resources/binding/orcid-2.0.xjb
... | ... | @@ -181,4 +181,12 @@ |
181 | 181 | <jaxb:package name="org.um.dsi.gavea.orcid.model.work" /> |
182 | 182 | </jaxb:schemaBindings> |
183 | 183 | </jaxb:bindings> |
184 | + | |
185 | + <jaxb:bindings schemaLocation="../xsd/record_2.0/bulk-2.0.xsd" node="/xs:schema"> | |
186 | + <jaxb:schemaBindings> | |
187 | + <jaxb:package name="org.um.dsi.gavea.orcid.model.bulk" /> | |
188 | + </jaxb:schemaBindings> | |
189 | + </jaxb:bindings> | |
190 | + | |
191 | + | |
184 | 192 | </jaxb:bindings> |
185 | 193 | \ No newline at end of file | ... | ... |