Domino® データを DXL データに変換します。
exportDxl(document:NotesDocument) : string
exportDxl(documentcollection:NotesDocumentCollection) : string
exportDxl(notecollection:NotesNoteCollection) : string
パラメータ | 説明 |
---|---|
Database database | 変換する Domino データです。この場合はデータベース全体です。 |
Document document | 変換する Domino データです。この場合は 1 つの文書です。 |
DocumentCollection documentcollection | 変換する Domino データです。この場合は 1 つの文書コレクション内の文書です。 |
NoteCollection notecollection | 変換する Domino データです。この場合は 1 つの文書コレクション内の要素です。 |
var stream:NotesStream = session.createStream();
var filename:string = "c:¥¥dxl¥¥";
filename = filename + database.getFileName();
filename = filename.substring(0, filename.length() - 3) + "dxl";
if (stream.open(filename)) {
requestScope.status = "Opened " + filename;
stream.truncate();
// Create note collection
var nc:NotesNoteCollection = database.createNoteCollection(false);
nc.setSelectDocuments(true);
nc.buildCollection();
// Export note collection as DXL
var exporter:NotesDxlExporter = session.createDxlExporter();
var output:string = exporter.exportDxl(nc);
stream.writeText(output);
requestScope.status = "Exported note collection as DXL ";
stream.close();
} else {
requestScope.status = "Unable to open " + filename;
}
戻り値 | 説明 |
---|---|
String | エクスポートされた DXL。 |