DOCUMENTS 5 - PortalScripting API
|
The ArchiveConnectionBlob class provides access to each single attachment of files in the archive. More...
Public Member Functions | |
boolean | download () |
Download the attachment to the PortalServer's machine (localPath) More... | |
String | getLastError () |
Function to get the description of the last error that occurred. More... | |
Public Attributes | |
number | bytes |
Integer containing the filesize of an attachment in the archive. More... | |
String | docKey |
String containing the key of the attachment in the archive. More... | |
boolean | downloaded |
boolean that indicates whether an attachment of the archive is locally available at the PortalServer. More... | |
String | fileKey |
String containing the key of the file the attachment belongs to in the archive. More... | |
String | localPath |
String with the local path to the attachment (blob). More... | |
String | mimeType |
String containing the mime-type of an attachment in the archive. More... | |
String | name |
String containing the name of the attachment in the archive. More... | |
String | size |
String containing the filesize of an attachment in the archive. More... | |
The ArchiveConnectionBlob class provides access to each single attachment of files in the archive.
This class holds data like name, extension, size etc. of attachments in the archive. The existance of an object means, that an attachment exists in the archive. If you want to access the attachment (blob) itself in the PortalServer, you have to download the attachment from the archive with the ArchiveConnectionBlob.download()
method. Then the attachment will be transferred to the PortalServer machine (localPath).
ArchiveConnection.downloadBlob(String fileKey, String docKey)
. boolean ArchiveConnectionBlob::download | ( | ) |
Download the attachment to the PortalServer's machine (localPath)
true
if successful, false
in case of any error String ArchiveConnectionBlob::getLastError | ( | ) |
Function to get the description of the last error that occurred.
number ArchiveConnectionBlob::bytes |
Integer containing the filesize of an attachment in the archive.
This property contains the filesize of the attachment in bytes (83605).
String ArchiveConnectionBlob::docKey |
String containing the key of the attachment in the archive.
boolean ArchiveConnectionBlob::downloaded |
boolean that indicates whether an attachment of the archive is locally available at the PortalServer.
If the attachment in the archive is locally available at the PortalServer's file system, this value is true
.
String ArchiveConnectionBlob::fileKey |
String containing the key of the file the attachment belongs to in the archive.
String ArchiveConnectionBlob::localPath |
String with the local path to the attachment (blob).
This path is only available if the attribute ArchiveConnectionBlob.downloaded
is true
String ArchiveConnectionBlob::mimeType |
String containing the mime-type of an attachment in the archive.
This property contains the mime-type of the attachment, e.g image/jpeg.
String ArchiveConnectionBlob::name |
String containing the name of the attachment in the archive.
String ArchiveConnectionBlob::size |
String containing the filesize of an attachment in the archive.
This property contains the filesize of the attachment in as readable way (81.6 KB).