001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.mail.model;
022:
023: import java.util.Date;
024:
025: /**
026: * <a href="MailEnvelope.java.html"><b><i>View Source</i></b></a>
027: *
028: * @author Alexander Chow
029: *
030: */
031: public class MailEnvelope {
032:
033: public long getMessageId() {
034: return _messageId;
035: }
036:
037: public void setMessageId(long messageId) {
038: _messageId = messageId;
039: }
040:
041: public String getFolderName() {
042: return _folderName;
043: }
044:
045: public void setFolderName(String folderName) {
046: _folderName = folderName;
047: }
048:
049: public String getRecipient() {
050: return _recipient;
051: }
052:
053: public void setRecipient(String recipient) {
054: _recipient = recipient;
055: }
056:
057: public String getSubject() {
058: return _subject;
059: }
060:
061: public void setSubject(String subject) {
062: _subject = subject;
063: }
064:
065: public Date getDate() {
066: return _date;
067: }
068:
069: public void setDate(Date date) {
070: _date = date;
071: }
072:
073: public int getSize() {
074: return _size;
075: }
076:
077: public void setSize(int size) {
078: _size = size;
079: }
080:
081: public boolean isRead() {
082: return _read;
083: }
084:
085: public void setRead(boolean read) {
086: _read = read;
087: }
088:
089: public boolean isFlagged() {
090: return _flagged;
091: }
092:
093: public void setFlagged(boolean flagged) {
094: _flagged = flagged;
095: }
096:
097: public boolean isAnswered() {
098: return _answered;
099: }
100:
101: public void setAnswered(boolean answered) {
102: _answered = answered;
103: }
104:
105: private long _messageId;
106: private String _folderName;
107: private String _recipient;
108: private String _subject;
109: private Date _date;
110: private int _size;
111: private boolean _read;
112: private boolean _flagged;
113: private boolean _answered;
114:
115: }
|