public class Attachment
extends com.es.documents.manage.core.common.SystemElement
Constructor and Description |
---|
Attachment() |
Attachment(String name,
Email message) |
Attachment(String id,
String name,
Email message) |
Modifier and Type | Method and Description |
---|---|
void |
delete(Connection con) |
String |
fetchToFile(Connection con) |
ByteArrayInputStream |
getBinaryContent() |
String |
getBody() |
javax.mail.Part |
getBodyPart() |
String |
getContentDisposition() |
String |
getContentType() |
String |
getFileName() |
String |
getMessageId() |
long |
getSize() |
boolean |
isDeleted() |
static Attachment |
load(ResultSet rst,
Email message) |
void |
setBinaryContent(ByteArrayInputStream content) |
void |
setBody(String body) |
void |
setBodyPart(javax.mail.Part part) |
void |
setContentDisposition(String contentDisposition) |
void |
setContentType(String contentType) |
void |
setDeleted(boolean deleted) |
void |
setFileName(String filename) |
void |
setMessageId(String messageId) |
void |
setName(String name) |
void |
setSize(long size) |
equals, getBooleanValue, getCommonBooleanParam, getCommonIntegerParam, getCommonLongParam, getCommonParam, getCommonParamsIterator, getCommonParamsMap, getCommonStringParam, getDescription, getDetailString, getId, getInfoString, getName, getStringValue, hasCommonParams, hashCode, setCommonParam, setDescription, toJSONString, toString, updateId
public String getMessageId()
public void setMessageId(String messageId)
public long getSize()
public void setSize(long size)
public String getContentType()
public void setContentType(String contentType)
public String getContentDisposition()
public void setContentDisposition(String contentDisposition)
public boolean isDeleted()
public void setDeleted(boolean deleted)
public String getBody()
public void setBody(String body)
public ByteArrayInputStream getBinaryContent()
public void setBinaryContent(ByteArrayInputStream content)
public String getFileName()
public void setFileName(String filename)
public javax.mail.Part getBodyPart() throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public void setBodyPart(javax.mail.Part part)
public void delete(Connection con) throws Exception
Exception
public String fetchToFile(Connection con) throws Exception
Exception
public static Attachment load(ResultSet rst, Email message) throws Exception
Exception
public void setName(String name)
setName
in class com.es.documents.manage.core.common.SystemElement