|
||||||||||
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.DistributionFTP
public class DistributionFTP
The DistributionFTP class extends the abstract Distribution class
where the distribution method for the scheduled ReportCaster report is via FTP.
The code below illustrates how DistributionFTP is 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.DistributionFTP;
public Destination createDestinationSingleAddress()
{
Destination destination = new Destination();
destination.setType(Destination.SINGLE_ADDRESS);
destination.setSingleAddress("aaa.txt");
return destination;
}
public DistributionFTP createDistributionFTP()
{
DistributionFTP distribution = new DistributionFTP();
Destination destination = createDestinationSingleAddress();
distribution.setDestination(destination);
distribution.setFtpLocation("root");
distribution.setFtpPassword("passw");
distribution.setFtpServerName("serverName");
distribution.setFtpUserName("user");
distribution.setIndexFile("indexFileName");
distribution.setZipFileName("zipFileName");
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 | |
---|---|
DistributionFTP()
|
Method Summary | |
---|---|
Destination |
getDestination()
Obtains the destination object, which contains information indicating where the scheduled report will be distributed. |
java.lang.String |
getFtpLocation()
Obtains the virtual directory for a report scheduled for distribution via FTP. |
java.lang.String |
getFtpPassword()
Obtains the password to the target FTP server needed to authenticate at the time of report distribution. |
java.lang.String |
getFtpServerName()
Obtains the name of the FTP server that is the target of the distribution. |
java.lang.String |
getFtpUserName()
Obtains the username needed to authenticate to the target FTP server at the time of report distribution. |
java.lang.String |
getIndexFile()
Obtains the index file associated with report(s) scheduled for distribution via FTP where bursting is activated. |
java.lang.String |
getZipFileName()
Obtains the name of the zip file associated with a scheduled FTP distribution. |
boolean |
isZipBurstReportsTogether()
|
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 object, which contains information indicating where the scheduled report will be distributed. |
void |
setFtpLocation(java.lang.String ftpLocation)
Assigns the virtual directory for a report scheduled for distribution via FTP. |
void |
setFtpPassword(java.lang.String ftpPassword)
Assigns the password to the target FTP server needed to authenticate at the time of report distribution. |
void |
setFtpServerName(java.lang.String ftpServerName)
Assigns the name of the FTP server that is the target of the distribution. |
void |
setFtpUserName(java.lang.String ftpUserName)
Assigns the username needed to authenticate to the target FTP server at the time of report distribution. |
void |
setIndexFile(java.lang.String indexFile)
Specifies the index file associated with report(s) scheduled for distribution via FTP where bursting is activated. |
void |
setZipBurstReportsTogether(boolean zipBurstReportsTogether)
|
void |
setZipFileName(java.lang.String zipFileName)
Assigns the name of the zip file associated with a scheduled FTP 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 DistributionFTP()
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 getFtpLocation()
setFtpLocation(String)
public void setFtpLocation(java.lang.String ftpLocation)
ftpLocation
- String representing the virtual directory of
the target FTP server.getFtpLocation()
public java.lang.String getFtpPassword()
setFtpLocation(String)
public void setFtpPassword(java.lang.String ftpPassword)
ftpPassword
- the FTP password as a Stringpublic java.lang.String getFtpServerName()
setFtpServerName(String)
public void setFtpServerName(java.lang.String ftpServerName)
ftpServerName
- String represents the FTP server name
or its alias.getFtpServerName()
public java.lang.String getFtpUserName()
setFtpUserName(String)
public void setFtpUserName(java.lang.String ftpUserName)
ftpUserName
- the FTP user name as a String.getFtpUserName()
public java.lang.String getIndexFile()
Note that it makes sense to burst a report in cases where the distribution type is: DISTRIBUTION LIST, DISTRIBUTION FILE and DYNAMIC LIST. In the case where distribution type is SINGLE ADDRESS, there is no need to burst because the reports will be sent to a single address.
setIndexFile(String)
public void setIndexFile(java.lang.String indexFile)
Note that it makes sense to burst a report in cases where the distribution type is: DISTRIBUTION LIST, DISTRIBUTION FILE and DYNAMIC LIST. In the case where distribution type is SINGLE ADDRESS, there is no need to burst because the reports will be sent to a single address.
indexFile
- the index file name as a String.getIndexFile()
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 FTP.isZipResult()
public boolean isZipBurstReportsTogether()
public void setZipBurstReportsTogether(boolean zipBurstReportsTogether)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |