com.adobe.icc.ddg.api
Interface DeliveryService

All Known Implementing Classes:
DeliveryServiceImpl

public interface DeliveryService

Service that performs the post complete or delivery actions of a correspondence, such as email, print, save to file system.


Method Summary
 void sendForCustomAction(java.lang.String letterInstanceId, java.lang.String processName)
          Send the correspondence to a process, for any custom action on the correspondence.
 void sendForEmail(java.lang.String letterInstanceId, int format, java.lang.String sender, java.lang.String toRecipients, java.lang.String ccRecipients, java.lang.String bccRecipients, java.lang.String subject, java.lang.String body)
          Email the correspondence to the designated recipients with the given subject and body.
 void sendForPrint(java.lang.String letterInstanceId, int format, int printType, java.lang.String customPrinterUrl)
          Sent the correspondence for print.
 void sendForSave(java.lang.String letterInstanceId, int format, java.lang.String filename, java.lang.String savePath)
          Saves the correspondence at the given location on the file system.
 

Method Detail

sendForEmail

void sendForEmail(java.lang.String letterInstanceId,
                  int format,
                  java.lang.String sender,
                  java.lang.String toRecipients,
                  java.lang.String ccRecipients,
                  java.lang.String bccRecipients,
                  java.lang.String subject,
                  java.lang.String body)
                  throws ICCException
Email the correspondence to the designated recipients with the given subject and body.

Parameters:
letterInstanceId - GUID of the letter instance to be sent via email
format - Email format (PDF/HTML)
sender - email address of sender
toRecipients - comma-separated list of recipients
ccRecipients - comma-separated list of recipients
bccRecipients - comma-separated list of recipients
subject - subject of the email
body - body of the email
Throws:
ICCException

sendForPrint

void sendForPrint(java.lang.String letterInstanceId,
                  int format,
                  int printType,
                  java.lang.String customPrinterUrl)
                  throws ICCException
Sent the correspondence for print.

Parameters:
letterInstanceId - GUID of the letter instance to be sent for printing
format - Print format (PS/PCL)
printType - Print Type (Simplex, Duplex Long Edge, Duplex Short Edge)
customPrinterUrl - custom printer URL (optional)
Throws:
ICCException

sendForSave

void sendForSave(java.lang.String letterInstanceId,
                 int format,
                 java.lang.String filename,
                 java.lang.String savePath)
                 throws ICCException
Saves the correspondence at the given location on the file system.

Parameters:
letterInstanceId - GUID of the letter instance to be sent.
format - Save format (PDF/HTML/XML)
filename - filename to be used when saving the correspondence PDF.
savePath - file system path to be used to save the correspondence PDF.
Throws:
ICCException

sendForCustomAction

void sendForCustomAction(java.lang.String letterInstanceId,
                         java.lang.String processName)
                         throws ICCException
Send the correspondence to a process, for any custom action on the correspondence.

Parameters:
letterInstanceId - GUID of the letter instance to be sent.
processName - the custom process name
Throws:
ICCException


[an error occurred while processing this directive] [an error occurred while processing this directive]