use of com.odysseusinc.arachne.portal.service.mail.InvitationApprovalSubmissionArachneMailMessage in project ArachneCentralAPI by OHDSI.
the class BaseSubmissionServiceImpl method notifyOwnersAboutNewSubmission.
@Override
public void notifyOwnersAboutNewSubmission(T submission) {
Set<IUser> dnOwners = DataNodeUtils.getDataNodeOwners(submission.getDataSource().getDataNode());
dnOwners.remove(submission.getAuthor());
try {
for (IUser owner : dnOwners) {
mailSender.send(new InvitationApprovalSubmissionArachneMailMessage(WebSecurityConfig.getDefaultPortalURI(), owner, submission));
}
} catch (Exception ignore) {
LOGGER.error(ignore.getLocalizedMessage());
}
notifyOwnersAboutSubmissionUpdateViaSocket(submission);
}
Aggregations