public final class ORCIDFundingHelper extends ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
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 |
---|---|
ORCIDFundingHelper(ORCIDClient orcidClient) |
Initializes the helper with a given ORCID client.
|
Modifier and Type | Method | Description |
---|---|---|
org.um.dsi.gavea.orcid.model.funding.Funding |
cloneE(org.um.dsi.gavea.orcid.model.funding.Funding funding) |
Clones an activity.
|
org.um.dsi.gavea.orcid.model.funding.FundingSummary |
cloneS(org.um.dsi.gavea.orcid.model.funding.FundingSummary summary) |
Clones an activity summary.
|
org.um.dsi.gavea.orcid.model.funding.Funding |
createUpdate(org.um.dsi.gavea.orcid.model.funding.Funding 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.funding.Funding funding) |
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.funding.FundingSummary funding) |
Returns the non-null external identifiers of an activity summary (null
becomes empty list).
|
void |
setExternalIdsE(org.um.dsi.gavea.orcid.model.funding.Funding funding,
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.funding.FundingSummary 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 ORCIDFundingHelper(ORCIDClient orcidClient)
orcidClient
- the ORCID clientpublic org.um.dsi.gavea.orcid.model.common.ExternalIds getNonNullExternalIdsE(org.um.dsi.gavea.orcid.model.funding.Funding funding)
ORCIDHelper.getNonNullExternalIdsS(ElementSummary)
because
ORCIDHelper.summarize(ElementSummary)
itself calls this method.getNonNullExternalIdsE
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
funding
- 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.funding.FundingSummary funding)
getNonNullExternalIdsS
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
funding
- the ORCID activity summary from which to retrieve the external
identifierspublic void setExternalIdsE(org.um.dsi.gavea.orcid.model.funding.Funding funding, org.um.dsi.gavea.orcid.model.common.ExternalIds eids)
setExternalIdsE
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
funding
- the ORCID activity to which to assign the external identifierseids
- the external identifiers to be assignedpublic void setExternalIdsS(org.um.dsi.gavea.orcid.model.funding.FundingSummary summary, org.um.dsi.gavea.orcid.model.common.ExternalIds eids)
setExternalIdsS
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
summary
- the ORCID activity summary to which to assign the external
identifierseids
- the external identifiers to be assignedpublic org.um.dsi.gavea.orcid.model.funding.Funding createUpdate(org.um.dsi.gavea.orcid.model.funding.Funding original, ExternalIdsDiff diff)
createUpdate
in class ORCIDHelper<org.um.dsi.gavea.orcid.model.funding.Funding,org.um.dsi.gavea.orcid.model.funding.FundingSummary,org.um.dsi.gavea.orcid.model.activities.FundingGroup,org.um.dsi.gavea.orcid.model.funding.FundingType>
original
- the original ORCID activitydiff
- the difference on external identifierspublic org.um.dsi.gavea.orcid.model.funding.FundingSummary cloneS(org.um.dsi.gavea.orcid.model.funding.FundingSummary summary)
summary
- the ORCID activity summary to be clonedpublic org.um.dsi.gavea.orcid.model.funding.Funding cloneE(org.um.dsi.gavea.orcid.model.funding.Funding funding)
funding
- the ORCID activity to be cloned