01: package ru.emdev.EmForge.email;
02:
03: /** Interface covers all emails processed in the system
04: *
05: * @todo Think, is it really required to have own interface for emails? Maybe it may sense to use interface form JavaMail?
06: */
07: public interface Email {
08:
09: /**
10: * @return Returns the content.
11: */
12: public abstract String getContent();
13:
14: /**
15: * @return returns content in HTML Format (if exists)
16: */
17: public abstract String getHtmlContent();
18:
19: /**
20: * @return Returns the fromName.
21: */
22: public abstract String getFromName();
23:
24: /**
25: * @return Returns the subject.
26: */
27: public abstract String getSubject();
28:
29: /**
30: * @return Returns the toName.
31: */
32: public abstract String getToName();
33:
34: /**
35: * @return Returns email priority
36: */
37: public abstract int getPriority();
38:
39: /**
40: *
41: * @return Returns CC
42: */
43: public abstract String getCarbonCopy();
44: }
|