コード例 #1
0
 public ClientResponse getGroupIdRecords(int pageSize, int page, String accessToken) {
   URI uri =
       UriBuilder.fromPath(GROUP_ID_RECORD)
           .queryParam("page-size", pageSize)
           .queryParam("page", page)
           .build();
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #2
0
 public ClientResponse updateExternalIdentifier(
     String orcid, PersonExternalIdentifier externalIdentifier, String accessToken) {
   URI uri =
       UriBuilder.fromPath(EXTERNAL_IDENTIFIERS + PUTCODE)
           .build(orcid, externalIdentifier.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(
       uri, VND_ORCID_XML, externalIdentifier, accessToken);
 }
コード例 #3
0
 public ClientResponse updatePeerReview(String orcid, PeerReview peerReview, String accessToken) {
   URI uri = UriBuilder.fromPath(PEER_REVIEW + PUTCODE).build(orcid, peerReview.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(
       uri, VND_ORCID_XML, peerReview, accessToken);
 }
コード例 #4
0
 public ClientResponse updateWork(String orcid, Work work, String accessToken) {
   URI uri = UriBuilder.fromPath(WORK + PUTCODE).build(orcid, work.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(uri, VND_ORCID_XML, work, accessToken);
 }
コード例 #5
0
 public ClientResponse viewActivities(String orcid, String accessToken) {
   URI activitiesUri = UriBuilder.fromPath(ACTIVITIES).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(activitiesUri, VND_ORCID_XML, accessToken);
 }
コード例 #6
0
 public ClientResponse viewRecord(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(PROFILE_ROOT_PATH).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #7
0
 public ClientResponse viewAddress(String orcid, Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(ADDRESS + PUTCODE).build(orcid, putCode);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #8
0
 public ClientResponse updateAddress(String orcid, Address address, String accessToken) {
   URI uri = UriBuilder.fromPath(ADDRESS + PUTCODE).build(orcid, address.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(uri, VND_ORCID_XML, address, accessToken);
 }
コード例 #9
0
 public ClientResponse viewKeywords(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(KEYWORDS).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #10
0
 public ClientResponse getEmails(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(EMAIL).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #11
0
 public ClientResponse deleteResearcherUrl(String orcid, Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(RESEARCHER_URLS + PUTCODE).build(orcid, putCode);
   return orcidClientHelper.deleteClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #12
0
 public ClientResponse getResearcherUrls(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(RESEARCHER_URLS).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #13
0
 public ClientResponse updateResearcherUrls(String orcid, ResearcherUrl rUrl, String accessToken) {
   URI uri = UriBuilder.fromPath(RESEARCHER_URLS + PUTCODE).build(orcid, rUrl.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(uri, VND_ORCID_XML, rUrl, accessToken);
 }
コード例 #14
0
 public ClientResponse deleteGroupIdRecord(Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(GROUP_ID_RECORD + PUTCODE).build(putCode);
   return orcidClientHelper.deleteClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #15
0
 public ClientResponse createGroupIdRecord(GroupIdRecord groupId, String accessToken) {
   URI uri = UriBuilder.fromPath(GROUP_ID_RECORD).build();
   return orcidClientHelper.postClientResponseWithToken(uri, VND_ORCID_XML, groupId, accessToken);
 }
コード例 #16
0
 public ClientResponse createKeyword(String orcid, Keyword keyword, String accessToken) {
   URI uri = UriBuilder.fromPath(KEYWORDS).build(orcid);
   return orcidClientHelper.postClientResponseWithToken(uri, VND_ORCID_XML, keyword, accessToken);
 }
コード例 #17
0
 public ClientResponse updateKeyword(String orcid, Keyword keyword, String accessToken) {
   URI uri = UriBuilder.fromPath(KEYWORDS + PUTCODE).build(orcid, keyword.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(uri, VND_ORCID_XML, keyword, accessToken);
 }
コード例 #18
0
 public ClientResponse createOtherName(String orcid, OtherName otherName, String accessToken) {
   URI uri = UriBuilder.fromPath(OTHER_NAMES).build(orcid);
   return orcidClientHelper.postClientResponseWithToken(
       uri, VND_ORCID_XML, otherName, accessToken);
 }
コード例 #19
0
 public ClientResponse createAddress(String orcid, Address address, String accessToken) {
   URI uri = UriBuilder.fromPath(ADDRESS).build(orcid);
   return orcidClientHelper.postClientResponseWithToken(uri, VND_ORCID_XML, address, accessToken);
 }
コード例 #20
0
 public ClientResponse updateOtherName(String orcid, OtherName otherName, String accessToken) {
   URI uri = UriBuilder.fromPath(OTHER_NAMES + PUTCODE).build(orcid, otherName.getPutCode());
   return orcidClientHelper.putClientResponseWithToken(uri, VND_ORCID_XML, otherName, accessToken);
 }
コード例 #21
0
 public ClientResponse viewAddresses(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(ADDRESS).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #22
0
 public ClientResponse viewOtherName(String orcid, Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(OTHER_NAMES + PUTCODE).build(orcid, putCode);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #23
0
 public ClientResponse viewPerson(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(PERSON).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #24
0
 public ClientResponse createExternalIdentifier(
     String orcid, PersonExternalIdentifier externalIdentifier, String accessToken) {
   URI uri = UriBuilder.fromPath(EXTERNAL_IDENTIFIERS).build(orcid);
   return orcidClientHelper.postClientResponseWithToken(
       uri, VND_ORCID_XML, externalIdentifier, accessToken);
 }
コード例 #25
0
 public ClientResponse viewLocationXml(URI location, String accessToken)
     throws URISyntaxException {
   return orcidClientHelper.getClientResponseWithToken(location, VND_ORCID_XML, accessToken);
 }
コード例 #26
0
 public ClientResponse viewExternalIdentifier(String orcid, Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(EXTERNAL_IDENTIFIERS + PUTCODE).build(orcid, putCode);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #27
0
 public ClientResponse createWorkJson(String orcid, Work work, String accessToken) {
   return orcidClientHelper.postClientResponseWithToken(
       UriBuilder.fromPath(WORK).build(orcid), VND_ORCID_JSON, work, accessToken);
 }
コード例 #28
0
 public ClientResponse viewBiography(String orcid, String accessToken) {
   URI uri = UriBuilder.fromPath(BIOGRAPHY).build(orcid);
   return orcidClientHelper.getClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #29
0
 public ClientResponse deleteWorkXml(String orcid, Long putCode, String accessToken) {
   URI uri = UriBuilder.fromPath(WORK + PUTCODE).build(orcid, putCode);
   return orcidClientHelper.deleteClientResponseWithToken(uri, VND_ORCID_XML, accessToken);
 }
コード例 #30
0
 public ClientResponse createPeerReviewJson(
     String orcid, PeerReview peerReview, String accessToken) {
   return orcidClientHelper.postClientResponseWithToken(
       UriBuilder.fromPath(PEER_REVIEW).build(orcid), VND_ORCID_JSON, peerReview, accessToken);
 }