public final class ORCIDWorkHelper extends ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
client
.
Provides support for asynchronous communication with ORCID although it is
only active for GET requests due to resource limitations.client, INVALID_EXTERNALIDENTIFIERS, INVALID_ORGANIZATION, INVALID_PUBLICATIONDATE, INVALID_TITLE, INVALID_TYPE, INVALID_YEAR, OVERLAPPING_EIDs
Constructor | Description |
---|---|
ORCIDWorkHelper(ORCIDClient orcidClient) |
Initializes the helper with a given ORCID client.
|
Modifier and Type | Method | Description |
---|---|---|
org.um.dsi.gavea.orcid.model.work.Work |
cloneE(org.um.dsi.gavea.orcid.model.work.Work work) |
Clones an activity.
|
org.um.dsi.gavea.orcid.model.work.WorkSummary |
cloneS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary) |
Clones an activity summary.
|
org.um.dsi.gavea.orcid.model.work.Work |
createUpdate(org.um.dsi.gavea.orcid.model.work.Work original,
ExternalIdsDiff diff) |
Creates an update to an activity given the difference on meta-data.
|
org.um.dsi.gavea.orcid.model.common.ExternalIds |
getNonNullExternalIdsE(org.um.dsi.gavea.orcid.model.work.Work work) |
Returns the non-null external identifiers of an activity (null becomes
empty list).
|
org.um.dsi.gavea.orcid.model.common.ExternalIds |
getNonNullExternalIdsS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary) |
Returns the non-null external identifiers of an activity summary (null
becomes empty list).
|
void |
setExternalIdsE(org.um.dsi.gavea.orcid.model.work.Work work,
org.um.dsi.gavea.orcid.model.common.ExternalIds eids) |
Assigns a set of external identifiers to an activity.
|
void |
setExternalIdsS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary,
org.um.dsi.gavea.orcid.model.common.ExternalIds eids) |
Assigns a set of external identifiers to an activity summary.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, cleanWorkLocalKey, delete, deleteAllSourced, factoryStaticFundings, factoryStaticWorks, getActivityLocalKey, getActivityLocalKey, getAllTypedSummaries, getFulls, getPartOfExternalIdsE, getSelfExternalIdsDiffS, getSelfExternalIdsE, getSourcedSummaries, getTypeE, hasNewSelfIDs, isUpToDateE, isUpToDateS, testMinimalQuality, tryMinimalQualityE, update
public ORCIDWorkHelper(ORCIDClient orcidClient)
orcidClient
- the ORCID clientpublic org.um.dsi.gavea.orcid.model.common.ExternalIds getNonNullExternalIdsE(org.um.dsi.gavea.orcid.model.work.Work work)
ORCIDHelper.getNonNullExternalIdsS(ElementSummary)
because
ORCIDHelper.summarize(ElementSummary)
itself calls this method.getNonNullExternalIdsE
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
work
- the ORCID activity from which to retrieve the external
identifierspublic org.um.dsi.gavea.orcid.model.common.ExternalIds getNonNullExternalIdsS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary)
getNonNullExternalIdsS
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
summary
- the ORCID activity summary from which to retrieve the external
identifierspublic void setExternalIdsE(org.um.dsi.gavea.orcid.model.work.Work work, org.um.dsi.gavea.orcid.model.common.ExternalIds eids)
setExternalIdsE
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
work
- the ORCID activity to which to assign the external identifierseids
- the external identifiers to be assignedpublic void setExternalIdsS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary, org.um.dsi.gavea.orcid.model.common.ExternalIds eids)
setExternalIdsS
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
summary
- the ORCID activity summary to which to assign the external
identifierseids
- the external identifiers to be assignedpublic org.um.dsi.gavea.orcid.model.work.Work createUpdate(org.um.dsi.gavea.orcid.model.work.Work original, ExternalIdsDiff diff)
createUpdate
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.work.Work,org.um.dsi.gavea.orcid.model.work.WorkSummary,org.um.dsi.gavea.orcid.model.activities.WorkGroup,org.um.dsi.gavea.orcid.model.work.WorkType>
original
- the original ORCID activitydiff
- the difference on external identifierspublic org.um.dsi.gavea.orcid.model.work.WorkSummary cloneS(org.um.dsi.gavea.orcid.model.work.WorkSummary summary)
summary
- the ORCID activity summary to be clonedpublic org.um.dsi.gavea.orcid.model.work.Work cloneE(org.um.dsi.gavea.orcid.model.work.Work work)
work
- the ORCID activity to be cloned