DOCUMENTS 5 - PortalScripting API
|
The DocHit class presents the hit object collected by a HitResultset. More...
Public Member Functions | |
DocFile | getArchiveFile () |
Get a file from the archive associated to the archive hit. More... | |
String | getArchiveKey (boolean withServer=true) |
Retrieve the key of the associated archive file object. More... | |
String | getBlobInfo () |
Function to get the blob info of the hit as xml. More... | |
DocFile | getFile () |
Get the file associated to the hit. More... | |
String | getFileId () |
Get the file id of the associated file object. More... | |
String | getLastError () |
Function to get the description of the last error that occurred. More... | |
String | getLocalValue (int colIndex) |
Get the local value of an available column. More... | |
String | getLocalValueByName (String colName) |
Get the local value of an available column. More... | |
String | getSchema () |
Get a schema identifier of the archive hit. More... | |
String | getTechValue (int colIndex) |
Get the technical value of an available column. More... | |
String | getTechValueByName (String colName) |
Get the technical value of an available column. More... | |
boolean | isArchiveHit () |
Function to test whether the associated file is an archive file. More... | |
Public Attributes | |
var | columnName |
Field value, addressed by a known column name. More... | |
The DocHit class presents the hit object collected by a HitResultset.
Objects of this class cannot be created directly. You may access a single DocHit by creating a HitResultset, which provides functions to retrieve its hit entries.
DocFile DocHit::getArchiveFile | ( | ) |
Get a file from the archive associated to the archive hit.
You need the necessary access rights on the archive side.
DocFile
or NULL
, if failed. String DocHit::getArchiveKey | ( | boolean | withServer = true | ) |
Retrieve the key of the associated archive file object.
withServer | optional boolean value to indicate, if the key should include an "@archiveServerName" appendix |
String DocHit::getBlobInfo | ( | ) |
Function to get the blob info of the hit as xml.
DocFile DocHit::getFile | ( | ) |
Get the file associated to the hit.
If the file does not exist or the user in whose context the script is executed is not allowed to access the file, then the return value will be NULL
.
DocFile
or NULL
, if failed. String DocHit::getFileId | ( | ) |
Get the file id of the associated file object.
String DocHit::getLastError | ( | ) |
Function to get the description of the last error that occurred.
String DocHit::getLocalValue | ( | int | colIndex | ) |
Get the local value of an available column.
colIndex | The zero-based index of the column. |
String DocHit::getLocalValueByName | ( | String | colName | ) |
Get the local value of an available column.
colName | The name of the column. |
String DocHit::getSchema | ( | ) |
Get a schema identifier of the archive hit.
String DocHit::getTechValue | ( | int | colIndex | ) |
Get the technical value of an available column.
colIndex | The zero-based index of the column. |
myDocHit
[colIndex]. String DocHit::getTechValueByName | ( | String | colName | ) |
Get the technical value of an available column.
colName | The name of the column. |
DocHit.columnName
. boolean DocHit::isArchiveHit | ( | ) |
Function to test whether the associated file is an archive file.
true
, if the associated file is an archive file, false
otherwise. var DocHit::columnName |
Field value, addressed by a known column name.
Each field in a DocHit is mapped to an according property. You can read the value on the basis of the column name.