@Override public Keywords toKeywords(Collection<ProfileKeywordEntity> entities) { if (entities == null) { return null; } List<Keyword> keywordList = mapperFacade.mapAsList(entities, Keyword.class); Keywords keywords = new Keywords(); keywords.setKeywords(keywordList); return keywords; }
@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<KeywordType> theKeyword; theKeyword = (((this.keyword!= null)&&(!this.keyword.isEmpty()))?this.getKeyword():null); strategy.appendField(locator, this, "keyword", buffer, theKeyword); } { String thePath; thePath = this.getPath(); strategy.appendField(locator, this, "path", buffer, thePath); } return buffer; }
public static void setPathToKeywords(Keywords keywords, String orcid) { if (keywords != null) { keywords.setPath(KEYWORDS.replace("{orcid}", orcid)); if (keywords.getKeywords() != null && !keywords.getKeywords().isEmpty()) { for (Keyword keyword : keywords.getKeywords()) { setPathToKeyword(keyword, orcid); } } } }
public static void calculateLastModified(Keywords keywords) { if (keywords != null && keywords.getKeywords() != null && !keywords.getKeywords().isEmpty()) { LastModifiedDate latest = null; for (Keyword keyword : keywords.getKeywords()) { if (keyword.getLastModifiedDate() != null && keyword.getLastModifiedDate().after(latest)) { latest = keyword.getLastModifiedDate(); } } keywords.setLastModifiedDate(latest); } }
if (keywords.getKeywords() != null) { Keywords filteredKeywords = new Keywords(); filteredKeywords.setKeywords(new ArrayList<Keyword>(keywords.getKeywords())); person.setKeywords(filteredKeywords);
public void setSourceName(Keywords keywords) { List<Keyword> list = keywords.getKeywords(); if (list != null) { for (SourceAware element : list) { setSourceName(element); } } }
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public void setKeyword(List<KeywordType> value) { this.keyword = null; if (value!= null) { List<KeywordType> draftl = this.getKeyword(); draftl.addAll(value); } }
/** * Create an instance of {@link Keywords } * */ public Keywords createKeywords() { return new Keywords(); }
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.keywords != null) return false; } else if (!keywords.equals(other.keywords)) return false; if (name == null) {
if (keywords.getKeywords() != null) { Keywords filteredKeywords = new Keywords(); filteredKeywords.setKeywords(new ArrayList<Keyword>(keywords.getKeywords())); person.setKeywords(filteredKeywords);
if(keywords.getKeywords() != null) { for (Keyword updatedOrNew : keywords.getKeywords()) { if (existing.getId().equals(updatedOrNew.getPutCode())) { deleteMe = false; if (keywords != null && keywords.getKeywords() != null) { for (Keyword updatedOrNew : keywords.getKeywords()) { if (updatedOrNew.getPutCode() != null) {
for (KeywordType keyword : person.getKeywords().getKeyword()) { if (this.isNewMetadata("keyword", keyword.getContent())) { this.addOtherMetadata("keyword", keyword.getContent());
checkAndFilter(orcid, person.getKeywords().getKeywords(), READ_BIO_REQUIRED_SCOPE, true);