use of org.orcid.jaxb.model.common_v2.OrganizationAddress in project ORCID-Source by ORCID.
the class SourceInActivitiesTest method getOrganization.
private Organization getOrganization() {
if (organization == null) {
OrganizationAddress address = new OrganizationAddress();
address.setCity("City");
address.setRegion("Region");
address.setCountry(org.orcid.jaxb.model.common_v2.Iso3166Country.US);
organization = new Organization();
organization.setName("Org name");
organization.setAddress(address);
}
return organization;
}
use of org.orcid.jaxb.model.common_v2.OrganizationAddress in project ORCID-Source by ORCID.
the class PeerReviewManagerTest method getPeerReview.
private PeerReview getPeerReview(String extIdValue) {
PeerReview peerReview = new PeerReview();
peerReview.setRole(Role.CHAIR);
ExternalIDs extIds = new ExternalIDs();
ExternalID extId = new ExternalID();
extId.setRelationship(Relationship.SELF);
extId.setType("doi");
extId.setUrl(new Url("http://orcid.org"));
if (extIdValue == null) {
extId.setValue("ext-id-value");
} else {
extId.setValue("ext-id-value-" + extIdValue);
}
extIds.getExternalIdentifier().add(extId);
peerReview.setExternalIdentifiers(extIds);
if (extIdValue == null) {
peerReview.setSubjectContainerName(new Title("Peer review title"));
} else {
peerReview.setSubjectContainerName(new Title("Peer review title " + extIdValue));
}
peerReview.setSubjectExternalIdentifier(extId);
Organization org = new Organization();
org.setName("org-name");
OrganizationAddress address = new OrganizationAddress();
address.setCity("city");
address.setCountry(Iso3166Country.US);
org.setAddress(address);
peerReview.setOrganization(org);
peerReview.setType(PeerReviewType.EVALUATION);
peerReview.setVisibility(Visibility.PUBLIC);
return peerReview;
}
use of org.orcid.jaxb.model.common_v2.OrganizationAddress in project ORCID-Source by ORCID.
the class AffiliationsManagerTest method getEducation.
private Education getEducation() {
Education education = new Education();
Organization org = new Organization();
org.setName("org-name");
OrganizationAddress address = new OrganizationAddress();
address.setCity("city");
address.setCountry(Iso3166Country.US);
org.setAddress(address);
education.setOrganization(org);
education.setStartDate(new FuzzyDate(new Year(2016), new Month(3), new Day(29)));
education.setVisibility(Visibility.PUBLIC);
return education;
}
use of org.orcid.jaxb.model.common_v2.OrganizationAddress in project ORCID-Source by ORCID.
the class AffiliationsManagerTest method getEmployment.
private Employment getEmployment() {
Employment employment = new Employment();
Organization org = new Organization();
org.setName("org-name");
OrganizationAddress address = new OrganizationAddress();
address.setCity("city");
address.setCountry(Iso3166Country.US);
org.setAddress(address);
employment.setOrganization(org);
employment.setStartDate(new FuzzyDate(new Year(2016), new Month(3), new Day(29)));
employment.setVisibility(Visibility.PUBLIC);
return employment;
}
use of org.orcid.jaxb.model.common_v2.OrganizationAddress in project ORCID-Source by ORCID.
the class ActivityValidatorTest method getOrganization.
public Organization getOrganization() {
Organization org = new Organization();
OrganizationAddress address = new OrganizationAddress();
address.setCity("city");
address.setCountry(Iso3166Country.US);
address.setRegion("region");
org.setAddress(address);
org.setName("name");
return org;
}
Aggregations