Transaction API

Page

List of Classes

TransactionController

AjaxResponse

AnalyticDataViewFilter

Archive

ArchiveManager

AreaChart

Attachment

AudioFile

BarChart

BillingEngine

BillingEvent

Browser

Buffer

BusinessUtil

CacheManager

Cell

CellFilter

Chart

ChartSharedSettings

ChartTool

Chunk

CommonPacket

ConsoleManager

ConsolePacket

ConsoleResponse

Cube

Data

DataList

DataListFilter

DataReader

DataRecord

DataSet

DataSetRecord

DataSetResult

DataView

DataViewBuilder

DataViewCriteria

DataViewFilter

DataViewList

DataViewRecord

DatasetFile

DateUtil

DisplaySettings

Document

DocumentFile

DownloadResponse

Email

EncryptionUtil

Enterprise

EnterpriseInfo

ExcelFile

File

FileBuffer

Formatter

Fragment

FtpRequest

GeoUtil

GroupConcat

ImageFile

Inspector

Installer

InstallerPal

JSONBuffer

JSONParser

Job

JobManager

LineChart

LockManager

Logger

MailBox

MailBoxList

MailMessage

MailResponse

Message

MessageManager

Modules

Monitor

PWA

Packet

PacketDataList

PacketDataRecord

Page

PagingInfo

Pal

PalActivationKeyInfo

PalInfo

Payload

PdfFile

PieChart

Profile

ProfileInfo

ProfilePacket

ProfilePalManager

ProfileTxManager

QRUtil

Render

Request

Role

RuntimePal

SSOToken

SafeBox

ScatterPlotChart

ServiceRequest

ServiceResponse

ShellPal

ShellPalManager

SignSettings

SiteBuilder

Slice

SmartDoc

SmartDocManager

Socket

SocketResponse

StorageProvider

StorageProviderDataList

StoredObject

SystemDataView

SystemDataViewFilter

Tag

TagFilter

TagManager

TextEmail

TextMessage

TiffBuilder

TransactionPacket

TransactionUtil

Tunnel

TunnelResult

UnknownFile

Upload

User

VCardFile

Validator

ValidityCheck

Wizard

WorkflowResponse

XMLReader

ZoneAccess

Method Summary
  addChartToPage(Chart chart)

Adds the specified chart to the page.

  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.

  addDocumentToPage(Document document)

Adds the specified document to the page for rendering.

boolean addJavascript(String script)

Adds javascript commands to the page. The commands run in the order added after all CloudPiston code has completed. Returns false if the script is not allowed.

  addPayload(Payload payload)

Adds the payload to this response.

  addWizardToPage(Wizard wizard)

Adds the specified wizard to the page for rendering. When the wizard is complete, control will be returned to the workflow. You should call Controller.isEndWizard() or key off the action you have defined. If no action is specified, the action will be cp-endWizard.

  alert(String message)

Performs a javascript alert with the message when the page loads.

  allowHTML(String key)

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

boolean checkServer(String action, int delay, String target)

Tells the response object to do an AJAX call to the server starting delay seconds after the page loads passing 'action' to the controller and display the results in the element with id 'target'. See Controller.createResponse(Fragment).

boolean enableAjaxUpload(String type, int kilobytes)

See enableUpload. This method additionally requires you to provide a client-side javascript function to handle the results of the upload. See the ajax-handler attribute of c:button and c:a.

  enableAttachmentEditor()
⚠Deprecated since 10-11-2016. No replacement. Java applets have been deprecated by Oracle.

Enables support for editing attachments. You must call this method if you will be working with attachments in an ajax environment.

  enableDetectAcrobat()

Enables detection of an Acrobat plugin. The result is persisted for the life of the session. Get the result from the Browser object.

  enableDetectJava()
⚠Deprecated since 10-11-2016. No replacement. Java applets have been deprecated by Oracle.

Enables detection of a Java plugin. The result is persisted for the life of the session. Get the result from the Browser object.

  enableDocumentReview(Document document, String action)
⚠Deprecated since 02-22-2013. No replacement. Use API packet methods to obtain a list of documents and display them.

Adds the indicated document to the list of documents that can be reviewed at this time by the user. The document description will show up in the document review drop-down in Navigator. You can access the chosen document by calling packet.getReviewDocument().

boolean enableUpload(String type, int kilobytes)

Enables file upload and restricts the upload to type and maximum file size. type can be * (all types) or a comma delimited string of types. kilobytes cannot exceed the pal activation settings.

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)

  removeDataList(String name)

Removes the datalist from the payload

  removeDataMap(String id)

Removes the data in the response with the specified id.

  removeSessionLayer()

Removes the rendering layer, if any.

  removeValue(String key)

Removes the associated key from the response.

  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.

  setProgress(int index)

Displays the progress of the transaction in the progress bar. Index should be between 0 and 100

  setSessionLayer(Payload payload)

Sets a rendering layer based on content stored in the payload. Supported files: images, css, script.

  setString(String name, String value)

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

  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)

PdfFile toPdf(String fileName)

Creates PDF file from this page. File will reflect current page state. Further modifications of page will not have effect on file contents.

String toString()

Returns a description of this object.

Method Detail


addChartToPage(Chart chart)

Adds the specified chart to the page.

Parameters:

Since: 09-08-2008

top

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

addDocumentToPage(Document document)

Adds the specified document to the page for rendering.

Parameters:

Since: 05-31-2007

top

boolean addJavascript(String script)

Adds javascript commands to the page. The commands run in the order added after all CloudPiston code has completed. Returns false if the script is not allowed.

Parameters:

  • String   script

Returns:  boolean

Since: 07-31-2008

top

addPayload(Payload payload)

Adds the payload to this response.

Parameters:

Since: 07-20-2010

top

addWizardToPage(Wizard wizard)

Adds the specified wizard to the page for rendering. When the wizard is complete, control will be returned to the workflow. You should call Controller.isEndWizard() or key off the action you have defined. If no action is specified, the action will be cp-endWizard.

Parameters:

Since: 05-31-2007

top

alert(String message)

Performs a javascript alert with the message when the page loads.

Parameters:

  • String   message

Since: 12-03-2008

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 checkServer(String action, int delay, String target)

Tells the response object to do an AJAX call to the server starting delay seconds after the page loads passing 'action' to the controller and display the results in the element with id 'target'. See Controller.createResponse(Fragment).

Parameters:

  • String   action Required parameter.
  • int   delay Required parameter.
  • String   target Required parameter.

Returns:  boolean

Since: 12-11-2007

top

boolean enableAjaxUpload(String type, int kilobytes)

See enableUpload. This method additionally requires you to provide a client-side javascript function to handle the results of the upload. See the ajax-handler attribute of c:button and c:a.

Parameters:

  • String   type
  • int   kilobytes

Returns:  boolean

Since: 11-21-2008

top

enableAttachmentEditor()

Enables support for editing attachments. You must call this method if you will be working with attachments in an ajax environment.

Since: 01-12-2009

This method has been deprecated since 10-11-2016. No replacement. Java applets have been deprecated by Oracle.

top

enableDetectAcrobat()

Enables detection of an Acrobat plugin. The result is persisted for the life of the session. Get the result from the Browser object.

Since: 10-22-2007

top

enableDetectJava()

Enables detection of a Java plugin. The result is persisted for the life of the session. Get the result from the Browser object.

Since: 10-22-2007

This method has been deprecated since 10-11-2016. No replacement. Java applets have been deprecated by Oracle.

top

enableDocumentReview(Document document, String action)

Adds the indicated document to the list of documents that can be reviewed at this time by the user. The document description will show up in the document review drop-down in Navigator. You can access the chosen document by calling packet.getReviewDocument().

Parameters:

Since: 05-31-2007

This method has been deprecated since 02-22-2013. No replacement. Use API packet methods to obtain a list of documents and display them.

top

boolean enableUpload(String type, int kilobytes)

Enables file upload and restricts the upload to type and maximum file size. type can be * (all types) or a comma delimited string of types. kilobytes cannot exceed the pal activation settings.

Parameters:

  • String   type Allowed values: *, har, json, dat, csv, tsv, excel, word, ppoint, pdf, tiff, txt, rtf, jpg, gif, png, ico, calc, writer, impress, xml, html, psd, office, ooffice, image, zip, pal, mp3, 3gpp, vcf, wav, audio, mp4, mov, video, pem, log, cfg, dat, mf, vcf, cnf, qbo, qfx, ofx.
  • int   kilobytes

Returns:  boolean

Since: 05-31-2007

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

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

removeSessionLayer()

Removes the rendering layer, if any.

Since: 12-08-2017

top

removeValue(String key)

Removes the associated key from the response.

Parameters:

  • String   key

Since: 05-28-2010

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

setProgress(int index)

Displays the progress of the transaction in the progress bar. Index should be between 0 and 100

Parameters:

  • int   index

Since: 05-31-2007

top

setSessionLayer(Payload payload)

Sets a rendering layer based on content stored in the payload. Supported files: images, css, script.

Parameters:

  • Payload   payload Required parameter.

Since: 12-08-2017

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

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

PdfFile toPdf(String fileName)

Creates PDF file from this page. File will reflect current page state. Further modifications of page will not have effect on file contents.

Parameters:

  • String   fileName  - file name. Required parameter.

Returns:  PdfFile

Since: 11-02-2010

top

String toString()

Returns a description of this object.

Returns:  String

Since: 06-14-2007

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