use of org.orcid.jaxb.model.common_rc4.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getKeywordsElement.
private Keywords getKeywordsElement(Visibility... vs) {
Keywords elements = new Keywords();
for (Visibility v : vs) {
Keyword element = new Keyword();
element.setVisibility(v);
if (elements.getKeywords() == null) {
elements.setKeywords(new ArrayList<Keyword>());
}
elements.getKeywords().add(element);
}
return elements;
}
use of org.orcid.jaxb.model.common_rc4.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getActivitiesSummaryElement.
private ActivitiesSummary getActivitiesSummaryElement() {
Visibility[] vs = { Visibility.PUBLIC, Visibility.PUBLIC, Visibility.PUBLIC };
ActivitiesSummary s = new ActivitiesSummary();
s.setEducations(getEducations(vs));
s.setEmployments(getEmployments(vs));
s.setFundings(getFundings(vs));
s.setPeerReviews(getPeerReviews(vs));
s.setWorks(getWorks(vs));
return s;
}
use of org.orcid.jaxb.model.common_rc4.Visibility in project ORCID-Source by ORCID.
the class PublicAPISecurityManagerV2Test method getPersonExternalIdentifiersElement.
private PersonExternalIdentifiers getPersonExternalIdentifiersElement(Visibility... vs) {
PersonExternalIdentifiers elements = new PersonExternalIdentifiers();
for (Visibility v : vs) {
PersonExternalIdentifier element = new PersonExternalIdentifier();
element.setVisibility(v);
if (elements.getExternalIdentifiers() == null) {
elements.setExternalIdentifiers(new ArrayList<PersonExternalIdentifier>());
}
elements.getExternalIdentifiers().add(element);
}
return elements;
}
use of org.orcid.jaxb.model.common_rc4.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_rc4.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;
}
Aggregations