DOCUMENTS 5 - PortalScripting API
|
The ArchivingDescription class has been added to the DOCUMENTS PortalScripting API to improve the archiving process of DOCUMENTS files by scripting means. More...
Public Member Functions | |
void | addRegister (String registerName) |
flag an additional (document) register to be archived with the file. More... | |
ArchivingDescription | ArchivingDescription () |
Create a new ArchivingDescription object. More... | |
Public Attributes | |
boolean | archiveMonitor |
boolean value whether to archive the monitor of the file. More... | |
String | archiveServer |
String containing the name of the archive server in a multi archive server environment. More... | |
boolean | archiveStatus |
boolean value whether to archive the status of the file. More... | |
String | targetArchive |
String containing the complete address of the target archive for archiving to EE.i. More... | |
String | targetSchema |
String containing the complete address of the target schema used for archiving to EE.x. More... | |
String | targetView |
String containing the complete address of the target view used for archiving to EE.x. More... | |
boolean | versioning |
boolean value whether to use the versioning technique in the archive. More... | |
The ArchivingDescription class has been added to the DOCUMENTS PortalScripting API to improve the archiving process of DOCUMENTS files by scripting means.
For instance this allows to use different target archives for each file as well as to influence the archiving process by the file's contents itself. The ArchivingDescription object can only be used as parameter for the method DocFile.archive(ArchivingDescription)
ArchivingDescription ArchivingDescription::ArchivingDescription | ( | ) |
Create a new ArchivingDescription object.
Like in other programming languages you create a new object with the new
operator (refer to example below).
void ArchivingDescription::addRegister | ( | String | registerName | ) |
flag an additional (document) register to be archived with the file.
You may add the technical names of different document registers to an internal list of your ArchivingDescription object. This allows for example to archive only part of your documents of your DocFile.
registerName | String containing the technical name of the register to be archived. Pass "all_docs" to archive all attachments of your DocFile. |
boolean ArchivingDescription::archiveMonitor |
boolean value whether to archive the monitor of the file.
Like on the filetype in the Portal Client you may decide whether you want to archive the monitor of the file along with the file. If so, the file's monitor will be transformed to a HTML file named monitor.html, and it will be part of the archived file in the desired target archive.
String ArchivingDescription::archiveServer |
String containing the name of the archive server in a multi archive server environment.
You need to define the archive server if you want to archive in an archive server that is different from the main archives server. If you want to archive into the main archive you can leave this value empty.
boolean ArchivingDescription::archiveStatus |
boolean value whether to archive the status of the file.
Like on the filetype in the Portal Client you may decide whether you want to archive the status of the file along with the file. If so, the file's status will be transformed to a HTML file named status.html, and it will be part of the archived file in the desired target archive.
String ArchivingDescription::targetArchive |
String containing the complete address of the target archive for archiving to EE.i.
You need to define the target archive including the "Storageplace".
String ArchivingDescription::targetSchema |
String containing the complete address of the target schema used for archiving to EE.x.
You need to define the target schema you want to archive into.
String ArchivingDescription::targetView |
String containing the complete address of the target view used for archiving to EE.x.
You need to define the target view (write pool) you want to archive into.
boolean ArchivingDescription::versioning |
boolean value whether to use the versioning technique in the archive.
If the DocFile has already been archived and if you define this attribute to be true, a new version of the archive file will be created otherwise a independent new file in the archive will be created.