public class ScheduledMail extends AbstractObj implements Queryable, Updatable
metaCREATE_URI, CREATE_WITH_ID_URI, OBJ_TEMPLATE, OBJ_URI, URI| Constructor and Description |
|---|
ScheduledMail(String title,
String summary)
Creates an almost empty instance of the object.
|
ScheduledMail(String title,
String summary,
String recurrency,
org.joda.time.LocalDate startDate,
String timeZone,
Collection<String> toAddresses,
Collection<String> bccAddresses,
String subject,
String body,
List<Attachment> attachments)
Creates full, safe mail schedule object.
|
getAuthor, getCategory, getContributor, getCreated, getFlags, getId, getIdentifier, getSummary, getTags, getTitle, getUpdated, getUri, isDeprecated, isLocked, isProduction, isSharedWithSomeone, isUnlisted, setCategory, setDeprecated, setFlags, setIdentifier, setLocked, setProduction, setSharedWithSomeone, setSummary, setTags, setTitle, setUnlisted, urispublic ScheduledMail(String title, String summary)
title - the title of the MD objectsummary - the summary of the MD objectpublic ScheduledMail(String title, String summary, String recurrency, org.joda.time.LocalDate startDate, String timeZone, Collection<String> toAddresses, Collection<String> bccAddresses, String subject, String body, List<Attachment> attachments)
title - the title of the MD objectsummary - the summary of the MD objectrecurrency - schedule in format defined in schedulestartDate - schedule starting datetimeZone - time zone of the starting datetoAddresses - collection of email addresses to send the mail tobccAddresses - collection of blind copy addresses to send the mail tosubject - the subject of the scheduled mailbody - the text body of the scheduled mailattachments - reports and dashboards to send in the scheduled emailpublic ScheduledMailWhen getWhen()
public Collection<String> getToAddresses()
public Collection<String> getBccAddresses()
public String getSubject()
public String getBody()
public Collection<? extends Attachment> getAttachments()
public ScheduledMail setRecurrency(String recurrency)
public ScheduledMail setStartDate(org.joda.time.LocalDate startDate)
public ScheduledMail setTimeZone(String timeZone)
public ScheduledMail setTo(Collection<String> toAddresses)
public ScheduledMail setBcc(Collection<String> bccAddresses)
public ScheduledMail setSubject(String subject)
public ScheduledMail setBody(String body)
public ScheduledMail setAttachments(List<Attachment> attachments)
public ScheduledMail addToAddress(String toAdd)
public ScheduledMail addBccAddress(String bccAdd)
public ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String,String> exportOptions, String... formats)
@Deprecated public ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String,String> exportOptions, ReportExportFormat... formats)
addReportAttachment(ReportDefinition, Map, ExportFormat...)public ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String,String> exportOptions, ExportFormat... formats)
public ScheduledMail addDashboardAttachment(String uri, Integer allTabs, String executionContext, String... tabs)
public String toString()
toString in class AbstractObjCopyright © 2019. All rights reserved.