Skip to main content

Security.DocDBs

persistent class Security.DocDBs extends %Library.Persistent, %XML.Adaptor, %SYSTEM.Help

SQL Table Name: Security.DocDBs

The table for this class should be manipulated only through object access, the published API's or through the System Management Portal. It should not be updated through direct SQL access.

Property Inventory

Method Inventory

Properties

property Description as %String (MAXLEN = 256);
Description of the Doc DB.
Property methods: DescriptionDisplayToLogical(), DescriptionGet(), DescriptionGetStored(), DescriptionIsValid(), DescriptionLogicalToDisplay(), DescriptionLogicalToOdbc(), DescriptionNormalize(), DescriptionSet()
property Enabled as Security.Datatype.BooleanYN [ InitialExpression = 1 , Required ];
Doc DB enabled.
Property methods: EnabledDisplayToLogical(), EnabledGet(), EnabledGetStored(), EnabledIsValid(), EnabledLogicalToDisplay(), EnabledLogicalToOdbc(), EnabledLogicalToXSD(), EnabledNormalize(), EnabledOdbcToLogical(), EnabledSet(), EnabledXSDToLogical()
property Name as %Dictionary.Classname;
Name of the Doc DB.
Property methods: NameGet(), NameGetStored(), NameIsValid(), NameSet()
property Namespace as %String (MAXLEN = 64, MINLEN = 1);
Property methods: NamespaceDisplayToLogical(), NamespaceGet(), NamespaceGetStored(), NamespaceIsValid(), NamespaceLogicalToDisplay(), NamespaceLogicalToOdbc(), NamespaceNormalize(), NamespaceSet()
property Resource as %String (MAXLEN = 64, MINLEN = 0);
Property methods: ResourceDisplayToLogical(), ResourceGet(), ResourceGetStored(), ResourceIsValid(), ResourceLogicalToDisplay(), ResourceLogicalToOdbc(), ResourceNormalize(), ResourceSet()

Methods

classmethod CheckAdmin() as %Status
classmethod Create(Name As %String, Namespace As %String, ByRef Properties As %String) as %Status
Create a Doc DB.
Create a Doc DB in the Security database.
Parameters:
Name - Name of the Doc DB
Namespace - Namespace of location of the Doc DB Description - Description of the Doc DB
Enabled - Enabled for auditing - 0/1
Resource - Resource controlling the Doc DB.
classmethod Delete(Name As %String, Namespace As %String) as %Status
Delete a Doc DB.
This method will delete an Doc DB from the security database.
Parameters:
Name - Name of the Doc DB
Namespace - Namespace of the DOC DB
This method also clears the in memory counters.
classmethod DeleteAllInNamespace(Namespace As %String = "", ByRef Deleted As %String) as %Status
classmethod Exists(Name As %String = "", Namespace As %String = "", ByRef DocDB As %ObjectHandle, ByRef Status As %Status) as %Boolean
Doc DB exists.
This method checks for the existence of a Doc DB in the security database.
Parameters:
Name - Name of the Doc DB
Namespace - Namespace of the Doc DB Return values:
If Value of the method = 0 (Doc DB does not exist, or some error occured)
DocDB = Null
Status = Doc DB "x" does not exist, or other error message

If Value of the method = 1 (Doc DB exists)
Doc DB = Object handle to Doc DB
Status = $$$OK
classmethod Export(FileName As %String = "DocDBsExport.xml", ByRef NumExported As %Integer, Names As %String = "*", Namespaces As %String = "*") as %Status
This method exports Doc DB records to a file in xml format.
Parameters:
Filename - Output file name
NumExported (byref) - Returns number of records exported.
Names - Comma separated list of Doc DBs to export, "*" = All
Namespaces - Comma separated list of Namespaces to export, "*" = All
classmethod Get(Name As %String, Namespace As %String, ByRef Properties As %String) as %Status
Get a Doc DBs properties.
Gets a Doc DBs properties from the security database.
Parameters:
Name - Name of the Doc DB
namespace - Namespace of the Doc DB
Return values:
Properties - Array of properties
"Description" - Description of the Doc DB
"Enabled" - Doc DB is enabled
"Resource" - Resource of the Doc DB
classmethod Import(FileName As %String = "DocDBsExport.xml", ByRef NumImported As %Integer, Flags As %Integer = 0) as %Status
Import Doc DB records from an xml file.
Parameters:
FileName - Filename to import Doc DB records from
NumImported (byref) - Returns number of records imported
Flags - Control import
Bit 0 - Do not import records, just return count
Note: On failure, no records will be imported
classmethod Modify(Name As %String = "", Namespace As %String = "", ByRef Properties As %String) as %Status
Modify a Doc DBs properties.
Modifies a Doc DBs properties from the security database.
Parameters:
Name - Name of the Doc DB
Namespace - Namespace of the Doc DB
See the Get() method for a description of the Properties parameter.
If a specific property is not passed in the properties array, the value is not modified.

Queries

query List(Names As %String, Namespaces As %String, Filter As %String)
Selects Name As %String, Namespace As %String, Enabled As %String, Resource As %String, Description As %String
Return list of Doc DBs.
Names - Comma separated list of Doc DB names, "*" = All
Namespaces - Comma separated list of Namespaces, "*" = All
Note: This query may change in future versions

Indexes

index (SourceTypeNameLowerCaseIndex on NameLowerCase,NamespaceLowerCase) [IdKey, Type = key, Unique];
Index methods: SourceTypeNameLowerCaseIndexCheck(), SourceTypeNameLowerCaseIndexDelete(), SourceTypeNameLowerCaseIndexExists(), SourceTypeNameLowerCaseIndexOpen(), SourceTypeNameLowerCaseIndexSQLCheckUnique(), SourceTypeNameLowerCaseIndexSQLExists(), SourceTypeNameLowerCaseIndexSQLFindPKeyByConstraint(), SourceTypeNameLowerCaseIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (Security.DocDBs)

^|$$$SecurityMapDocDBs|SYS("Security","DocDBsD")(ID)
=
%%CLASSNAME
Description
Enabled
Name
Namespace
Resource
Version
FeedbackOpens in a new tab