use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class PeerReviewManagerTest method getPeerReviewSummary.
private PeerReviewSummary getPeerReviewSummary(String titleValue, String extIdValue, Visibility visibility) {
PeerReviewSummary summary = new PeerReviewSummary();
summary.setGroupId(titleValue);
summary.setVisibility(visibility);
ExternalIDs extIds = new ExternalIDs();
ExternalID extId = new ExternalID();
extId.setRelationship(Relationship.SELF);
extId.setType("doi");
extId.setUrl(new Url("http://orcid.org"));
extId.setValue(extIdValue);
extIds.getExternalIdentifier().add(extId);
summary.setExternalIdentifiers(extIds);
return summary;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createMembershipSummary.
protected MembershipSummary createMembershipSummary(Visibility v, String sourceId) {
MembershipSummary e = new MembershipSummary();
e.setVisibility(v);
setSource(e, sourceId);
return e;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility 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.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createInvitedPositionSummary.
protected InvitedPositionSummary createInvitedPositionSummary(Visibility v, String sourceId) {
InvitedPositionSummary e = new InvitedPositionSummary();
e.setVisibility(v);
setSource(e, sourceId);
return e;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createPersonExternalIdentifier.
protected PersonExternalIdentifier createPersonExternalIdentifier(Visibility v, String sourceId) {
PersonExternalIdentifier p = new PersonExternalIdentifier();
p.setValue("ext-id-" + System.currentTimeMillis());
p.setVisibility(v);
setSource(p, sourceId);
return p;
}
Aggregations