Using the File System Gateway


The File System gateway enables access to documents in the local file system.

Features

The File System gateway has these features:

Style Directory

The default style directory contains the style files for the File System gateway. The default style directory is located here:

verity/prdname/k2/common/vdkstyle/

where verity/prdname is the user-definable portion of the installation directory.

It is recommended that you backup the sample directory to another location before making changes.

It is recommended that you use the File System gateway configuration file, called vgwfsys.cfg, as is. The sample File System gateway configuration file has been designed to work on Verity supported platforms and does not require edits or configuration.

Configuration File-Syntax

The gateway configuration file, called vgwfsys.cfg, must be present for proper functioning of the gateway. The sample vgwfsys.cfg file contains this syntax:


# Verity File System gateway Configuration File
$include vgwfsys.prm
$control: 1
fsgw:
{
# Field mapping: RepositoryFieldName ExternalFieldName
map: "VgwDocKey" "VgwDocKey"
map: "VgwViewURL" "VgwViewURL"
map: "VgwFileCreateDate" "VgwFileCreateDate"
map: "VgwFileModifyDate" "VgwFileModifyDate"
map: "VgwFileAccessDate" "VgwFileAccessDate"
map: "VgwFileSize" "VgwFileSize"
map: "VgwFilePath" "VgwFilePath"
map: "VgwFileOwner" "VgwFileOwner"
$ifdef VGWFSYS_SECURITY
map: "_VgwAccessType" "_VgwAccessType"
map: "_VgwFileAccessValue" "_VgwFileAccessValue"
$endif
# Default data path
path: "data_default" "."
}
$$
Element
Description
fsgw
Identifies the file as a File System gateway configuration file.
map
The repository field that is mapped to the collection documents table. The first value is the repository field name; the second value is the collection field name. Mapped fields are treated as "external" fields-these fields can be displayed in a results list or document view. For information about external fields, refer to "Gateway Field Types," earlier in this chapter.
path
The path used to generate the VdkVgwKey field (the document key).





Copyright © 2002, Verity, Inc. All rights reserved.