2019-01-03 13:19:45 +01:00
|
|
|
package eu.dnetlib.repo.manager.service;
|
2018-02-21 16:05:02 +01:00
|
|
|
|
|
|
|
import eu.dnetlib.domain.data.PiwikInfo;
|
2018-11-23 08:49:00 +01:00
|
|
|
import eu.dnetlib.domain.data.Repository;
|
2018-12-05 12:39:04 +01:00
|
|
|
import eu.dnetlib.domain.functionality.validator.JobForValidation;
|
2018-11-23 08:49:00 +01:00
|
|
|
import org.springframework.security.core.Authentication;
|
2018-02-21 16:05:02 +01:00
|
|
|
|
|
|
|
public interface EmailUtils {
|
|
|
|
|
|
|
|
|
|
|
|
void reportException(Exception exception);
|
|
|
|
|
|
|
|
void sendAdministratorRequestToEnableMetrics(PiwikInfo piwikInfo) throws Exception;
|
|
|
|
|
|
|
|
void sendUserRequestToEnableMetrics(PiwikInfo piwikInfo) throws Exception;
|
|
|
|
|
|
|
|
void sendAdministratorMetricsEnabled(PiwikInfo piwikInfo) throws Exception;
|
|
|
|
|
|
|
|
void sendUserMetricsEnabled(PiwikInfo piwikInfo) throws Exception;
|
2018-11-23 08:49:00 +01:00
|
|
|
|
2019-05-16 13:55:32 +02:00
|
|
|
void sendAdminRegistrationEmail(Repository repository, Authentication authentication) throws Exception;
|
|
|
|
|
2018-11-23 08:49:00 +01:00
|
|
|
void sendUserRegistrationEmail(Repository repository, Authentication authentication) throws Exception;
|
|
|
|
|
2019-05-16 13:55:32 +02:00
|
|
|
void sendAdminUpdateRepositoryEmail(Repository repository, Authentication authentication) throws Exception;
|
|
|
|
|
2018-11-23 08:49:00 +01:00
|
|
|
void sendUserUpdateRepositoryEmail(Repository repository, Authentication authentication) throws Exception;
|
2018-12-05 12:39:04 +01:00
|
|
|
|
|
|
|
void sendSubmitJobForValidationEmail(Authentication authentication, JobForValidation jobForValidation) throws Exception;
|
2018-02-21 16:05:02 +01:00
|
|
|
}
|