Aqualogic Interaction API  
 

IPTDataSource.ImportDocument Method (String, Int32, IPTCard, Boolean, IPTDataSourceProvider)

Import Document\u0009\u0009 Takes init info for the Data Source Provider, ID of the Document Type to use, and a fresh Card which will be populated with Properties, have its indexing file property set, and be given a Signature. Indexing will be done when the card is placed in the Catalog. The PropBagDocumentLocation is in a Data Source Provider specific format. The optional Summarize flag will, if set to TRUE, specify that the document should be summarized now, as opposed to waiting for the indexing which occurs when the card is stored. Asking the Data Source to do this extra work will slow down this call significantly and should only be done if it it is important to have the summary available for editing before the store. The optional DataSourceProvider argument allows the caller to pass in an instantiated and initialized Provider to be used in importing the document. In general this argument should be left NULL but some specialized clients of the DataSource (such as the Crawler object) may be able to use this argument to improve performance.

void ImportDocument(
   string vDocumentLocationBagAsXML,
   int lDocumentTypeID,
   IPTCard pCard,
   bool bSummarize,
   IPTDataSourceProvider pProvider
);

Parameters

vDocumentLocationBagAsXML
An XML String of a provider specific document location
lDocumentTypeID
The ID of the Document Type used for mapping property values
pCard
a Card object that will be populated with the document attributes
bSummarize
Force summarization
pProvider
The Data Source Provider object used to connect to the document

See Also

IPTDataSource Interface | com.plumtree.server Namespace | IPTDataSource.ImportDocument Overload List