/** * Create an instance of {@link Name } * */ public Name createName() { return new Name(); }
private void describePersonalDetails(Name name, Individual person, OntModel m) { if (name.getCreditName() != null) { // User has provided full name String creditName = name.getCreditName().getContent(); person.addProperty(FOAF.name, creditName); person.addLabel(creditName, null); } else if (name.getGivenNames() != null && name.getFamilyName() != null) { //@formatter:off // Naive fallback assuming givenNames ~= first name and familyName ~= lastName // See http://www.w3.org/International/questions/qa-personal-names for further // considerations -- we don't report this as foaf:name as we can't be sure of the ordering. //@formatter:on // NOTE: ORCID gui is westernized asking for "First name" and // "Last name" and assuming the above mapping String label = name.getGivenNames().getContent() + " " + name.getFamilyName().getContent(); person.addLabel(label, null); } if (name.getGivenNames() != null) { person.addProperty(FOAF.givenName, name.getGivenNames().getContent()); } if (name.getFamilyName() != null) { person.addProperty(FOAF.familyName, name.getFamilyName().getContent()); } }
@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(); }
Name name = new Name(); name.setCreditName(new CreditName()); name.setGivenNames(new GivenNames("Given Names Deactivated")); name.setFamilyName(new FamilyName("Family Name Deactivated")); name.setVisibility(org.orcid.jaxb.model.common_v2.Visibility.PUBLIC); name.setPath(orcid); recordNameManager.updateRecordName(orcid, name);
if (name != null && !Visibility.PUBLIC.equals(name.getVisibility())) { personalDetails.setName(null); } else {
return false; } else if (!name.equals(other.name)) { return false;
@Override public String findByCreditName(String creditName) { Name name = recordNameManager.findByCreditName(creditName); if (name == null) { return null; } return name.getPath(); }
@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; }
public static void calculateLastModified(PersonalDetails personalDetails) { if (personalDetails != null) { calculateLastModified(personalDetails.getOtherNames()); LastModifiedDate l1 = personalDetails.getBiography() == null ? null : personalDetails.getBiography().getLastModifiedDate(); LastModifiedDate l2 = personalDetails.getName() == null ? null : personalDetails.getName().getLastModifiedDate(); LastModifiedDate l3 = personalDetails.getOtherNames() == null ? null : personalDetails.getOtherNames().getLastModifiedDate(); LastModifiedDate globalLatest = calculateLatest(l1, l2, l3); personalDetails.setLastModifiedDate(globalLatest); } }
if (Visibility.PUBLIC.equals(name.getVisibility())) { person.setName(name);
if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (otherNames == null) {
if (person.getName().getCreditName() != null) { claims.claim("name", person.getName().getCreditName().getContent()); if (person.getName().getFamilyName() != null) { claims.claim("family_name", person.getName().getFamilyName().getContent()); if (person.getName().getGivenNames() != null) { claims.claim("given_name", person.getName().getGivenNames().getContent());
if (r.getPerson().getName().getCreditName() != null) doc.name = r.getPerson().getName().getCreditName().getContent(); if (r.getPerson().getName().getGivenNames() != null) doc.givenName = r.getPerson().getName().getGivenNames().getContent(); if (r.getPerson().getName().getFamilyName() != null) doc.familyName = r.getPerson().getName().getFamilyName().getContent();