public interface ORCIDClient
works
.Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
addWork(org.um.dsi.gavea.orcid.model.work.Work work)
Adds a new work to the ORCID profile.
|
void |
deleteWork(java.math.BigInteger putcode)
Deletes a work from the ORCID profile.
|
org.um.dsi.gavea.orcid.model.activities.ActivitiesSummary |
getActivitiesSummary()
Retrieves every activity summary from the ORCID profile.
|
java.lang.String |
getClientId()
Returns the Member API client id that will commit the changes (i.e., the
works' source).
|
org.um.dsi.gavea.orcid.model.work.Work |
getWork(java.math.BigInteger putcode)
Retrieves a complete work from the ORCID profile (as opposed to only its
summary).
|
int |
threads()
The number of worker threads that will be used to communicate with the
ORCID API.
|
void |
updateWork(java.math.BigInteger putcode,
org.um.dsi.gavea.orcid.model.work.Work work)
Updates a work in the ORCID profile.
|
java.lang.String getClientId()
org.um.dsi.gavea.orcid.model.work.Work getWork(java.math.BigInteger putcode) throws org.um.dsi.gavea.orcid.client.exception.OrcidClientException
putcode
- the put-code of the workorg.um.dsi.gavea.orcid.client.exception.OrcidClientException
- if the communication with ORCID failsjava.math.BigInteger addWork(org.um.dsi.gavea.orcid.model.work.Work work) throws org.um.dsi.gavea.orcid.client.exception.OrcidClientException
work
- the work to be added to the ORCID profileorg.um.dsi.gavea.orcid.client.exception.OrcidClientException
- if the communication with ORCID failsvoid deleteWork(java.math.BigInteger putcode) throws org.um.dsi.gavea.orcid.client.exception.OrcidClientException
putcode
- the put-code of the work to be deletedorg.um.dsi.gavea.orcid.client.exception.OrcidClientException
- if the communication with ORCID failsvoid updateWork(java.math.BigInteger putcode, org.um.dsi.gavea.orcid.model.work.Work work) throws org.um.dsi.gavea.orcid.client.exception.OrcidClientException
putcode
- the put-code of the work to be updatedwork
- the new state of the workorg.um.dsi.gavea.orcid.client.exception.OrcidClientException
- if the communication with ORCID failsorg.um.dsi.gavea.orcid.model.activities.ActivitiesSummary getActivitiesSummary() throws org.um.dsi.gavea.orcid.client.exception.OrcidClientException
org.um.dsi.gavea.orcid.client.exception.OrcidClientException
- if the communication with ORCID failsint threads()