|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibi.broker.api.data.schedule.Distribution
ibi.broker.api.data.schedule.DistributionEmail
public class DistributionEmail
Extends the abstract Distribution class, and is used when the distribution method for the scheduled ReportCaster job is Email. E-mail distribution is one of five distribution types supported by ReportCaster.
The code below illustrates how DistributionEmail is instantiated and used:
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Copyright (c) 2004 Information Builders, Inc. All Rights Reserved. +
+ +
+ Information Builders offers sample API programs as a heuristic device. +
+ They are not intended, as is, for production use. Licensed users are +
+ welcome to alter and extend these samples and deploy them in other +
+ environments, or alternate configurations, as they see fit. +
+ Information Builders will support the documented functionality of +
+ its API classes and methods. However, Information Builders is not +
+ responsible for functionality or behavior of products built with +
+ its API unless the documented behavior of its discrete classes and +
+ methods is different than the actual results. +
+ +
+ Redistributions of IBI source code and documentation must be within +
+ the scope of the Information Builders Software License Agreement. +
+ +
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import ibi.broker.api.data.schedule.Destination;
import ibi.broker.api.data.schedule.DistributionEmail;
import ibi.broker.api.data.schedule.DistributionFTP;
import ibi.broker.api.data.schedule.DynamicAddress;
public Destination createDestinationList()
{
Destination destination = new Destination();
destination.setType(Destination.DISTRIBUTION_LIST);
destination.setSingleAddress("listName");
return destination;
}
public DistributionEmail createDistributionEmail()
{
DistributionEmail distribution = new DistributionEmail();
Destination destination = createDestinationList();
distribution.setDestination(destination);
distribution.setInlineMessage("inLineMessage");
distribution.setInlineTaskIndex(0);
distribution.setMailFrom("mailFrom");
distribution.setMailReplyAddress("mailReplyAddress");
distribution.setMailServerName("serverName");
distribution.setMailSubject("subject");
distribution.setSendingReportAsAttachment(true);
distribution.setZipFileName("zipfile");
return distribution;
}
Field Summary |
---|
Fields inherited from class ibi.broker.api.data.schedule.Distribution |
---|
description, EMAIL, enabled, FTP, id, LIBRARY, MRE, PRINT, SFTP |
Constructor Summary | |
---|---|
DistributionEmail()
|
Method Summary | |
---|---|
Destination |
getDestination()
Obtains a destination object, which contains the information indicating where the scheduled report will be distributed. |
java.lang.String |
getInlineMessage()
Obtains the inline message associated with an e-mail report distribution. |
int |
getInlineTaskIndex()
This method returns the task index of the report that is going to be inline (in the body of the email).ReportCaster schedules can accept multiple tasks, with each task representing a report within the schedule. |
java.lang.String |
getMailFrom()
Obtains the e-mail address associated with the From header field of a scheduled e-mail distribution. |
java.lang.String |
getMailReplyAddress()
Obtains the reply e-mail address from Reply Address header field of a scheduled e-mail distribution. |
java.lang.String |
getMailServerName()
Obtains a SMTP mail server name associated with scheduled e-mail distribution. |
java.lang.String |
getMailSubject()
Obtains an e-mail Subject corresponding to the Subject header field associated with scheduled e-mail distribution. |
java.lang.String |
getZipFileName()
Obtains the name of the zip file associated with a scheduled e-mail distribution. |
boolean |
isSendingReportAsAttachment()
Obtains the logical value of the flag which specifies whether or not a report scheduled for e-mail distribution is being sent as an attachment. |
boolean |
isZipResult()
Obtains the logical value of the flag which indicates whether or not to zip the output before sending. |
void |
setDestination(Destination destination)
Assigns the destination by accepting a Destination object that can be one of the four types: Distribution List, Distribution File, Single Address, and Dynamic Address. |
void |
setInlineMessage(java.lang.String inlineMessage)
Sets the inline message associated with an e-mail report distribution. |
void |
setInlineTaskIndex(int inlineTaskIndex)
This method sets the index of the task that is going to be inline (in the body of the email). |
void |
setMailFrom(java.lang.String mailFrom)
Specifies the e-mail address associated with the From header field of a scheduled e-mail distribution. |
void |
setMailReplyAddress(java.lang.String mailReplyAddress)
Specifies the reply e-mail address from Reply Address header field of a scheduled e-mail distribution. |
void |
setMailServerName(java.lang.String mailServerName)
Assigns a SMTP mail server name associated with scheduled e-mail distribution. |
void |
setMailSubject(java.lang.String mailSubject)
Assigns an e-mail Subject corresponding to the Subject header field associated with scheduled e-mail distribution. |
void |
setSendingReportAsAttachment(boolean sendingReportAsAttachment)
Assigns the logical value of the flag which specifies whether or not a report scheduled for e-mail distribution is being sent as an attachment. |
void |
setZipFileName(java.lang.String zipFileName)
Assigns the name of the zip file associated with a scheduled e-mail distribution. |
void |
setZipResult(boolean zipResult)
Assigns a logical value to a flag that determines whether or not to zip report l output before sending via email. |
Methods inherited from class ibi.broker.api.data.schedule.Distribution |
---|
getDescription, getId, isEnabled, setDescription, setEnabled, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributionEmail()
Method Detail |
---|
public Destination getDestination()
Destination
object.setDestination(Destination)
public void setDestination(Destination destination)
destination
- a reference to the destination object.getDestination()
public java.lang.String getInlineMessage()
The size limit for an inline message is 255 characters.
setInlineMessage(java.lang.String)
public void setInlineMessage(java.lang.String inlineMessage)
The size limit for an inline message is 255 characters.
inlineMessage
- String Representing the inline message.getInlineMessage()
public int getInlineTaskIndex()
setInlineTaskIndex(int)
public void setInlineTaskIndex(int inlineTaskIndex)
inlineTaskIndex
- An integer representing the task index
of the report that is to be the in the body of the email.getInlineTaskIndex()
public java.lang.String getMailFrom()
The size limit for MailFrom is 65 characters. This field is required unless a default is set in the configuration file.
setMailFrom(String)
public void setMailFrom(java.lang.String mailFrom)
The size limit for MailFrom is 65 characters. This field is required unless a default is set in the configuration file.
mailFrom
- a String represents the e-mail address in the
* From field.getMailFrom()
public java.lang.String getMailReplyAddress()
The size limit for mail reply address is 65 characters.
getMailReplyAddress()
public void setMailReplyAddress(java.lang.String mailReplyAddress)
The size limit for mail reply address is 65 characters. This field is required unless a default is set in the configuration file.
mailReplyAddress
- a String representing the e-mail
*Reply Address.getMailReplyAddress()
public java.lang.String getMailServerName()
getMailServerName()
public void setMailServerName(java.lang.String mailServerName)
mailServerName
- a String value corresponding to the
name of the mail server.getMailServerName()
public java.lang.String getMailSubject()
The size limit for mail subject is 90 characters.
setMailSubject(String)
public void setMailSubject(java.lang.String mailSubject)
The size limit for mail subject is 90 characters.
mailSubject
- a String representing the e-mail subject
line.getMailSubject()
public boolean isSendingReportAsAttachment()
setSendingReportAsAttachment(boolean)
public void setSendingReportAsAttachment(boolean sendingReportAsAttachment)
sendingReportAsAttachment
- A boolean indicating whether or not the
report is to be sent as an attachment.isSendingReportAsAttachment()
public java.lang.String getZipFileName()
The size limit for zip file name is 64 characters.
setZipFileName(String)
public void setZipFileName(java.lang.String zipFileName)
The size limit for zip file name is 64 characters.
zipFileName
- a String representing the name of the
zipped file.getZipFileName()
public boolean isZipResult()
setZipResult(boolean)
public void setZipResult(boolean zipResult)
zipResult
- a boolean representing whether or not
to zip report output before sending via email.isZipResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |