@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; } }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; } }
@Override public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
@Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
/** * Gets the value of the workSources property. * * @return possible object is {@link WorkSource } * */ @Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
/** * Gets the value of the workSources property. * * @return possible object is {@link WorkSource } * */ @Override public String retrieveSourcePath() { if (source != null) { return source.retrieveSourcePath(); } return null; }
@Override public List<Notification> filterActionedNotificationAlerts(Collection<Notification> notifications, String userOrcid) { return notifications.stream().filter(n -> { //Filter only INSTITUTIONAL_CONNECTION notifications if(NotificationType.INSTITUTIONAL_CONNECTION.equals(n.getNotificationType())) { boolean alreadyConnected = orcidOauth2TokenDetailService.doesClientKnowUser(n.getSource().retrieveSourcePath(), userOrcid); if (alreadyConnected) { flagAsArchived(userOrcid, n.getPutCode(), false); } return !alreadyConnected; } return true; }).collect(Collectors.toList()); }
public void setSourceName(SourceAware sourceAware) { if (sourceAware != null) { Source source = sourceAware.getSource(); if (source != null) { String sourceId = source.retrieveSourcePath(); if (!PojoUtil.isEmpty(sourceId)) { String sourceName = sourceNameCacheManager.retrieve(sourceId); if (!PojoUtil.isEmpty(sourceName)) { source.setSourceName(new SourceName(sourceName)); } else { source.setSourceName(null); } } } } }
private static WorkForm getWorkForm(WorkSummary workSummary) { WorkForm workForm = new WorkForm(); workForm.setPutCode(Text.valueOf(workSummary.getPutCode())); String title = workSummary.getTitle() != null && workSummary.getTitle().getTitle() != null ? workSummary.getTitle().getTitle().getContent() : ""; workForm.setTitle(Text.valueOf(title)); if (workSummary.getJournalTitle() != null) { workForm.setJournalTitle(Text.valueOf(workSummary.getJournalTitle().getContent())); } if (workSummary.getPublicationDate() != null) { workForm.setPublicationDate(getPublicationDate(workSummary.getPublicationDate())); } workForm.setSource(workSummary.getSource().retrieveSourcePath()); if (workSummary.getSource().getSourceName() != null) { workForm.setSourceName(workSummary.getSource().getSourceName().getContent()); } workForm.setWorkType(Text.valueOf(workSummary.getType().value())); workForm.setVisibility(org.orcid.pojo.ajaxForm.Visibility.valueOf(workSummary.getVisibility())); WorkForm.populateExternalIdentifiers(workSummary.getExternalIdentifiers(), workForm, workSummary.getType()); return workForm; }