Transaction System API

TextEmail

Method Summary
  addData(Data data)

Adds the specified Data to this response.

boolean addDataList(DataList list)

Adds the specified list to a page

boolean addDataMap(String id, Data data)

Registers the data in the response with the specified id.

boolean addDataMaps(String keyColumn, DataList list)

Extracts the records from the list and registers them in the response using the values in the key column. Limited to 500 records per response.

boolean addDataRecord(String id, DataRecord dataRecord)

Registers the DataRecord in the response with the specified id. Limited to 500 records per response.

  addPayload(Payload payload)

Adds the payload to this response.

  allowHTML(String key)

Permits any rendering target with the specified key to be rendered as HTML.

boolean attachDocument(Document doc)

Attaches the specified document as an attachment to the email. The document will be converted to pdf if it is not already a pdf. This method returns false if the document is not a PDF or cannot be converted to a PDF. Limit 5 documents or attachments per email.

String get(String key)

Returns the value associated with key if it exists, null otherwise.

Data getData()

Returns the Data object for this response.

String getValue(String key)

Returns the value associated with key if it exists, null otherwise. Shortcut for getData().getValue(key)

  removeAttachments()

Removes the attachments, if any.

  removeDataList(String name)

Removes the datalist from the payload

  removeDataMap(String id)

Removes the data in the response with the specified id.

  removeValue(String key)

Removes the associated key from the response.

  sendToAddress(String email)

Sends the email to the specified email address.

  set(String key, String value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setBoolean(String name, boolean value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

boolean setData(String id, Data data)

Registers the data in the response with the specified id.

  setDate(String name, Date value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setDecimal(String name, double value)
⚠Deprecated since 08-28-2018. Use setDouble(String,double)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setDouble(String name, double double)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setHTML(String key, String xhtml)

Adds the given XHTML to the page (the XHTML should ideally be well-formed). You must use the c:html tag for displaying the content. Throws exception if the content contains illegal tags or attributes. You should avoid inline scripts or script blocks.

  setInt(String name, long value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setReplyTo(String replyToEmail)

Sets the replyTo email address.

  setString(String name, String value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

  setSubject(String subject)

Sets the subject of the email (over-rides the subject set during Pal development).

  setValue(String key, String value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

  setValue(String key, boolean value)
⚠Deprecated since 08-28-2018. Use setBoolean(String,boolean)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

  setValue(String key, double value)
⚠Deprecated since 08-28-2018. Use setDouble(String,double)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

  setValue(String key, int value)
⚠Deprecated since 08-28-2018. Use setInt(String,int)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

  setValue(String key, long value)
⚠Deprecated since 08-28-2018. Use setInt(String,int)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

String toString()

Returns a description of this object.

Method Detail


addData(Data data)

Adds the specified Data to this response.

Parameters:

Since: 05-28-2010

top

boolean addDataList(DataList list)

Adds the specified list to a page

Parameters:

Returns:  boolean

Since: 07-11-2008

top

boolean addDataMap(String id, Data data)

Registers the data in the response with the specified id.

Parameters:

  • String   id Required parameter.
  • Data   data Required parameter.

Returns:  boolean

Since: 05-28-2010

top

boolean addDataMaps(String keyColumn, DataList list)

Extracts the records from the list and registers them in the response using the values in the key column. Limited to 500 records per response.

Parameters:

  • String   keyColumn Required parameter.
  • DataList   list Required parameter.

Returns:  boolean

Since: 05-28-2010

top

boolean addDataRecord(String id, DataRecord dataRecord)

Registers the DataRecord in the response with the specified id. Limited to 500 records per response.

Parameters:

  • String   id Required parameter.
  • DataRecord   dataRecord Required parameter.

Returns:  boolean

Since: 11-09-2010

top

addPayload(Payload payload)

Adds the payload to this response.

Parameters:

Since: 07-20-2010

top

allowHTML(String key)

Permits any rendering target with the specified key to be rendered as HTML.

Parameters:

  • String   key Required parameter.

Since: 08-02-2017

top

boolean attachDocument(Document doc)

Attaches the specified document as an attachment to the email. The document will be converted to pdf if it is not already a pdf. This method returns false if the document is not a PDF or cannot be converted to a PDF. Limit 5 documents or attachments per email.

Parameters:

Returns:  boolean

Since: 05-27-2009

top

String get(String key)

Returns the value associated with key if it exists, null otherwise.

Parameters:

  • String   key

Returns:  String

Since: 08-28-2018

top

Data getData()

Returns the Data object for this response.

Returns:  Data

Since: 05-31-2007

top

String getValue(String key)

Returns the value associated with key if it exists, null otherwise. Shortcut for getData().getValue(key)

Parameters:

  • String   key

Returns:  String

Since: 07-11-2008

top

removeAttachments()

Removes the attachments, if any.

Since: 05-27-2009

top

removeDataList(String name)

Removes the datalist from the payload

Parameters:

  • String   name  - name of data list in payload. Required parameter.

Since: 06-29-2021

top

removeDataMap(String id)

Removes the data in the response with the specified id.

Parameters:

  • String   id Required parameter.

Since: 12-21-2017

top

removeValue(String key)

Removes the associated key from the response.

Parameters:

  • String   key

Since: 05-28-2010

top

sendToAddress(String email)

Sends the email to the specified email address.

Parameters:

  • String   email

Since: 05-27-2009

top

set(String key, String value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   key Required parameter.
  • String   value

Since: 08-28-2018

top

setBoolean(String name, boolean value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • boolean   value

Since: 08-28-2018

top

boolean setData(String id, Data data)

Registers the data in the response with the specified id.

Parameters:

  • String   id Required parameter.
  • Data   data Required parameter.

Returns:  boolean

Since: 02-11-2019

top

setDate(String name, Date value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • Date   value

Since: 08-28-2018

top

setDecimal(String name, double value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • double   value

Since: 08-28-2018

This method has been deprecated since 08-28-2018. Use setDouble(String,double)

top

setDouble(String name, double double)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • double   double

Since: 08-28-2018

top

setHTML(String key, String xhtml)

Adds the given XHTML to the page (the XHTML should ideally be well-formed). You must use the c:html tag for displaying the content. Throws exception if the content contains illegal tags or attributes. You should avoid inline scripts or script blocks.

Parameters:

  • String   key
  • String   xhtml

Since: 07-11-2008

top

setInt(String name, long value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • long   value

Since: 08-28-2018

top

setReplyTo(String replyToEmail)

Sets the replyTo email address.

Parameters:

  • String   replyToEmail

Since: 05-27-2009

top

setString(String name, String value)

Adds the key/value pair to the data map, over-writing any set that already exists with name key.

Parameters:

  • String   name Required parameter.
  • String   value

Since: 08-28-2018

top

setSubject(String subject)

Sets the subject of the email (over-rides the subject set during Pal development).

Parameters:

  • String   subject

Since: 05-27-2009

top

setValue(String key, String value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

Parameters:

  • String   key
  • String   value

Since: 07-11-2008

top

setValue(String key, boolean value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

Parameters:

  • String   key
  • boolean   value

Since: 04-06-2009

This method has been deprecated since 08-28-2018. Use setBoolean(String,boolean)

top

setValue(String key, double value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

Parameters:

  • String   key
  • double   value

Since: 04-06-2009

This method has been deprecated since 08-28-2018. Use setDouble(String,double)

top

setValue(String key, int value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

Parameters:

  • String   key
  • int   value

Since: 04-06-2009

This method has been deprecated since 08-28-2018. Use setInt(String,int)

top

setValue(String key, long value)

Adds the key/value pair to the data object for this page, over-writing any set that already exists with name key. Shortcut for getData().setValue(key,value)

Parameters:

  • String   key
  • long   value

Since: 04-06-2009

This method has been deprecated since 08-28-2018. Use setInt(String,int)

top

String toString()

Returns a description of this object.

Returns:  String

Since: 05-27-2009

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: May 01, 2024 05:15 AM