DOCUMENTS 5 - PortalScripting API
|
The ArchiveServer class has been added to the DOCUMENTS PortalScripting API to gain full access to the DOCUMENTS ArchiveServer by scripting means. More...
Public Member Functions | |
ArchiveConnection | getArchiveConnection () |
Retrieve the archive connection object for EAS, EBIS or EASY Enterprise XML-Server. More... | |
String | getAttribute (String attribute) |
Get the String value of an attribute of the ArchiveServer. More... | |
String | getLastError () |
If you call a method at an ArchiveServer object and an error occurred, you can get the error description with this function. More... | |
String | getOID (boolean oidLow=false) |
Returns the object-id. More... | |
boolean | setAttribute (String attribute, String value) |
Set the String value of an attribute of the ArchiveServer to the desired value. More... | |
void | submitChanges () |
After changes on the ArchiveServer with scripting methods, it is necessary to submit them to make them immediately valid. More... | |
Public Attributes | |
String | name |
The technical name of the ArchiveServer. More... | |
The ArchiveServer class has been added to the DOCUMENTS PortalScripting API to gain full access to the DOCUMENTS ArchiveServer by scripting means.
ArchiveConnection ArchiveServer::getArchiveConnection | ( | ) |
Retrieve the archive connection object for EAS, EBIS or EASY Enterprise XML-Server.
The ArchiveConnection object can be used for low level call directly on the archive interface.
ArchiveConnection
object if successful, NULL
in case of any error String ArchiveServer::getAttribute | ( | String | attribute | ) |
Get the String value of an attribute of the ArchiveServer.
attribute | String containing the name of the desired attribute |
String ArchiveServer::getLastError | ( | ) |
If you call a method at an ArchiveServer object and an error occurred, you can get the error description with this function.
String ArchiveServer::getOID | ( | boolean | oidLow = false | ) |
Returns the object-id.
oidLow | Optional flag: If true only the id of the ArchiveServer object (m_oid ) will be returned. If false the id of the ArchiveServer object will be returned together with the id of the corresponding class in the form class-id:m_oid . The default value is false . |
String
with the object-id boolean ArchiveServer::setAttribute | ( | String | attribute, |
String | value | ||
) |
Set the String value of an attribute of the ArchiveServer to the desired value.
attribute | String containing the name of the desired attribute |
value | String containing the desired value of the attribute |
true
if successful, false
in case of any error void ArchiveServer::submitChanges | ( | ) |
After changes on the ArchiveServer with scripting methods, it is necessary to submit them to make them immediately valid.
The settings of the ArchiveServer will be cached in a connection pool to the archive system. The pool does not recognize changes in the ArchiveServer object automatically, therefore it is necessary to call this method after all.
String ArchiveServer::name |
The technical name of the ArchiveServer.