Skip to main content

%zDocBookUtils.SetupHSDocumatic

Method Inventory

Methods

classmethod Add(sourceFile="", justName="")
sourceFile is the full pathname of a database file to add, where the filename indicates the actual name of the database to create. For example: \\kits-nas\backups\docs\staging-extra\HS20252\hscommlib.DAT is meant for use in creating the HSCOMMLIB database.

This method copies the file, creates a resource & role, defines a database, defines a namespace, and adds a matching role to the /csp/docbook application so that application can access this database.

The optional justName argument is meant to handle the special case of HSPILIB, where the database file is already present but does not have a namespace mapped to it.

classmethod AddMappings(additionsFile As %String, verbose As %Boolean = 1) as %Status
Process mappings file and add specified mappings to the current instance. additionsFile is the filename and path of the file containing the additional mappings (as a string). Originally created for use in ^%zdocserver - SetUpHealthShare
classmethod ConfigureHSPILIB()
also check HSPILIB - if database exists, we also want the corresponding namespace this needs to be configurable!!!
classmethod CreateDatabases(databases As %Library.DynamicObject, verbose As %Boolean = 1) as %Status

Creates new local databases with the names and directories specified, as well as the corresponding resources.

The databases argument is a dynamic object in the format: {DBname:DBdirectory} where the name and directory are specified as strings.

Returns 1/OK if all databases are successfully created, otherwise returns an error.

Method originally created for use by the %zdocserver routine option for setting up HealthShare combined documatic instance

classmethod GetRelInfoDATSource() as %String
Finds the DAT source directory as specified in the currently loaded relinfo file, and returns it as a string, returning "" if not found. Useful for getting this info from outside the DOCBOOK namespace. Originally created for use in ^%zdocserver - SetUpHealthShare
classmethod Remove(Name="")
Removes a namespace, database, resource, & role.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab