Project

General

Profile

1
package eu.dnetlib.repo.manager.service;
2

    
3
import eu.dnetlib.domain.data.PiwikInfo;
4
import eu.dnetlib.domain.data.Repository;
5
import eu.dnetlib.domain.functionality.validator.JobForValidation;
6
import org.springframework.security.core.Authentication;
7

    
8
public interface EmailUtils {
9

    
10

    
11
    void reportException(Exception exception);
12

    
13
    void sendAdministratorRequestToEnableMetrics(PiwikInfo piwikInfo) throws Exception;
14

    
15
    void sendUserRequestToEnableMetrics(PiwikInfo piwikInfo) throws Exception;
16

    
17
    void sendAdministratorMetricsEnabled(PiwikInfo piwikInfo) throws Exception;
18

    
19
    void sendUserMetricsEnabled(PiwikInfo piwikInfo) throws Exception;
20

    
21
    void sendUserRegistrationEmail(Repository repository, Authentication authentication) throws Exception;
22

    
23
    void sendUserUpdateRepositoryEmail(Repository repository, Authentication authentication) throws Exception;
24

    
25
    void sendSubmitJobForValidationEmail(Authentication authentication, JobForValidation jobForValidation) throws Exception;
26
}
(3-3/18)