/** * Create an instance of {@link History } * */ public History createHistory() { return new History(); }
@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(); }
theCreationMethod = this.getCreationMethod(); strategy.appendField(locator, this, "creationMethod", buffer, theCreationMethod); theCompletionDate = this.getCompletionDate(); strategy.appendField(locator, this, "completionDate", buffer, theCompletionDate); theSubmissionDate = this.getSubmissionDate(); strategy.appendField(locator, this, "submissionDate", buffer, theSubmissionDate); theLastModifiedDate = this.getLastModifiedDate(); strategy.appendField(locator, this, "lastModifiedDate", buffer, theLastModifiedDate); theClaimed = this.getClaimed(); strategy.appendField(locator, this, "claimed", buffer, theClaimed); theSource = this.getSource(); strategy.appendField(locator, this, "source", buffer, theSource); theDeactivationDate = this.getDeactivationDate(); strategy.appendField(locator, this, "deactivationDate", buffer, theDeactivationDate); theVerifiedEmail = this.isVerifiedEmail(); strategy.appendField(locator, this, "verifiedEmail", buffer, theVerifiedEmail); theVerifiedPrimaryEmail = this.isVerifiedPrimaryEmail(); strategy.appendField(locator, this, "verifiedPrimaryEmail", buffer, theVerifiedPrimaryEmail); theVisibility = this.getVisibility(); strategy.appendField(locator, this, "visibility", buffer, theVisibility);
History history = record.getHistory(); if (history != null) { if (history.getClaimed()) { switch (history.getCreationMethod()) { case DIRECT: case MEMBER_REFERRED: profileDoc.addProperty(PROV.wasAttributedTo, person); if (webSite != null && (history.getCreationMethod() == CreationMethod.WEBSITE || history.getCreationMethod() == CreationMethod.DIRECT)) { profileDoc.addProperty(PAV.createdWith, webSite); if (history.getClaimed()) { profileDoc.addProperty(PAV.curatedBy, person); if (history.getLastModifiedDate() != null) { Literal when = calendarAsLiteral(history.getLastModifiedDate().getValue(), m); profileDoc.addLiteral(PAV.lastUpdateOn, when); profileDoc.addLiteral(PROV.generatedAtTime, when); if (history.getSubmissionDate() != null) { profileDoc.addLiteral(PAV.createdOn, calendarAsLiteral(history.getSubmissionDate().getValue(), m)); if (history.getCompletionDate() != null) { profileDoc.addLiteral(PAV.contributedOn, calendarAsLiteral(history.getCompletionDate().getValue(), m)); if (history.getDeactivationDate() != null) { profileDoc.addLiteral(PROV.invalidatedAtTime, calendarAsLiteral(history.getDeactivationDate().getValue(), m));
private History getHistory(String orcid) { History history = new History(); ProfileEntity profile = profileEntityCacheManager.retrieve(orcid); history.setClaimed(profile.getClaimed()); if(profile.getCompletedDate() != null) { history.setCompletionDate(new CompletionDate(DateUtils.convertToXMLGregorianCalendar(profile.getCompletedDate()))); history.setCreationMethod(CreationMethod.fromValue(profile.getCreationMethod())); history.setDeactivationDate(new DeactivationDate(DateUtils.convertToXMLGregorianCalendar(profile.getDeactivationDate()))); history.setLastModifiedDate(new LastModifiedDate(DateUtils.convertToXMLGregorianCalendar(profile.getLastModified()))); history.setSubmissionDate(new SubmissionDate(DateUtils.convertToXMLGregorianCalendar(profile.getSubmissionDate()))); history.setSource(new Source(SourceEntityUtils.getSourceId(profile.getSource()))); history.setVerifiedEmail(verfiedEmail); history.setVerifiedPrimaryEmail(verfiedPrimaryEmail);
@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; }
if (other.history != null) return false; } else if (!history.equals(other.history)) return false; if (orcidIdentifier == null) {