use of org.orcid.persistence.jpa.entities.EndDateEntity in project ORCID-Source by ORCID.
the class JpaJaxbEmploymentAdapterTest method getEmploymentEntity.
private OrgAffiliationRelationEntity getEmploymentEntity() {
OrgEntity orgEntity = new OrgEntity();
orgEntity.setCity("org:city");
orgEntity.setCountry(org.orcid.jaxb.model.message.Iso3166Country.US);
orgEntity.setName("org:name");
orgEntity.setRegion("org:region");
orgEntity.setUrl("org:url");
orgEntity.setSource(new SourceEntity("APP-000000001"));
OrgAffiliationRelationEntity result = new OrgAffiliationRelationEntity();
result.setAffiliationType(AffiliationType.EMPLOYMENT);
result.setDepartment("employment:department");
result.setEndDate(new EndDateEntity(2020, 2, 2));
result.setId(123456L);
result.setOrg(orgEntity);
result.setProfile(new ProfileEntity("0000-0001-0002-0003"));
result.setStartDate(new StartDateEntity(2000, 1, 1));
result.setTitle("employment:title");
result.setVisibility(org.orcid.jaxb.model.common_v2.Visibility.PRIVATE);
result.setClientSourceId("APP-000000001");
return result;
}
use of org.orcid.persistence.jpa.entities.EndDateEntity in project ORCID-Source by ORCID.
the class JpaJaxbFundingAdapterTest method getProfileFundingEntity.
private ProfileFundingEntity getProfileFundingEntity() {
ProfileFundingEntity result = new ProfileFundingEntity();
result.setContributorsJson("{\"contributor\":[{\"contributorOrcid\":{\"value\":null,\"valueAsString\":null,\"uri\":\"http://orcid.org/8888-8888-8888-8880\",\"path\":\"8888-8888-8888-8880\",\"host\":\"orcid.org\"},\"creditName\":{\"content\":\"funding:creditName\"},\"contributorEmail\":{\"value\":\"funding@contributorEmail.com\"},\"contributorAttributes\":{\"contributorRole\":\"LEAD\"}}]}");
result.setDescription("funding:description");
result.setEndDate(new EndDateEntity(2020, 1, 1));
result.setStartDate(new StartDateEntity(2000, 1, 1));
result.setExternalIdentifiersJson("{\"fundingExternalIdentifier\":[{\"type\":\"GRANT_NUMBER\",\"value\":\"12345\",\"url\":{\"value\":\"http://tempuri.org\"}},{\"type\":\"GRANT_NUMBER\",\"value\":\"67890\",\"url\":{\"value\":\"http://tempuri.org/2\"}}]}");
result.setId(12345L);
result.setNumericAmount(new BigDecimal(123456));
result.setCurrencyCode("CRC");
result.setTitle("funding:title");
result.setTranslatedTitle("funding:translatedTitle");
result.setTranslatedTitleLanguageCode("ES");
result.setType(FundingType.SALARY_AWARD);
result.setVisibility(Visibility.PRIVATE);
return result;
}
use of org.orcid.persistence.jpa.entities.EndDateEntity in project ORCID-Source by ORCID.
the class JpaJaxbFundingAdapterTest method getProfileFundingEntity.
private ProfileFundingEntity getProfileFundingEntity() {
ProfileFundingEntity result = new ProfileFundingEntity();
result.setContributorsJson("{\"contributor\":[{\"contributorOrcid\":{\"value\":null,\"valueAsString\":null,\"uri\":\"http://orcid.org/8888-8888-8888-8880\",\"path\":\"8888-8888-8888-8880\",\"host\":\"orcid.org\"},\"creditName\":{\"content\":\"funding:creditName\"},\"contributorEmail\":{\"value\":\"funding@contributorEmail.com\"},\"contributorAttributes\":{\"contributorRole\":\"LEAD\"}}]}");
result.setDescription("funding:description");
result.setEndDate(new EndDateEntity(2020, 1, 1));
result.setStartDate(new StartDateEntity(2000, 1, 1));
result.setExternalIdentifiersJson("{\"fundingExternalIdentifier\":[{\"type\":\"GRANT_NUMBER\",\"value\":\"12345\",\"url\":{\"value\":\"http://tempuri.org\"}},{\"type\":\"GRANT_NUMBER\",\"value\":\"67890\",\"url\":{\"value\":\"http://tempuri.org/2\"}}]}");
result.setId(12345L);
result.setNumericAmount(new BigDecimal(123456));
result.setCurrencyCode("CRC");
result.setTitle("funding:title");
result.setTranslatedTitle("funding:translatedTitle");
result.setTranslatedTitleLanguageCode("ES");
result.setType(org.orcid.jaxb.model.record_v2.FundingType.SALARY_AWARD);
result.setVisibility(org.orcid.jaxb.model.common_v2.Visibility.PRIVATE);
return result;
}
use of org.orcid.persistence.jpa.entities.EndDateEntity in project ORCID-Source by ORCID.
the class JpaJaxbMembershipAdapterTest method getEntity.
private OrgAffiliationRelationEntity getEntity() {
OrgEntity orgEntity = new OrgEntity();
orgEntity.setCity("org:city");
orgEntity.setCountry(org.orcid.jaxb.model.message.Iso3166Country.US);
orgEntity.setName("org:name");
orgEntity.setRegion("org:region");
orgEntity.setUrl("org:url");
orgEntity.setSource(new SourceEntity("APP-000000001"));
OrgAffiliationRelationEntity result = new OrgAffiliationRelationEntity();
result.setAffiliationType(AffiliationType.MEMBERSHIP);
result.setDepartment("membership:department");
result.setEndDate(new EndDateEntity(2020, 2, 2));
result.setId(123456L);
result.setOrg(orgEntity);
result.setProfile(new ProfileEntity("0000-0001-0002-0003"));
result.setStartDate(new StartDateEntity(2000, 1, 1));
result.setTitle("membership:title");
result.setVisibility(org.orcid.jaxb.model.common_v2.Visibility.PRIVATE);
result.setClientSourceId("APP-000000001");
return result;
}
use of org.orcid.persistence.jpa.entities.EndDateEntity in project ORCID-Source by ORCID.
the class JpaJaxbQualificationAdapterTest method getEntity.
private OrgAffiliationRelationEntity getEntity() {
OrgEntity orgEntity = new OrgEntity();
orgEntity.setCity("org:city");
orgEntity.setCountry(org.orcid.jaxb.model.message.Iso3166Country.US);
orgEntity.setName("org:name");
orgEntity.setRegion("org:region");
orgEntity.setUrl("org:url");
orgEntity.setSource(new SourceEntity("APP-000000001"));
OrgAffiliationRelationEntity result = new OrgAffiliationRelationEntity();
result.setAffiliationType(AffiliationType.QUALIFICATION);
result.setDepartment("qualification:department");
result.setEndDate(new EndDateEntity(2020, 2, 2));
result.setId(123456L);
result.setOrg(orgEntity);
result.setProfile(new ProfileEntity("0000-0001-0002-0003"));
result.setStartDate(new StartDateEntity(2000, 1, 1));
result.setTitle("qualification:title");
result.setVisibility(org.orcid.jaxb.model.common_v2.Visibility.PRIVATE);
result.setClientSourceId("APP-000000001");
return result;
}
Aggregations