use of org.orcid.jaxb.model.record_v2.ExternalIDs in project ORCID-Source by ORCID.
the class FundingExternalIDsConverter method convertFrom.
@Override
public ExternalIDs convertFrom(String externalIdentifiersAsString, Type<ExternalIDs> type) {
FundingExternalIdentifiers jpaExtIds = FundingExternalIdentifiers.fromDBJSONString(externalIdentifiersAsString);
ExternalIDs result = new ExternalIDs();
for (FundingExternalIdentifier jpaExtId : jpaExtIds.getFundingExternalIdentifier()) {
result.getExternalIdentifier().add(jpaExtId.toRecordPojo());
}
return result;
}
use of org.orcid.jaxb.model.record_v2.ExternalIDs in project ORCID-Source by ORCID.
the class SingleWorkExternalIdentifierFromJsonConverter method convertTo.
@Override
public String convertTo(ExternalID source, Type<String> destinationType) {
ExternalIDs eids = new ExternalIDs();
eids.getExternalIdentifier().add(source);
WorkExternalIdentifiers ids = new WorkExternalIdentifiers(eids);
return ids.toDBJSONString();
}
use of org.orcid.jaxb.model.record_v2.ExternalIDs in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createPeerReviewSummary.
protected PeerReviewSummary createPeerReviewSummary(Visibility v, String sourceId, String extIdValue) {
PeerReviewSummary p = new PeerReviewSummary();
p.setVisibility(v);
p.setGroupId(EXTID_SHARED);
setSource(p, sourceId);
ExternalID extId = new ExternalID();
extId.setValue(extIdValue);
ExternalIDs extIds = new ExternalIDs();
extIds.getExternalIdentifier().add(extId);
addSharedExtId(extIds);
p.setExternalIdentifiers(extIds);
return p;
}
use of org.orcid.jaxb.model.record_v2.ExternalIDs in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createFundingSummary.
protected FundingSummary createFundingSummary(Visibility v, String sourceId, String extIdValue) {
FundingSummary f = new FundingSummary();
f.setVisibility(v);
setSource(f, sourceId);
ExternalID extId = new ExternalID();
extId.setValue(extIdValue);
ExternalIDs extIds = new ExternalIDs();
extIds.getExternalIdentifier().add(extId);
addSharedExtId(extIds);
f.setExternalIdentifiers(extIds);
return f;
}
use of org.orcid.jaxb.model.record_v2.ExternalIDs in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createWorkSummary.
protected WorkSummary createWorkSummary(Visibility v, String sourceId, String extIdValue) {
WorkSummary work = new WorkSummary();
work.setVisibility(v);
ExternalID extId = new ExternalID();
extId.setValue(extIdValue);
ExternalIDs extIds = new ExternalIDs();
extIds.getExternalIdentifier().add(extId);
work.setExternalIdentifiers(extIds);
addSharedExtId(extIds);
setSource(work, sourceId);
return work;
}
Aggregations