@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(); }
/** * 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 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 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 null; } return source.retrieveSourcePath(); }
public String retrieveSourcePath() { if (source == null) { return null; } return source.retrieveSourcePath(); }
@Override 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; }
public void addNotification(Notification notification) { Source source = notification.getSource(); String sourceId = null; if (source == null) { sourceId = "ORCID"; } else { sourceId = source.retrieveSourcePath(); } DigestSourceNotifications digestSourceNotifications = notificationsBySourceId.get(sourceId); if (digestSourceNotifications == null) { digestSourceNotifications = new DigestSourceNotifications(source); notificationsBySourceId.put(sourceId, digestSourceNotifications); } digestSourceNotifications.addNotification(notification); }
private Source getUpdatedSource(Source source) { String sourceId = source.retrieveSourcePath(); String updatedSourceId = null; if (sourceId.equals(originalOrcid)) { updatedSourceId = orcid; } else { updatedSourceId = sourcesMap.get(sourceId); if (updatedSourceId == null) { updatedSourceId = getNewClientDetailsSource(); sourcesMap.put(sourceId, updatedSourceId); } } Source updatedSource = new Source(updatedSourceId); updatedSource.setSourceName(new SourceName(updatedSourceId)); return updatedSource; }
@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()); }