Console API

FtpRequest

List of Classes

ConsoleController

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

MobileManager

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

TextEmail

TextMessage

TiffBuilder

TransactionPacket

TransactionUtil

Tunnel

TunnelResult

UnknownFile

Upload

User

VCardFile

Validator

ValidityCheck

Wizard

WorkflowResponse

XMLReader

ZoneAccess

Method Summary
boolean changeFolder(String folder)

Changes to the specified folder.

boolean connect(String connectorName)

Connects using a pre-configured FTP/FTPS/SFTP Connector.

boolean connect(String type, String host, int port, String username, String password, String defaultFolder, String connectionType, int lowDataPort, int highDataPort)

Connects using the specified parameters. This method is a convenience method for development purposes. For security best practices, don't store remote server credentials in the Pal.

boolean createFolder(String folder)

Creates a folder in the current folder

boolean deleteFile(String filename)

Deletes the specified file.

boolean deleteFolder(String folder, boolean recursive)

Deletes the specified folder (and all subfolder if recursive is true).

  disconnect()

Terminates the connection.

String getCurrentFolder()

Returns current directory

File getFile(String filename, boolean deleteRemoteFile)

Gets the specified file.

File[] getFiles(int limit, boolean deleteRemoteFile)

Gets the specified files in the current directory (limit = max files to retrieve).

UnknownFile getUnknownFile(String filename, boolean deleteRemoteFile)

Gets the specified file. Returns null if its size exceeds the max size allowed by the key.

DataList listFiles(int limit)

Lists the files and folders in this folder. Type will be 'file' or 'folder'.

boolean putFile(File file)

Puts the specified file in the current remote directory. 4MB is the minimum limit. Files over 4MB are controlled by the activation key max export setting.

  setPrivateKey(String key, String keyPassword)

Supplies a private key for connecting to a server. Call this before calling connect(). This will over-ride any private key in a connector.

String toString()

Returns a description of this object.

  useLegacy(boolean legacy)
⚠Deprecated since 12-02-2020. This method provides transitional functionality and will be removed.

Indicates whether or not to use legacy libraries for connectivity.

Method Detail


boolean changeFolder(String folder)

Changes to the specified folder.

Parameters:

  • String   folder Required parameter.

Returns:  boolean

Since: 05-25-2011

top

boolean connect(String connectorName)

Connects using a pre-configured FTP/FTPS/SFTP Connector.

Parameters:

  • String   connectorName Required parameter.

Returns:  boolean

Since: 05-25-2011

top

boolean connect(String type, String host, int port, String username, String password, String defaultFolder, String connectionType, int lowDataPort, int highDataPort)

Connects using the specified parameters. This method is a convenience method for development purposes. For security best practices, don't store remote server credentials in the Pal.

Parameters:

  • String   type Required parameter. Allowed values: ftp, ftps, sftp.
  • String   host Required parameter.
  • int   port Required parameter.
  • String   username
  • String   password
  • String   defaultFolder
  • String   connectionType Allowed values: explicit, implicit.
  • int   lowDataPort
  • int   highDataPort

Returns:  boolean

Since: 05-25-2011

top

boolean createFolder(String folder)

Creates a folder in the current folder

Parameters:

  • String   folder Required parameter.

Returns:  boolean

Since: 09-01-2016

top

boolean deleteFile(String filename)

Deletes the specified file.

Parameters:

  • String   filename Required parameter.

Returns:  boolean

Since: 05-25-2011

top

boolean deleteFolder(String folder, boolean recursive)

Deletes the specified folder (and all subfolder if recursive is true).

Parameters:

  • String   folder Required parameter.
  • boolean   recursive

Returns:  boolean

Since: 09-01-2016

top

disconnect()

Terminates the connection.

Since: 05-25-2011

top

String getCurrentFolder()

Returns current directory

Returns:  String

Since: 05-25-2011

top

File getFile(String filename, boolean deleteRemoteFile)

Gets the specified file.

Parameters:

  • String   filename Required parameter.
  • boolean   deleteRemoteFile Required parameter.

Returns:  File

Since: 05-25-2011

top

File[] getFiles(int limit, boolean deleteRemoteFile)

Gets the specified files in the current directory (limit = max files to retrieve).

Parameters:

  • int   limit Required parameter. Maximum allowed size of parameter: 100
  • boolean   deleteRemoteFile

Returns:  File[]

Since: 05-25-2011

top

UnknownFile getUnknownFile(String filename, boolean deleteRemoteFile)

Gets the specified file. Returns null if its size exceeds the max size allowed by the key.

Parameters:

  • String   filename Required parameter.
  • boolean   deleteRemoteFile Required parameter.

Returns:  UnknownFile

Since: 03-28-2018

top

DataList listFiles(int limit)

Lists the files and folders in this folder. Type will be 'file' or 'folder'.

Parameters:

  • int   limit

Returns:  DataList


DataList Name: files
DataList Fields: filename, fileSize, date, type

Since: 05-25-2011

top

boolean putFile(File file)

Puts the specified file in the current remote directory. 4MB is the minimum limit. Files over 4MB are controlled by the activation key max export setting.

Parameters:

  • File   file Required parameter.

Returns:  boolean

Since: 05-25-2011

top

setPrivateKey(String key, String keyPassword)

Supplies a private key for connecting to a server. Call this before calling connect(). This will over-ride any private key in a connector.

Parameters:

  • String   key  - Key in PEM format.
  • String   keyPassword  - Password for the key. Optional, pass null if no password.

Since: 08-18-2016

top

String toString()

Returns a description of this object.

Returns:  String

Since: 05-25-2011

top

useLegacy(boolean legacy)

Indicates whether or not to use legacy libraries for connectivity.

Parameters:

  • boolean   legacy Required parameter.

Since: 12-02-2020

This method has been deprecated since 12-02-2020. This method provides transitional functionality and will be removed.

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: Nov 18, 2024 01:04 PM