Search in sources :

Example 16 with Organization

use of org.orcid.jaxb.model.common_v2.Organization in project ORCID-Source by ORCID.

the class ProfileFundingManagerTest method getFundingSummary.

private FundingSummary getFundingSummary(String titleValue, String extIdValue, Visibility visibility) {
    FundingSummary summary = new FundingSummary();
    FundingTitle fundingTitle = new FundingTitle();
    fundingTitle.setTitle(new Title(titleValue));
    summary.setTitle(fundingTitle);
    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);
    Organization org = new Organization();
    org.setName("org-name");
    OrganizationAddress address = new OrganizationAddress();
    address.setCity("city");
    address.setCountry(Iso3166Country.US);
    org.setAddress(address);
    summary.setOrganization(org);
    return summary;
}
Also used : ExternalIDs(org.orcid.jaxb.model.record_v2.ExternalIDs) Organization(org.orcid.jaxb.model.common_v2.Organization) ExternalID(org.orcid.jaxb.model.record_v2.ExternalID) OrganizationAddress(org.orcid.jaxb.model.common_v2.OrganizationAddress) FundingSummary(org.orcid.jaxb.model.record.summary_v2.FundingSummary) FundingTitle(org.orcid.jaxb.model.record_v2.FundingTitle) Title(org.orcid.jaxb.model.common_v2.Title) FundingTitle(org.orcid.jaxb.model.record_v2.FundingTitle) Url(org.orcid.jaxb.model.common_v2.Url)

Example 17 with Organization

use of org.orcid.jaxb.model.common_v2.Organization 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;
}
Also used : Organization(org.orcid.jaxb.model.common_v2.Organization) OrganizationAddress(org.orcid.jaxb.model.common_v2.OrganizationAddress)

Aggregations

Organization (org.orcid.jaxb.model.common_v2.Organization)14 OrganizationAddress (org.orcid.jaxb.model.common_v2.OrganizationAddress)14 ExternalID (org.orcid.jaxb.model.record_v2.ExternalID)6 ExternalIDs (org.orcid.jaxb.model.record_v2.ExternalIDs)6 DisambiguatedOrganization (org.orcid.jaxb.model.common_v2.DisambiguatedOrganization)5 FuzzyDate (org.orcid.jaxb.model.common_v2.FuzzyDate)5 Url (org.orcid.jaxb.model.common_v2.Url)5 Title (org.orcid.jaxb.model.common_v2.Title)4 Day (org.orcid.jaxb.model.common_v2.Day)3 Month (org.orcid.jaxb.model.common_v2.Month)3 Visibility (org.orcid.jaxb.model.common_v2.Visibility)3 Year (org.orcid.jaxb.model.common_v2.Year)3 Education (org.orcid.jaxb.model.record_v2.Education)3 Funding (org.orcid.jaxb.model.record_v2.Funding)3 PeerReview (org.orcid.jaxb.model.record_v2.PeerReview)3 OrgEntity (org.orcid.persistence.jpa.entities.OrgEntity)3 SourceEntity (org.orcid.persistence.jpa.entities.SourceEntity)3 Source (org.orcid.jaxb.model.common_v2.Source)2 Employment (org.orcid.jaxb.model.record_v2.Employment)2 FundingContributor (org.orcid.jaxb.model.record_v2.FundingContributor)2