Overview of the Publish/View Adapter

The purpose of all three adapters is to export a SDL Contenta object or hierarchy of objects for publication or viewing.

One of three adapters is invoked by the script testPubServerAi.pl depending on the command line arguments supplied. The adapters are referred to as standard, fast fetch and classic. The main Perl modules for these three, respectively, are PcmGetDocCat.pm, PcmGetDocFetch.pm and PcmGetDocCatClassic.pm.
  • Standard - more customizable than fast fetch. Works only on CompoundAscii based objects, although it can be customized to export additional objects if required.
  • Fast Fetch - much faster because it uses API methods that read the document from Contenta with fewer calls. It only exports CompoundAscii based objects.
  • Classic - this adapter only works with the non-CompoundAscii object types such as Documents, Modules, Hybrids and Fixed Format.
The adapters are invoked by an API call to Command::GetDocPerl( ) normally however, when $debug is set to 1 or 2, a different approach is used to call the main adapter module. This allows the programmer to use the Perl debugger to step through testPubServerAi.pl into one of three adapter subroutines depending on the command line arguments entered:
  • PcmGetDocCat::export()
  • PcmGetDocFetch::export()
  • PcmGetDocCatClassic::export()