use of org.orcid.jaxb.model.common_rc2.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getPeerReviews.
private PeerReviews getPeerReviews(Visibility... vs) {
PeerReviews peerReviews = new PeerReviews();
for (Visibility v : vs) {
PeerReviewGroup g = new PeerReviewGroup();
PeerReviewSummary s = new PeerReviewSummary();
s.setVisibility(v);
g.getPeerReviewSummary().add(s);
peerReviews.getPeerReviewGroup().add(g);
}
return peerReviews;
}
use of org.orcid.jaxb.model.common_rc2.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getEducations.
private Educations getEducations(Visibility... vs) {
Educations e = new Educations();
for (Visibility v : vs) {
EducationSummary s = new EducationSummary();
s.setVisibility(v);
e.getSummaries().add(s);
}
return e;
}
use of org.orcid.jaxb.model.common_rc2.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getOtherNamesElement.
private OtherNames getOtherNamesElement(Visibility... vs) {
OtherNames otherNames = new OtherNames();
for (Visibility v : vs) {
OtherName o = new OtherName();
o.setVisibility(v);
if (otherNames.getOtherNames() == null) {
otherNames.setOtherNames(new ArrayList<OtherName>());
}
otherNames.getOtherNames().add(o);
}
return otherNames;
}
use of org.orcid.jaxb.model.common_rc2.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getWorks.
private Works getWorks(Visibility... vs) {
Works works = new Works();
for (Visibility v : vs) {
WorkGroup g = new WorkGroup();
WorkSummary s = new WorkSummary();
s.setVisibility(v);
g.getWorkSummary().add(s);
works.getWorkGroup().add(g);
}
return works;
}
use of org.orcid.jaxb.model.common_rc2.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getResearcherUrlsElement.
private ResearcherUrls getResearcherUrlsElement(Visibility... vs) {
ResearcherUrls elements = new ResearcherUrls();
for (Visibility v : vs) {
ResearcherUrl element = new ResearcherUrl();
element.setVisibility(v);
if (elements.getResearcherUrls() == null) {
elements.setResearcherUrls(new ArrayList<ResearcherUrl>());
}
elements.getResearcherUrls().add(element);
}
return elements;
}
Aggregations