Skip to main content

HS.Registry.Config

persistent class HS.Registry.Config extends %Library.Persistent, HS.HC.ChangeHistory.Abstract, HS.HC.ChangeControl.XML.Adaptor, HS.HC.ChangeControl.Sync.Base, %Library.GlobalIdentifier

SQL Table Name: HS_Registry.Config

General Area for storage of information Configuration items for things like: \General\ThisSystemOID = 1.2.3.4.5.6 \General\ThisOrganisationName = Company Name

Property Inventory

Method Inventory

Parameters

parameter %JSONIDFIELD = id;
Inherited description: %JSONIDFIELD specifies the field name to use for the ID in representations of the object, if enabled by %JSONINCLUDEID
parameter %JSONINCLUDEID = 1;
Inherited description: %JSONINCLUDEID allows the ID to be included (output-only) in representations of the object.
parameter DOMAIN = HS;
parameter EnvVarEnabledPropList = RegValue;
Inherited description: Comma separated string of property names that use environment variables. Properties on this list MUST be explicitly defined in the current class that extends HS.HC.ChangeControl.XML.Adaptor. Do not include inherited properties.
parameter SYNCORDER = 10;
parameter XMLCONFIGITEM = 1;
Generated by HS.HC.ChangeControl.XML.Projection. DO NOT MODIFY.
parameter XMLTYPE = ConfigRegistry;
Needed to distinguish subclasses of HS.HC.ChangeControl.XML.Adaptor that end in the word "Config". For example HS.IHE.XUA.Config.

Properties

property Notes as %String);
Information about this key-value pair
Property methods: NotesDisplayToLogical(), NotesGet(), NotesGetStored(), NotesIsValid(), NotesLogicalToDisplay(), NotesLogicalToOdbc(), NotesNormalize(), NotesSet()
property RegKey as %String (MAXLEN = 1000, TRUNCATE = 0);
Property methods: RegKeyDisplayToLogical(), RegKeyGet(), RegKeyGetStored(), RegKeyIsValid(), RegKeyLogicalToDisplay(), RegKeyLogicalToOdbc(), RegKeyNormalize(), RegKeySet()
property RegValue as HS.HC.DataType.AnyString (EnvVarEnabled = 1, XMLPROJECTION = "NONE") [ Calculated ];
Property methods: RegValueCompute(), RegValueDisplayToLogical(), RegValueGet(), RegValueIsValid(), RegValueLogicalToDisplay(), RegValueLogicalToOdbc(), RegValueNormalize(), RegValueSQLCompute()

Methods

classmethod AddNewKey(pKey As %String = "", pValue As %String = "", pNote As %String = "") as %Status
Add a key/value only if one doesn't exist
classmethod AddUpdateKeyValue(pKey As %String = "", pValue As %String = "") as %Status
Add or Update a key in the registry config
classmethod DeleteByName(KeyName As %String) as %Status
classmethod FindByName(KeyName As %String, ByRef RegValue, ByRef ID As %Integer) as %Status
method FixRegValue() as %Status
classmethod GetChangeHistoryFeatureName(pLocalize As %Boolean) as %String
Inherited description: Returns a unique human readable, name for the feature this persistent table represents. MUST be overriden in subclasses.
@Argument pLocalize When this is set to 1, the returned string should be localized vs 0 where it should not be localized so it can be used for indexing.
classmethod GetKeyValue(KeyName As %String, pDefault As %String = "") as %String
method RegValueSet(pInput As %String) as %Status
Generated by HS.HC.ChangeControl.XML.Projection. DO NOT MODIFY.

Queries

query ConfigItems(pType As %Integer = "")
SQL Query:
SELECT %ID, RegKey as "Key", RegValue as "Value" FROM Config ORDER BY RegKey

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (RegKeyIndex on RegKey) [Data = RegValue, Unique];
Index methods: RegKeyIndexCheck(), RegKeyIndexCheckUnique(), RegKeyIndexDelete(), RegKeyIndexExists(), RegKeyIndexOpen(), RegKeyIndexSQLCheckUnique(), RegKeyIndexSQLExists(), RegKeyIndexSQLFindPKeyByConstraint(), RegKeyIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Properties

Inherited Methods

Storage

Storage Model: Storage (HS.Registry.Config)

^HS.Registry.ConfigD(ID)
=
%%CLASSNAME
RegKey
RegValueEnvRaw
Notes
FeedbackOpens in a new tab