Skip to content

KVSDMSDocumentStorageInterface#

Procedures#

TestConnectivity(Text) : Boolean#

Summary: Checks whether the connectivity to the host is given.

procedure TestConnectivity(var message: Text): Boolean

Parameters:

  • message: Specifies the message to show returned by the check procedure.

Returns: Return variable success of type Boolean that states if connection is possible.

UploadFile(Variant, Record KVSDMSDocumentDrive, Text, Text, Dictionary, InStream) : Text#

procedure UploadFile(sourceRecord: Variant; documentDrive: Record "KVSDMSDocumentDrive"; directoryPath: Text; fileName: Text; tags: Dictionary; fileContentAsStream: InStream): Text

UpdateFileTags(Record KVSDMSFileBuffer, Dictionary) :#

procedure UpdateFileTags(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; updatedtags: Dictionary): 

MoveAllFilesFromDirectoryToAnotherDirectory(Text, Text, Text, Text, Text, Text) :#

Summary: Move all files from an directory to another directory.

procedure MoveAllFilesFromDirectoryToAnotherDirectory(fromSiteID: Text; fromDriveID: Text; fromDirectoryPath: Text; toSiteID: Text; toDriveID: Text; toDirectoryPath: Text): 

Parameters:

  • fromSiteID: Site ID of the source site.
  • fromDriveID: Drive ID of the source drive.
  • fromDirectoryPath: Directory path of the source directory.
  • toSiteID: Site ID of the target site.
  • toDriveID: Drive ID of the target drive.
  • toDirectoryPath: Directory path of the target directory.

GetFileTags(Record KVSDMSFileBuffer, List, Dictionary, Text) : Boolean#

procedure GetFileTags(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; filteredTagCodeList: List; var tags: Dictionary; var errorMessage: Text): Boolean

GetFileListFromDirectory(Text, Text, Text, Text, Enum KVSDMSRetrieveFileMode, Record KVSDMSFileBuffer, Text) : Boolean#

procedure GetFileListFromDirectory(siteID: Text; driveID: Text; directoryPath: Text; fileTagsToRetrieveArray: Text; retrieveFileMode: Enum "KVSDMSRetrieveFileMode"; var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var errorMessage: Text): Boolean

SearchFilesByTags(Dictionary, Record KVSDMSDocumentDrive, Boolean, Text, Record KVSDMSFileBuffer, Text) : Boolean#

procedure SearchFilesByTags(searchTags: Dictionary; var filteredSearchDrives: Record "KVSDMSDocumentDrive"; findDocsWithSingleTagMatch: Boolean; fileTagsToRetrieveArray: Text; var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var errorMessage: Text): Boolean

SearchFilesByText(Text, Record KVSDMSDocumentDrive, Text, Record KVSDMSFileBuffer, Text) : Boolean#

procedure SearchFilesByText(searchText: Text; var filteredSearchDrives: Record "KVSDMSDocumentDrive"; fileTagsToRetrieveArray: Text; var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var errorMessage: Text): Boolean

GetURLFromDirectory(Text, Text, Text) : Text#

Summary: Get URL from directory.

procedure GetURLFromDirectory(siteID: Text; driveID: Text; directoryPath: Text): Text

Parameters:

  • siteID: Site Id of the site to get the directory url from.
  • driveID: Drive Id of the drive to get the directory url from.
  • directoryPath: Directory path to get the directory url from.

Returns: Return value of type Text defines the url of the given directory path.

GetURLFromFile(Record KVSDMSFileBuffer) : Text#

Summary: Get URL from file.

procedure GetURLFromFile(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary): Text

Parameters:

  • TempFileBuffer: Temporary VAR Record KVSDMSFileBuffer specifies the file informations to return the url for.

Returns: Return value of type Text defines the url of the given file.

GetBase64DataStreamFromFile(Record KVSDMSFileBuffer, Text) : Boolean#

Summary: Get Base64 encoded data stream from file.

procedure GetBase64DataStreamFromFile(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var b64FileContent: Text): Boolean

Parameters:

  • TempFileBuffer: Temporary VAR Record KVSDMSFileBuffer specifies the file informations to return the Base64 encoded stream for.
  • b64FileContent: VAR Text specifies the base64 encoded file stream value.

Returns: Return value of type Boolean specifies if procedure was successfull.

GetBase64DataStreamFromFile(Record KVSDMSFileBuffer, Dictionary) : Boolean#

procedure GetBase64DataStreamFromFile(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var b64FileContents: Dictionary): Boolean

DeleteEntry(Record KVSDMSFileBuffer, Text) : Boolean#

Summary: Try to delete an Entry of the DMS or ECM. Success depends on the assigned compliance rules.

procedure DeleteEntry(var TempFileBuffer: Record "KVSDMSFileBuffer" temporary; var errorMessage: Text): Boolean

Parameters:

  • TempFileBuffer: Temporary VAR Record KVSDMSFileBuffer specifies the file informations to delete.
  • errorMessage: VAR Text specifies the Error Message that possibly occurs.

Returns: Return value of type Boolean specifies if procedure was successfull.

RetrieveAllAvailableSites(Record KVSDMSSiteBuffer) :#

Summary: Retrieve all available sites.

procedure RetrieveAllAvailableSites(var siteBuffer: Record "KVSDMSSiteBuffer"): 

Parameters:

  • siteBuffer: VAR Record KVSDMSSiteBuffer specifies the available sites within the DMS or ECM.

RetrieveAllAvailableDrivesForSite(Text, Record KVSDMSDriveBuffer) :#

Summary: Retrieve all available drives for given site.

procedure RetrieveAllAvailableDrivesForSite(siteID: Text; var driveBuffer: Record "KVSDMSDriveBuffer"): 

Parameters:

  • siteID: Site Id of the site to get the all drives from.
  • driveBuffer: VAR Record KVSDMSDriveBuffer specifies the available drives within the DMS or ECM for the given site.

GetSiteIDBySiteName(Text) : Text#

Summary: Get Site-ID by Site-Name.

procedure GetSiteIDBySiteName(siteName: Text): Text

Parameters:

  • siteName: Specifies the name of the site to return the id for.

Returns: Return value of type Text specifies the Site-ID assigned to the site with the given name.

GetDriveIDByDriveName(Text, Text) : Text#

Summary: Get Drive-ID by Drive-Name.

procedure GetDriveIDByDriveName(siteID: Text; driveName: Text): Text

Parameters:

  • siteID: Specifies the Site-Id of the site to look for a drive with the given name.
  • driveName: Specifies the name of the drive to return the id for.

Returns: Return value of type Text specifies the Drive-ID assigned to the drive with the given name.

LookupDirectoryPathForStorageDefinition(Text, Text, Text) : Boolean#

Summary: Lookup Directory-Path and returns a selected directory path for storage definition.

procedure LookupDirectoryPathForStorageDefinition(siteID: Text; driveID: Text; var directoryPath: Text): Boolean

Parameters:

  • siteID: Specifies the Site-Id of the site to look for directories.
  • driveID: Specifies the Drive-Id to look for directories. A Lookup page will be opened to select the according directory path.
  • directoryPath: VAR Text specifies the directory path that has been choosen by the user using the lookup page.

Returns: Return value of type Boolean specifies if procedure was successfull.

GetAllArchivingSystemFieldCodes(Text, Text, Record KVSDMSTagBuffer) :#

Summary: Get all archiving system field codes (tags).

procedure GetAllArchivingSystemFieldCodes(siteID: Text; driveID: Text; var tagBuffer: Record "KVSDMSTagBuffer"): 

Parameters:

  • siteID: Specifies the Site-Id of the site to look for tags.
  • driveID: Specifies the Drive-Id to look for tags.
  • tagBuffer: VAR Record KVSDMSTagBuffer specifies the list of found tags .

CheckDocumentFactboxDisplayTypeAvailable(Enum KVSDMSDocumentFactbDisplayType) : Boolean#

Summary: Check if given Display Type for the Document Factbox is available.

procedure CheckDocumentFactboxDisplayTypeAvailable(docFactboxDisplayType: Enum "KVSDMSDocumentFactbDisplayType"): Boolean

Parameters:

  • docFactboxDisplayType: Enum KVSDMSDocumentFactbDisplayType specifies the given display type to check the availability for.

Returns: Return value of type Boolean specifies if the given display type for the document factbox is available for the according DMS or ECM.

CheckDocumentLinkDisplayTypeAvailable(Enum KVSDMSDocumentLinkDisplayType) : Boolean#

Summary: Check if given Display Type for the Document Link is available.

procedure CheckDocumentLinkDisplayTypeAvailable(docLinkDisplayType: Enum "KVSDMSDocumentLinkDisplayType"): Boolean

Parameters:

  • docLinkDisplayType: Enum KVSDMSDocumentLinkDisplayType specifies the given display type to check the availability for.

Returns: Return value of type Boolean specifies if the given display type for the document link is available for the according DMS or ECM.

procedure GetDocumentsFactboxWebLink(var webLinkUrl: Text; var docFactboxMgt: Codeunit "KVSDMSDocumentsFactboxMgt"): Boolean