1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.mail.model;
24  
25  import java.util.Date;
26  
27  /**
28   * <a href="MailEnvelope.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Alexander Chow
31   *
32   */
33  public class MailEnvelope {
34  
35      public long getMessageId() {
36          return _messageId;
37      }
38  
39      public void setMessageId(long messageId) {
40          _messageId = messageId;
41      }
42  
43      public String getFolderName() {
44          return _folderName;
45      }
46  
47      public void setFolderName(String folderName) {
48          _folderName = folderName;
49      }
50  
51      public String getRecipient() {
52          return _recipient;
53      }
54  
55      public void setRecipient(String recipient) {
56          _recipient = recipient;
57      }
58  
59      public String getSubject() {
60          return _subject;
61      }
62  
63      public void setSubject(String subject) {
64          _subject = subject;
65      }
66  
67      public Date getDate() {
68          return _date;
69      }
70  
71      public void setDate(Date date) {
72          _date = date;
73      }
74  
75      public int getSize() {
76          return _size;
77      }
78  
79      public void setSize(int size) {
80          _size = size;
81      }
82  
83      public boolean isRead() {
84          return _read;
85      }
86  
87      public void setRead(boolean read) {
88          _read = read;
89      }
90  
91      public boolean isFlagged() {
92          return _flagged;
93      }
94  
95      public void setFlagged(boolean flagged) {
96          _flagged = flagged;
97      }
98  
99      public boolean isAnswered() {
100         return _answered;
101     }
102 
103     public void setAnswered(boolean answered) {
104         _answered = answered;
105     }
106 
107     private long _messageId;
108     private String _folderName;
109     private String _recipient;
110     private String _subject;
111     private Date _date;
112     private int _size;
113     private boolean _read;
114     private boolean _flagged;
115     private boolean _answered;
116 
117 }