com.nervousync.commons.beans.mail.MailObject Maven / Gradle / Ivy
/*
* Licensed to the Nervousync Studio (NSYC) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.nervousync.commons.beans.mail;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.nervousync.commons.core.Globals;
/**
* Mail define
* @author Steven Wee [email protected]
* @version $Revision: 1.0 $ $Date: Jul 31, 2012 7:03:47 PM $
*/
public final class MailObject implements Serializable {
/**
*
*/
private static final long serialVersionUID = -4277408041510934598L;
/**
* Identified id
*/
private String uid;
/**
* Mail subject
*/
private String subject;
/**
* Mail content
*/
private String content;
/**
* Charset encoding
*/
private String charset = Globals.DEFAULT_ENCODING;
/**
* Mail content type
*/
private String contentType = Globals.DEFAULT_EMAIL_CONTENT_TYPE_TEXT;
/**
* Sender e-mail address
*/
private String sendAddress;
/**
* Reply e-mail address
*/
private List replyAddress;
/**
* Send datetime
*/
private Date sendDate;
/**
* Is junk mail flag
*/
private boolean junk = false;
/**
* Receiver e-mail address list
*/
private List recvAddress;
/**
* CC e-mail address list
*/
private List ccAddress;
/**
* BCC e-mail address list
*/
private List bccAddress;
/**
* Attaches file list
*/
private List attachFiles;
/**
* Mail content include file list
*/
private List includeFiles;
/**
* Mail content mapping include file
*/
private Map contentMap;
/**
* @return the uid
*/
public String getUid() {
return uid;
}
/**
* @param uid the uid to set
*/
public void setUid(String uid) {
this.uid = uid;
}
/**
* @return the subject
*/
public String getSubject() {
return subject;
}
/**
* @param subject the subject to set
*/
public void setSubject(String subject) {
this.subject = subject;
}
/**
* @return the content
*/
public String getContent() {
return content;
}
/**
* @param content the content to set
*/
public void setContent(String content) {
this.content = content;
}
/**
* @return the charset
*/
public String getCharset() {
return charset;
}
/**
* @param charset the charset to set
*/
public void setCharset(String charset) {
this.charset = charset;
}
/**
* @return the contentType
*/
public String getContentType() {
return contentType;
}
/**
* @param contentType the contentType to set
*/
public void setContentType(String contentType) {
this.contentType = contentType;
}
/**
* @return the sendAddress
*/
public String getSendAddress() {
return sendAddress;
}
/**
* @param sendAddress the sendAddress to set
*/
public void setSendAddress(String sendAddress) {
this.sendAddress = sendAddress;
}
/**
* @return the replyAddress
*/
public List getReplyAddress() {
return replyAddress;
}
/**
* @param replyAddress the replyAddress to set
*/
public void setReplyAddress(List replyAddress) {
this.replyAddress = replyAddress;
}
/**
* @return the sendDate
*/
public Date getSendDate() {
return sendDate;
}
/**
* @param sendDate the sendDate to set
*/
public void setSendDate(Date sendDate) {
this.sendDate = sendDate;
}
/**
* @return the junk
*/
public boolean isJunk() {
return junk;
}
/**
* @param junk the junk to set
*/
public void setJunk(boolean junk) {
this.junk = junk;
}
/**
* @return the recvAddress
*/
public List getRecvAddress() {
return recvAddress;
}
/**
* @param recvAddress the recvAddress to set
*/
public void setRecvAddress(List recvAddress) {
this.recvAddress = recvAddress;
}
/**
* @return the ccAddress
*/
public List getCcAddress() {
return ccAddress;
}
/**
* @param ccAddress the ccAddress to set
*/
public void setCcAddress(List ccAddress) {
this.ccAddress = ccAddress;
}
/**
* @return the bccAddress
*/
public List getBccAddress() {
return bccAddress;
}
/**
* @param bccAddress the bccAddress to set
*/
public void setBccAddress(List bccAddress) {
this.bccAddress = bccAddress;
}
/**
* @return the attachFiles
*/
public List getAttachFiles() {
return attachFiles;
}
/**
* @param attachFiles the attachFiles to set
*/
public void setAttachFiles(List attachFiles) {
this.attachFiles = attachFiles;
}
/**
* @return the includeFiles
*/
public List getIncludeFiles() {
return includeFiles;
}
/**
* @param includeFiles the includeFiles to set
*/
public void setIncludeFiles(List includeFiles) {
this.includeFiles = includeFiles;
}
/**
* @return the contentMap
*/
public Map getContentMap() {
return contentMap;
}
/**
* @param contentMap the contentMap to set
*/
public void setContentMap(Map contentMap) {
this.contentMap = contentMap;
}
/**
* @return the serialversionuid
*/
public static long getSerialversionuid() {
return serialVersionUID;
}
}