KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > communications > model > Communication


1 package com.dotmarketing.portlets.communications.model;
2
3 import java.io.Serializable JavaDoc;
4
5 import com.dotmarketing.beans.Inode;
6
7 /**
8  * This class is to get the communication object of
9  * the communication manager portlet
10  *
11  * @author Oswaldo
12  *
13  */

14 public class Communication extends Inode implements Serializable JavaDoc{
15     
16     private static final long serialVersionUID = 1L;
17     private String JavaDoc title;
18     private long trackBackLinkInode;
19     private String JavaDoc communicationType;
20     private String JavaDoc fromEmail;
21     private String JavaDoc fromName;
22     private String JavaDoc emailSubject;
23     private long htmlPage;
24     private String JavaDoc textMessage;
25     private java.util.Date JavaDoc modDate;
26     private String JavaDoc modifiedBy;
27     private String JavaDoc externalCommunicationIdentifier;
28     
29     
30     public Communication() {
31         super.setType("communication");
32         this.modDate = new java.util.Date JavaDoc();
33         this.communicationType = "email";
34         this.trackBackLinkInode= 0;
35         this.htmlPage = 0;
36         this.fromEmail = "";
37         this.fromName = "";
38         this.emailSubject = "";
39         this.textMessage = "";
40         this.title = "";
41         this.modifiedBy = "";
42     }
43     /**
44      * Get the modification date of the communication
45      * @return java.util.Date
46      */

47     public java.util.Date JavaDoc getModDate() {
48         return modDate;
49     }
50     
51     /**
52      * Set the communication modification date
53      * @param modDate
54      */

55     public void setModDate(java.util.Date JavaDoc modDate) {
56         this.modDate = modDate;
57     }
58     
59     /**
60      * Get the userId of the user that modify the communication
61      * @return String
62      */

63     public String JavaDoc getModifiedBy() {
64         return modifiedBy;
65     }
66     
67     /**
68      * Set the userId of the user that modify the communication
69      * @param createdBy
70      */

71     public void setModifiedBy(String JavaDoc modifiedBy) {
72         this.modifiedBy = modifiedBy;
73     }
74     
75     /**
76      * Get the email subject of the communication only apply to email communication
77      * @return String
78      */

79     public String JavaDoc getEmailSubject() {
80         return emailSubject;
81     }
82     
83     /**
84      * Set the email subject of the communication only apply to email communication
85      * @param emailSubject
86      */

87     public void setEmailSubject(String JavaDoc emailSubject) {
88         this.emailSubject = emailSubject;
89     }
90     
91     /**
92      * Get the email of the user that create the communication only apply to email communication
93      * @return String
94      */

95     public String JavaDoc getFromEmail() {
96         return fromEmail;
97     }
98     
99     /**
100      * Set the email of the user that create the comunication only apply to email communication
101      * @param fromEmail
102      */

103     public void setFromEmail(String JavaDoc fromEmail) {
104         this.fromEmail = fromEmail;
105     }
106     
107     /**
108      * Get the name of the user that create the communication only apply to email communication
109      * @return String
110      */

111     public String JavaDoc getFromName() {
112         return fromName;
113     }
114     
115     /**
116      * Set the name of the user that create the communication only apply to email communication
117      * @param fromName
118      */

119     public void setFromName(String JavaDoc fromName) {
120         this.fromName = fromName;
121     }
122     
123     /**
124      * Get the html inode of the email communication
125      * @return String
126      */

127     public long getHtmlPage() {
128         return htmlPage;
129     }
130     
131     /**
132      * Set the email html page inode
133      * @param htmlPageInode
134      */

135     public void setHtmlPage(long htmlPageInode) {
136         this.htmlPage = htmlPageInode;
137     }
138     
139     /**
140      * Get the email text Message of the communication
141      * @return String
142      */

143     public String JavaDoc getTextMessage() {
144         return textMessage;
145     }
146     
147     /**
148      * Set the email text message of the communication
149      * @param textMessage
150      */

151     public void setTextMessage(String JavaDoc textMessage) {
152         this.textMessage = textMessage;
153     }
154     
155     /**
156      * Get the communication title
157      * @return String
158      */

159     public String JavaDoc getTitle() {
160         return title;
161     }
162     
163     /**
164      * Set the communication title
165      * @param title
166      */

167     public void setTitle(String JavaDoc title) {
168         this.title = title;
169     }
170     
171     /**
172      * Get the page inode link of the offline communication
173      * @return long
174      */

175     public long getTrackBackLinkInode() {
176         return trackBackLinkInode;
177     }
178     
179     /**
180      * Set the inode of the offline communication
181      * @param trackBackLinkInode
182      */

183     public void setTrackBackLinkInode(long trackBackLinkInode) {
184         this.trackBackLinkInode = trackBackLinkInode;
185     }
186     
187     /**
188      * Get the type of communication email or offline
189      * @return String
190      */

191     public String JavaDoc getCommunicationType() {
192         return communicationType;
193     }
194     
195     /**
196      * Set the communication type
197      */

198     public void setCommunicationType(String JavaDoc communicationType) {
199         this.communicationType = communicationType;
200     }
201     
202     /**
203      * Get the External Communication Identifier of the communication
204      * @return Strin
205      */

206     public String JavaDoc getExternalCommunicationIdentifier() {
207         return externalCommunicationIdentifier;
208     }
209     
210     /**
211      * Set the External Communication Identifier
212      * @param modDate
213      */

214     public void setExternalCommunicationIdentifier(
215             String JavaDoc externalCommunicationIdentifier) {
216         this.externalCommunicationIdentifier = externalCommunicationIdentifier;
217     }
218     
219     
220 }
221
Popular Tags