Commit 6376cee59b08882c28a69c02548114973bdbe225
1 parent
e278c2a0
Exists in
master
criação de getters e setters
Showing
1 changed file
with
89 additions
and
8 deletions
Show diff stats
src/br/com/model/utilities/Email.java
@@ -21,18 +21,99 @@ import org.apache.commons.mail.MultiPartEmail; | @@ -21,18 +21,99 @@ import org.apache.commons.mail.MultiPartEmail; | ||
21 | * @param <InternetAddress>*/ | 21 | * @param <InternetAddress>*/ |
22 | public class Email<InternetAddress> { | 22 | public class Email<InternetAddress> { |
23 | 23 | ||
24 | - @Getter private String authUser; | ||
25 | - @Getter private String authPass; | ||
26 | - @Getter private String host; | ||
27 | - @Getter private String auth; | ||
28 | - @Getter private int port; | ||
29 | - @Getter private String to; | ||
30 | - @Getter private String from; | ||
31 | - @Getter private String copiaEmailTo; | 24 | + private String authUser; |
25 | + private String authPass; | ||
26 | + private String host; | ||
27 | + private String auth; | ||
28 | + private int port; | ||
29 | + private String to; | ||
30 | + private String from; | ||
31 | + private String copiaEmailTo; | ||
32 | 32 | ||
33 | private MultiPartEmail email; | 33 | private MultiPartEmail email; |
34 | private EmailAttachment anexo; | 34 | private EmailAttachment anexo; |
35 | 35 | ||
36 | + | ||
37 | + | ||
38 | + public String getAuthUser() { | ||
39 | + return authUser; | ||
40 | + } | ||
41 | + | ||
42 | + public void setAuthUser(String authUser) { | ||
43 | + this.authUser = authUser; | ||
44 | + } | ||
45 | + | ||
46 | + public String getAuthPass() { | ||
47 | + return authPass; | ||
48 | + } | ||
49 | + | ||
50 | + public void setAuthPass(String authPass) { | ||
51 | + this.authPass = authPass; | ||
52 | + } | ||
53 | + | ||
54 | + public String getHost() { | ||
55 | + return host; | ||
56 | + } | ||
57 | + | ||
58 | + public void setHost(String host) { | ||
59 | + this.host = host; | ||
60 | + } | ||
61 | + | ||
62 | + public String getAuth() { | ||
63 | + return auth; | ||
64 | + } | ||
65 | + | ||
66 | + public void setAuth(String auth) { | ||
67 | + this.auth = auth; | ||
68 | + } | ||
69 | + | ||
70 | + public int getPort() { | ||
71 | + return port; | ||
72 | + } | ||
73 | + | ||
74 | + public void setPort(int port) { | ||
75 | + this.port = port; | ||
76 | + } | ||
77 | + | ||
78 | + public String getTo() { | ||
79 | + return to; | ||
80 | + } | ||
81 | + | ||
82 | + public void setTo(String to) { | ||
83 | + this.to = to; | ||
84 | + } | ||
85 | + | ||
86 | + public String getFrom() { | ||
87 | + return from; | ||
88 | + } | ||
89 | + | ||
90 | + public void setFrom(String from) { | ||
91 | + this.from = from; | ||
92 | + } | ||
93 | + | ||
94 | + public String getCopiaEmailTo() { | ||
95 | + return copiaEmailTo; | ||
96 | + } | ||
97 | + | ||
98 | + public void setCopiaEmailTo(String copiaEmailTo) { | ||
99 | + this.copiaEmailTo = copiaEmailTo; | ||
100 | + } | ||
101 | + | ||
102 | + public MultiPartEmail getEmail() { | ||
103 | + return email; | ||
104 | + } | ||
105 | + | ||
106 | + public void setEmail(MultiPartEmail email) { | ||
107 | + this.email = email; | ||
108 | + } | ||
109 | + | ||
110 | + public EmailAttachment getAnexo() { | ||
111 | + return anexo; | ||
112 | + } | ||
113 | + | ||
114 | + public void setAnexo(EmailAttachment anexo) { | ||
115 | + this.anexo = anexo; | ||
116 | + } | ||
36 | 117 | ||
37 | private void initConf(String path){ | 118 | private void initConf(String path){ |
38 | ManagerProperties managerProperties = new ManagerProperties(); | 119 | ManagerProperties managerProperties = new ManagerProperties(); |