Revision 53892
Added by Konstantina Galouni over 5 years ago
HelloWorldService.java | ||
---|---|---|
10 | 10 |
import eu.dnetlib.data.claims.migration.handler.*; |
11 | 11 |
import eu.dnetlib.data.claimsDemo.CommunityUtils; |
12 | 12 |
import eu.dnetlib.data.claimsDemo.SQLStoreException; |
13 |
import eu.dnetlib.data.emailSender.EmailSender; |
|
13 | 14 |
import gr.uoa.di.driver.util.ServiceLocator; |
14 | 15 |
import net.sf.ehcache.search.expression.Not; |
15 | 16 |
import org.apache.commons.validator.EmailValidator; |
... | ... | |
65 | 66 |
@Autowired |
66 | 67 |
private String defaultFrequencyInHours; |
67 | 68 |
|
69 |
@Autowired |
|
70 |
private EmailSender emailSender; |
|
71 |
|
|
68 | 72 |
@GET |
69 | 73 |
@Path("projects/{projectId}/claims") |
70 | 74 |
@Produces(MediaType.APPLICATION_JSON) |
... | ... | |
1415 | 1419 |
|
1416 | 1420 |
} |
1417 | 1421 |
|
1422 |
@GET |
|
1423 |
@Path("email-notifications") |
|
1424 |
//@Produces(MediaType.APPLICATION_JSON) |
|
1425 |
public void forceSendEmailNotifications() { |
|
1426 |
emailSender.run(); |
|
1427 |
} |
|
1428 |
|
|
1418 | 1429 |
} |
Also available in: Unified diff
HelloWorldService.java: Add 'forceSendEmailNotifications' method to send email notifications now from path 'email-notifications'.