|
Method Detailboolean checkCaptcha(String captcha) Checks the captcha value against the actual value stored on the server. Returns true if they match.
Parameters:
Returns: boolean Since: 07-11-2008 String checkToken(String ssoToken) Returns the status of the token: enabled, disabled, none. Enabled means the token can be used for authentication. Requires cloud level configuration and partner settings.
Parameters:
Returns: String Since: 07-31-2018 This method has been deprecated since 01-11-2021. Use RuntimePal.getAuthToken and call isEnabled clearDebugs() Clears the debug entries. Since: 08-18-2010 AjaxResponse createAjaxResponse(Fragment fragment, boolean dynamicRender) Returns a response to the client using content from the fragment and content type of text/html. Pass true for dynamicRender to execute business logic tags and JEXL constructs.
Parameters:
Returns: AjaxResponse Since: 07-11-2008 AjaxResponse createAjaxResponse(String string, boolean renderJexl) Returns a response to the client using content from the string and content type of text/html. Pass true for renderJexl to execute JEXL constructs.
Parameters:
Returns: AjaxResponse Since: 07-11-2008 Buffer createBuffer() Creates and returns a new Buffer object Returns: Buffer Since: 07-11-2008 Data createData() Creates and returns an empty Data object Returns: Data Since: 08-21-2007 PacketDataList createDataList(String name, String column, String[] array) Creates a new non persistent PacketDataList and adds the array to the column
Parameters:
Returns: PacketDataList Since: 06-10-2016 PacketDataList createDataList(String name, String[] columns) Creates a new non persistent PacketDataList and returns it. Maximum column size is 100.
Parameters:
Returns: PacketDataList Since: 10-07-2010 DownloadResponse createDownloadResponse() Creates a DownloadResponse. Returns: DownloadResponse Since: 08-11-2010 Email createEmail(String emailName) Creates an Email container using the specified template. Requires enterprise level SMTP and web enabled email in activation key.
Parameters:
Returns: Email Since: 10-21-2010 Email createEmail(String emailName, String emailSettingsId) Creates an Email container using the specified template and specified enterprise email settings. Requires enterprise level SMTP and web enabled email in activation key.
Parameters:
Returns: Email Since: 02-11-2011 FileBuffer createFileBuffer(String type, int limit) Creates and returns a new FileBuffer object
Parameters:
Returns: FileBuffer Since: 08-27-2013 String createGUID(String prefix) Creates a Globally Unique ID, alternatively with the specified prefix. Null prefix results in a guid of max length 37. With prefix it is length(prefix)+26
Parameters:
Returns: String Since: 05-21-2009 Response createImageResponse(ImageFile image) Returns an image response.
Parameters:
Returns: Response Since: 08-19-2021 JSONBuffer createJsonBuffer() Returns a new JSON Buffer Returns: JSONBuffer Since: 04-29-2022 JSONParser createJsonParser(String jsonString) Returns a parser for the given JSON string
Parameters:
Returns: JSONParser Since: 01-29-2016 TextMessage createMessage() Creates a new Message object. Requires enterprise level SMTP and web enabled email in activation key. Returns: TextMessage Since: 10-21-2010 String createMobileLink(PalInfo pal, String action, Data data) Creates link for mobile application
Parameters:
Returns: String Since: 06-24-2011 Payload createPayload() Creates a new Payload object. Returns: Payload Since: 10-07-2010 Payload createPayload(String json) Creates a new Payload object from the JSON encoded string. See Payload.toJson().
Parameters:
Returns: Payload Since: 05-16-2011 Response createPdfResponse(PdfFile pdf) Returns a pdf response.
Parameters:
Returns: Response Since: 09-01-2021 ServiceRequest createServiceRequest() Creates real-time http(s) request object useful for communication with external web services. Requires activation key with Remote Services enabled. Returns: ServiceRequest Since: 07-10-2014 TextEmail createTextEmail(String emailName) Creates a text-based (body is text as opposed to XHTML) email. Requires enterprise level SMTP and web enabled email in activation key.
Parameters:
Returns: TextEmail Since: 10-21-2010 debug(Object message) Adds a debug message.
Parameters:
Since: 06-17-2024 debugData(Data data) Debugs all the values of the given data object.
Parameters:
Since: 06-04-2019 debugList(DataList list) Debugs the name, all of the columns, and up to 100 rows of data. The output is rendered in the debug messages of Pal Builder. This method is used for development purposes and ignored in deployed pals.
Parameters:
Since: 06-21-2019 debugPayload(Payload payload) Debugs the payload. See comments on debugList and debugData
Parameters:
Since: 04-15-2021 debugs(String message, int length) Adds the debug message but splits it into length character segments. Min length is 20 and max is 150. This debugs only to the server-side debugger.
Parameters:
Since: 07-27-2021 dumpDebug() Forces an immediate flush of the debug log. This can be called once every 10 seconds. Since: 12-10-2018 enableDebugger() Over-rides default debugger behavior and explicitely turns on full debug information-- use this in a troubleshooting scenario on a deployed Pal. Since: 08-18-2010 String getAction() Returns the action associated with c:button or c:a. Otherwise, returns null. Returns: String Since: 09-24-2010 Browser getBrowser() Returns a Browser object that contains information about the client browser. Returns: Browser Since: 07-11-2008 BusinessUtil getBusinessUtil() Returns a BusinessUtil object. Returns: BusinessUtil Since: 07-15-2009 ChartTool getChartTool() Creates and returns a chart factory object which can be used to create specific chart types. Returns: ChartTool Since: 03-01-2018 ConsoleResponse getConsoleLogin(String palId) Creates a response (that should be returned) that permits access to Console using presentation in the pal identified by palId. Pass null for palId to use the default login screen.
Parameters:
Returns: ConsoleResponse Since: 04-30-2009 DateUtil getDateUtil() Returns a utility for working with dates. Returns: DateUtil Since: 07-29-2008 EncryptionUtil getEncryptionUtil() Returns encryption utility Returns: EncryptionUtil Since: 11-30-2016 String getError() Returns the error, if any. Returns: String Since: 07-11-2008 String getFirstTransactionId() Returns the ID of first transaction created from this Web Pal. Returns: String Since: 09-19-2008 Formatter getFormatter() Returns a formatter. Returns: Formatter Since: 07-31-2008 GeoUtil getGeoUtil(String units) Returns a utility for working with geo-coordinates. Use km for kilometers and m for miles.
Parameters:
Returns: GeoUtil Since: 08-27-2019 String getGlobalSetting(String name) Returns the global setting identified by name. Returns null if no setting exists with that name.
Parameters:
Returns: String Since: 02-17-2011 String getHref() Returns the href (page) requested by the browser. We give provide the URL decoded full path to the page requested. Returns: String Since: 07-11-2008 String getLastTransactionId() Returns the ID of last transaction created from this Web Pal. Returns: String Since: 09-19-2008 Logger getLogger() Returns the Logger for this workflow engine. Returns: Logger Since: 10-19-2020 Monitor getMonitor() Returns the workflow monitor. Returns: Monitor Since: 01-04-2010 NavigatorResponse getNavigatorLogin(String palId, String loginPalId) Routes the user to Navigator, alternately using the default login page of the specified login pal and provides access to the first transaction the user has active role in. A new transaction is created in the case where the user has no transactions for the pal specified.
Parameters:
Returns: NavigatorResponse Since: 05-15-2014 Page getPage(String name) Returns the specified page.
Parameters:
Returns: Page Since: 07-11-2008 RuntimePal getPal() Returns the active Pal Returns: RuntimePal Since: 04-28-2010 RuntimePal getPalById(String palId) Returns the Pal for the specified palId. Pals must belong to the same enterprise and group.
Parameters:
Returns: RuntimePal Since: 04-28-2010 PalInfo getPalInfo(String palId) The PalInfo for the specified palId.
Parameters:
Returns: PalInfo Since: 10-27-2009 Pin getPin(String palId, String pin) Returns the PIN object identified by pin and palId. The Pal must belong to the same enterprise as this web pal.
Parameters:
Returns: Pin Since: 12-01-2009 String[] getPlugins() Returns the names of all plugins registered in this cloud Returns: String[] Since: 11-28-2022 QRUtil getQRUtil() Returns a utility for creating and reading QR codes. Returns: QRUtil Since: 01-26-2017 Request getRequest() Returns the current Request. Returns: Request Since: 07-11-2008 String getResourcePath(String resource, String version) Returns the resource path for the specified resource.
Parameters:
Returns: String Since: 12-08-2015 AjaxResponse getSlice(String sliceId) Returns a response to the client using content from the specified slice. Returns null if no slice is available.
Parameters:
Returns: AjaxResponse Since: 11-23-2022 String getStoreId(String palId) Returns the storeId of the specified pal. The pal must belong to the same enterprise as this pal. Returns null if the pal has not been published to the store.
Parameters:
Returns: String Since: 09-25-2009 double getTime() Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC for the given server. Returns: double Since: 10-07-2021 String getTimeZone() Returns the timezone for this thread. Returns: String Since: 03-14-2022 Validator getValidator() Returns a utility for validating user data. Returns: Validator Since: 07-11-2008 String getWorker() Returns the worker (application server) running this workflow. Useful in a multi-worker environment for analyzing performance and for troubleshooting. Returns: String Since: 07-05-2021 String getWorkflowName() Returns the name of the currently running workflow. Returns: String Since: 11-13-2009 boolean hasEnterprise(String email) Returns true if a user with the specified email is registered and associated with an enterprise account.
Parameters:
Returns: boolean Since: 07-11-2008 boolean isAction(String action) Returns true if the action is the specified action
Parameters:
Returns: boolean Since: 09-24-2010 boolean isRegistered(String email) Returns true if a user with the specified email is registered.
Parameters:
Returns: boolean Since: 07-11-2008 boolean isSecure() Returns true if this web pal is running on a secure url. Returns: boolean Since: 11-16-2015 Response redirect(String url) Provides an http redirect to the specified URL.
Parameters:
Returns: Response Since: 12-02-2009 boolean register(String firstName, String lastName, String email, String captcha) Registers the user account with the cloud. Returns false if the captcha does not match or if the email is already registered.
Parameters:
Returns: boolean Since: 07-11-2008 revertWorkflow() Reverts the workflow engine to its prior workflow Since: 05-24-2019 setClean(boolean clean) Sets all dataset operations to clean/not clean. See Dataset.setClean(boolean)
Parameters:
Since: 06-15-2022 setDateFormat(String pattern) Sets the date pattern for displaying dates for this thread.
Parameters:
Since: 10-07-2021 setErrorPrefix(String errorPrefix) Appends this prefix to any workflow generated error message.
Parameters:
Since: 10-05-2015 setMaxInactiveInterval(int inactiveTime) Sets the max inactive time for this user. If no activity occurs in this time, the user will be logged out. Min is 1 second, max is 28800 seconds (8 hours).
Parameters:
Since: 03-20-2018 setTimeZone(String timezone) Sets the timezone for dates created or displayed in this thread.
Parameters:
Since: 10-07-2021 Response switchToWorkflow(String workflow, String action) Switches the user to a different workflow file. Workflow must be of the same type. You must immediately return this response.
Parameters:
Returns: Response Since: 12-07-2010 String toString() Returns a description of this object. Returns: String Since: 07-11-2008 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Dec 03, 2024 10:24 AM |