@Override public OrcidIdentifier getOrcidIdentifier(String orcid) { OrcidIdentifier orcidIdentifier = new OrcidIdentifier(); orcidIdentifier.setPath(orcid); orcidIdentifier.setHost(orcidUrlManager.getBaseHost()); orcidIdentifier.setUri(orcidUrlManager.getBaseUrl() + "/" + orcid); return orcidIdentifier; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PrimaryRecord other = (PrimaryRecord) obj; if (orcidIdentifier == null) { if (other.orcidIdentifier != null) return false; } else if (!orcidIdentifier.equals(other.orcidIdentifier)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((orcidIdentifier == null) ? 0 : orcidIdentifier.hashCode()); return result; }
doc.id = r.getOrcidIdentifier().getUri(); doc.mainEntityOfPage = doc.id;
public OrcidIdentifier buildOrcidIdentifier(String orcid) { OrcidIdentifier identifier = new OrcidIdentifier(); String correctedBaseUri = baseUri; if(!Features.HTTPS_IDS.isActive()) { correctedBaseUri = correctedBaseUri.replace("https", "http"); } try { URI uri = new URI(correctedBaseUri); identifier.setHost(uri.getHost()); } catch(URISyntaxException e) { throw new RuntimeException("Error parsing base uri", e); } identifier.setPath(orcid); identifier.setUri(correctedBaseUri + "/" + orcid); return identifier; } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((orcidIdentifier == null) ? 0 : orcidIdentifier.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Result other = (Result) obj; if (orcidIdentifier == null) { if (other.orcidIdentifier != null) return false; } else if (!orcidIdentifier.equals(other.orcidIdentifier)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((activitiesSummary == null) ? 0 : activitiesSummary.hashCode()); result = prime * result + ((deprecated == null) ? 0 : deprecated.hashCode()); result = prime * result + ((history == null) ? 0 : history.hashCode()); result = prime * result + ((orcidIdentifier == null) ? 0 : orcidIdentifier.hashCode()); result = prime * result + ((orcidType == null) ? 0 : orcidType.hashCode()); result = prime * result + ((path == null) ? 0 : path.hashCode()); result = prime * result + ((person == null) ? 0 : person.hashCode()); result = prime * result + ((preferences == null) ? 0 : preferences.hashCode()); return result; }
if (other.orcidIdentifier != null) return false; } else if (!orcidIdentifier.equals(other.orcidIdentifier)) return false; if (orcidType != other.orcidType)