public class SimpleMailContent extends Object implements MailContent
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
subject |
| Constructor and Description |
|---|
SimpleMailContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(String name,
String path)
Dodaje załącznik z dysku z własną nazwą.
|
void |
addWfDocument(String name,
WfDocument wfDocument)
Dodaje dokument z archiwum z własną nazwą.
|
List<FileAttachment> |
getAttachedFiles() |
List<String> |
getAttachments() |
String |
getContent() |
Map<Long,String> |
getDocuments()
Lista załączonych idnetyfikatów dokumentów (fileid) wraz z ich nazwą
|
String |
getSubject() |
boolean |
hasAttachment() |
void |
setAttachments(List<String> attachments) |
void |
setContent(String content) |
void |
setSubject(String subject) |
void |
setWfDocuments(List<WfDocument> wfDocuments) |
public String getSubject()
getSubject in interface MailContentpublic void setSubject(String subject)
subject - Tytuł wiadomościpublic String getContent()
getContent in interface MailContentpublic void setContent(String content)
content - Treść wiadomościpublic List<String> getAttachments()
getAttachments in interface MailContentpublic List<FileAttachment> getAttachedFiles()
getAttachedFiles in interface MailContentFileAttachment wiadomości e-mailpublic Map<Long,String> getDocuments()
MailContentgetDocuments in interface MailContentpublic void setAttachments(List<String> attachments)
attachments - Lista załączników. Zawiera ścieżki do plików na dysku.public void setWfDocuments(List<WfDocument> wfDocuments)
wfDocuments - Lista dokumentów. Zawiera identyfikatory dokumentów z archiwum systemowegopublic void addWfDocument(String name, WfDocument wfDocument)
name - nazwa załącznika widziana w wiadomości e-mailwfDocument - dokument z archiwumpublic void addAttachment(String name, String path)
name - nazwa załącznika widziana w wiadomości e-mailpath - ścieżka do pliku na dyskupublic boolean hasAttachment()
hasAttachment in interface MailContentCopyright © 2023 Suncode. All rights reserved.