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 (Including Private)

Method Inventory (Including Private)

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(), EnabledSet(), EnabledXSDToLogical()
property Name as %Dictionary.Classname;
Name of the Doc DB.
Property methods: NameGet(), NameGetStored(), NameIsValid(), NameLowerCaseDisplayToLogical(), NameLowerCaseGet(), NameLowerCaseGetStored(), NameLowerCaseIsValid(), NameLowerCaseLogicalToDisplay(), NameLowerCaseLogicalToOdbc(), NameLowerCaseNormalize(), NameSet(), NamespaceDisplayToLogical(), NamespaceGet(), NamespaceGetStored(), NamespaceIsValid(), NamespaceLogicalToDisplay(), NamespaceLogicalToOdbc(), NamespaceLowerCaseDisplayToLogical(), NamespaceLowerCaseGet(), NamespaceLowerCaseGetStored(), NamespaceLowerCaseIsValid(), NamespaceLowerCaseLogicalToDisplay(), NamespaceLowerCaseLogicalToOdbc(), NamespaceLowerCaseNormalize(), NamespaceNormalize(), NamespaceSet()
property Namespace as %String (MAXLEN = 64, MINLEN = 1);
Property methods: NamespaceDisplayToLogical(), NamespaceGet(), NamespaceGetStored(), NamespaceIsValid(), NamespaceLogicalToDisplay(), NamespaceLogicalToOdbc(), NamespaceLowerCaseDisplayToLogical(), NamespaceLowerCaseGet(), NamespaceLowerCaseGetStored(), NamespaceLowerCaseIsValid(), NamespaceLowerCaseLogicalToDisplay(), NamespaceLowerCaseLogicalToOdbc(), NamespaceLowerCaseNormalize(), 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 [ Language = objectscript ]
classmethod Create(Name As %String, Namespace As %String, ByRef Properties As %String) as %Status [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
classmethod Exists(Name As %String = "", Namespace As %String = "", ByRef DocDB As %ObjectHandle, ByRef Status As %Status) as %Boolean [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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

Indices

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

Inherited Members

Inherited Methods (Including Private)

Storage

Storage Model: Storage (Security.DocDBs)

^|$$$SecurityMapDocDBs|SYS("Security","DocDBsD")(ID)
=
%%CLASSNAME
Description
Enabled
Name
Namespace
Resource
Feedback