1 |
|
package org.europa.together.business; |
2 |
|
|
3 |
|
import java.io.IOException; |
4 |
|
import java.util.Map; |
5 |
|
import jakarta.mail.MessagingException; |
6 |
|
import jakarta.mail.NoSuchProviderException; |
7 |
|
import jakarta.mail.Session; |
8 |
|
import jakarta.mail.internet.MimeMessage; |
9 |
|
import org.apiguardian.api.API; |
10 |
|
import static org.apiguardian.api.API.Status.STABLE; |
11 |
|
import org.europa.together.domain.Mail; |
12 |
|
import org.springframework.stereotype.Component; |
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
@author |
21 |
|
@version |
22 |
|
@since |
23 |
|
|
24 |
|
@API(status = STABLE, since = "1.0", consumers = "JakartaMailClient") |
25 |
|
@Component |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
26 |
|
public interface MailClient { |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
@API(status = STABLE, since = "1.2") |
32 |
|
String FEATURE_ID = "CM-06"; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
@API(status = STABLE, since = "1.0") |
38 |
|
String CONFIG_SET = "email"; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
@API(status = STABLE, since = "1.1") |
44 |
|
String CONFIG_VERSION = "1.0"; |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@return |
50 |
|
|
51 |
|
@API(status = STABLE, since = "3.0") |
52 |
|
Map<String, String> getDebugActiveConfiguration(); |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@API(status = STABLE, since = "2.0") |
58 |
|
void clearConfiguration(); |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
@param |
64 |
|
@return |
65 |
|
@throws |
66 |
|
|
67 |
|
@API(status = STABLE, since = "3.0") |
68 |
|
boolean loadConfigurationFromProperties(String resource) throws IOException; |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
@return |
74 |
|
|
75 |
|
@API(status = STABLE, since = "1.0") |
76 |
|
boolean loadConfigurationFromDatabase(); |
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@return |
83 |
|
|
84 |
|
@API(status = STABLE, since = "1.0") |
85 |
|
int getBulkMailLimiter(); |
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
@return |
92 |
|
|
93 |
|
@API(status = STABLE, since = "1.0") |
94 |
|
long getWaitTime(); |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
@param |
100 |
|
@throws |
101 |
|
|
102 |
|
@API(status = STABLE, since = "3.0") |
103 |
|
void composeMail(Mail mail) throws MessagingException; |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
@return |
109 |
|
@throws |
110 |
|
|
111 |
|
@API(status = STABLE, since = "3.0") |
112 |
|
Session getSession() throws NoSuchProviderException; |
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
@return |
118 |
|
|
119 |
|
@API(status = STABLE, since = "3.0") |
120 |
|
Mail getMailObject(); |
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
@return |
126 |
|
|
127 |
|
@API(status = STABLE, since = "3.0") |
128 |
|
MimeMessage getMimeMessage(); |
129 |
|
} |