com.adobe.icc.ddg
Class DeliveryServiceImpl
java.lang.Object
com.adobe.icc.ddg.DeliveryServiceImpl
All Implemented Interfaces: DeliveryService
public class DeliveryServiceImpl extends java.lang.Objectimplements DeliveryService
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.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
PROCESS_BASE_PATH
public final java.lang.String PROCESS_BASE_PATH
See Also: Constant Field Values
DeliveryServiceImpl
public DeliveryServiceImpl ()
sendForEmail
public 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
Description copied from interface: DeliveryService
Email the correspondence to the designated recipients with the given subject and body.
Specified by: sendForEmail
in interface DeliveryService
Parameters: letterInstanceId
- GUID of the letter instance to be sent via emailformat
- Email format (PDF/HTML)sender
- email address of sendertoRecipients
- comma-separated list of recipientsccRecipients
- comma-separated list of recipientsbccRecipients
- comma-separated list of recipientssubject
- subject of the emailbody
- body of the email
Throws:
ICCException
sendForPrint
public void sendForPrint (java.lang.String letterInstanceId,
int format,
int printType,
java.lang.String customPrinterUrl)
throws ICCException
Description copied from interface: DeliveryService
Sent the correspondence for print.
Specified by: sendForPrint
in interface DeliveryService
Parameters: letterInstanceId
- GUID of the letter instance to be sent for printingformat
- Print format (PS/PCL)printType
- Print Type (Simplex, Duplex Long Edge, Duplex Short Edge)customPrinterUrl
- custom printer URL (optional)
Throws:
ICCException
sendForSave
public void sendForSave (java.lang.String letterInstanceId,
int format,
java.lang.String filename,
java.lang.String savePath)
throws ICCException
Description copied from interface: DeliveryService
Saves the correspondence at the given location on the file system.
Specified by: sendForSave
in interface DeliveryService
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
public void sendForCustomAction (java.lang.String letterInstanceId,
java.lang.String processName)
throws ICCException
Description copied from interface: DeliveryService
Send the correspondence to a process, for any custom action on the correspondence.
Specified by: sendForCustomAction
in interface DeliveryService
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]