use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createWork.
protected Work createWork(Visibility v, String sourceId) {
Work work = new Work();
work.setVisibility(v);
setSource(work, sourceId);
return work;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createOtherName.
protected OtherName createOtherName(Visibility v, String sourceId) {
OtherName otherName = new OtherName();
otherName.setContent("other-name-" + System.currentTimeMillis());
otherName.setVisibility(v);
setSource(otherName, sourceId);
return otherName;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createAddress.
protected Address createAddress(Visibility v, String sourceId) {
Address a = new Address();
a.setVisibility(v);
Iso3166Country[] all = Iso3166Country.values();
Random r = new Random();
int index = r.nextInt(all.length);
if (index < 0 || index >= all.length) {
index = 0;
}
a.setCountry(new Country(all[index]));
setSource(a, sourceId);
return a;
}
use of org.orcid.jaxb.model.v3.dev1.common.Visibility in project ORCID-Source by ORCID.
the class OrcidSecurityManagerTestBase method createEducationSummary.
protected EducationSummary createEducationSummary(Visibility v, String sourceId) {
EducationSummary e = new EducationSummary();
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 WorkManagerTest method getWorkSummary.
private WorkSummary getWorkSummary(String titleValue, String extIdValue, Visibility visibility, String displayIndex) {
WorkSummary summary = new WorkSummary();
summary.setDisplayIndex(displayIndex);
Title title = new Title(titleValue);
WorkTitle workTitle = new WorkTitle();
workTitle.setTitle(title);
summary.setTitle(workTitle);
summary.setType(WorkType.ARTISTIC_PERFORMANCE);
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;
}
Aggregations