@Override public ResearcherUrls toResearcherUrlList(Collection<ResearcherUrlEntity> entities) { if (entities == null) { return null; } List<ResearcherUrl> researchUrlList = mapperFacade.mapAsList(entities, ResearcherUrl.class); ResearcherUrls researchUrls = new ResearcherUrls(); researchUrls.setResearcherUrls(researchUrlList); return researchUrls; }
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { LastModifiedDate theLastModifiedDate; theLastModifiedDate = this.getLastModifiedDate(); strategy.appendField(locator, this, "lastModifiedDate", buffer, theLastModifiedDate); } { List<ResearcherUrlType> theResearcherUrl; theResearcherUrl = (((this.researcherUrl!= null)&&(!this.researcherUrl.isEmpty()))?this.getResearcherUrl():null); strategy.appendField(locator, this, "researcherUrl", buffer, theResearcherUrl); } { String thePath; thePath = this.getPath(); strategy.appendField(locator, this, "path", buffer, thePath); } return buffer; }
public void setSourceName(ResearcherUrls researcherUrls) { List<ResearcherUrl> list = researcherUrls.getResearcherUrls(); if (list != null) { for (SourceAware element : list) { setSourceName(element); } } }
public static void setPathToResearcherUrls(ResearcherUrls researcherUrls, String orcid) { if (researcherUrls != null) { researcherUrls.setPath(RESEARCHER_URLS.replace("{orcid}", orcid)); if (researcherUrls.getResearcherUrls() != null && !researcherUrls.getResearcherUrls().isEmpty()) { for (ResearcherUrl rUrl : researcherUrls.getResearcherUrls()) { setPathToResearcherUrl(rUrl, orcid); } } } }
public static void calculateLastModified(ResearcherUrls researcherUrls) { if (researcherUrls != null && researcherUrls.getResearcherUrls() != null && !researcherUrls.getResearcherUrls().isEmpty()) { LastModifiedDate latest = null; for (ResearcherUrl researcherUrl : researcherUrls.getResearcherUrls()) { if (researcherUrl.getLastModifiedDate() != null && researcherUrl.getLastModifiedDate().after(latest)) { latest = researcherUrl.getLastModifiedDate(); } } researcherUrls.setLastModifiedDate(latest); } }
if (rUrls.getResearcherUrls() != null) { ResearcherUrls filteredRUrls = new ResearcherUrls(); filteredRUrls.setResearcherUrls(new ArrayList<ResearcherUrl>(rUrls.getResearcherUrls())); person.setResearcherUrls(filteredRUrls);
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public void setResearcherUrl(List<ResearcherUrlType> value) { this.researcherUrl = null; if (value!= null) { List<ResearcherUrlType> draftl = this.getResearcherUrl(); draftl.addAll(value); } }
/** * Create an instance of {@link ResearcherUrls } * */ public ResearcherUrls createResearcherUrls() { return new ResearcherUrls(); }
public static void calculateLastModified(Person person) { if (person != null) { calculateLastModified(person.getAddresses()); calculateLastModified(person.getEmails()); calculateLastModified(person.getExternalIdentifiers()); calculateLastModified(person.getKeywords()); calculateLastModified(person.getOtherNames()); calculateLastModified(person.getResearcherUrls()); LastModifiedDate l1 = person.getAddresses() == null ? null : person.getAddresses().getLastModifiedDate(); LastModifiedDate l2 = person.getEmails() == null ? null : person.getEmails().getLastModifiedDate(); LastModifiedDate l3 = person.getExternalIdentifiers() == null ? null : person.getExternalIdentifiers().getLastModifiedDate(); LastModifiedDate l4 = person.getKeywords() == null ? null : person.getKeywords().getLastModifiedDate(); LastModifiedDate l5 = person.getOtherNames() == null ? null : person.getOtherNames().getLastModifiedDate(); LastModifiedDate l6 = person.getResearcherUrls() == null ? null : person.getResearcherUrls().getLastModifiedDate(); LastModifiedDate globalLatest = calculateLatest(l1, l2, l3, l4, l5, l6); person.setLastModifiedDate(globalLatest); } }
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((addresses == null) ? 0 : addresses.hashCode()); result = prime * result + ((biography == null) ? 0 : biography.hashCode()); result = prime * result + ((emails == null) ? 0 : emails.hashCode()); result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((keywords == null) ? 0 : keywords.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((otherNames == null) ? 0 : otherNames.hashCode()); result = prime * result + ((path == null) ? 0 : path.hashCode()); result = prime * result + ((researcherUrls == null) ? 0 : researcherUrls.hashCode()); return result; }
if (other.researcherUrls != null) return false; } else if (!researcherUrls.equals(other.researcherUrls)) return false; return true;
if (rUrls.getResearcherUrls() != null) { ResearcherUrls filteredRUrls = new ResearcherUrls(); filteredRUrls.setResearcherUrls(new ArrayList<ResearcherUrl>(rUrls.getResearcherUrls())); person.setResearcherUrls(filteredRUrls);
for (ResearcherUrlType researcherUrl : person.getResearcherUrls().getResearcherUrl()) { if (this.isNewMetadata("researcher_url", researcherUrl.getUrl().getValue())) { this.addOtherMetadata("researcher_url", researcherUrl.getUrl().getValue());
if(researcherUrls.getResearcherUrls() != null) { for(ResearcherUrl updatedOrNew : researcherUrls.getResearcherUrls()) { if(existingEntity.getId().equals(updatedOrNew.getPutCode())) { deleteMe = false; if(researcherUrls != null && researcherUrls.getResearcherUrls() != null) { for(ResearcherUrl updatedOrNew : researcherUrls.getResearcherUrls()) { if(updatedOrNew.getPutCode() != null) {
private void describeResearcherUrls(org.orcid.jaxb.model.record_v2.ResearcherUrls researcherUrls, Individual person, OntModel m) { if (researcherUrls == null || researcherUrls.getResearcherUrls() == null) { return; for (ResearcherUrl url : researcherUrls.getResearcherUrls()) { Individual page = m.createIndividual(url.getUrl().getValue(), null); String urlName = url.getUrlName();
if (r.getPerson().getResearcherUrls() != null && r.getPerson().getResearcherUrls().getResearcherUrls() != null) for (ResearcherUrl u : r.getPerson().getResearcherUrls().getResearcherUrls()) { doc.url.add(u.getUrl().getValue());
checkAndFilter(orcid, person.getResearcherUrls().getResearcherUrls(), READ_BIO_REQUIRED_SCOPE, true);