HS.Util.SystemAPIMethods

abstract class HS.Util.SystemAPIMethods

Methods that can be invoked by internal API calls to ##class(HS.Util.SystemAPI).Invoke

Method Inventory

Methods

classmethod AddUpdateRoleCustom(pRole As %String, pCustomList As %Library.List)
Either adds the system level role or updates it in a custom manner based on the provided parameters.
@Argument pRole Name of the role.
@Argument pCustomList A $ListBuild list of properties to use, with a flag for each for custom behavior as follows:
Flag = 0 means override with the provided value
Flag = 1 means append to existing value
No flag defaults to 0
If no value is provided, the property will not be populated
Format of list: $ListBuild("Description~flag", "Resources~flag", "GrantedRoles~flag")
classmethod CreateWebApplication(pName As %String, pPropertyList As %Library.List, Output pFound As %Boolean) as %Status
Wrapper around Security.Applications:Create. No-op if application already exists (returns as output whether the application was found).
NOTE: To understand certain exceptions for properties (which will undergo transformation before being sent to the Create method), look at the documentation for TransformPropertiesBeforeWebAppAPI().
classmethod UpdateCSPPercentAccess(pGrantType As %String, pCSPApplication As %String, pAccessItem As %String, pAccessEnabled As %Boolean) as %Status
pGrantType := "AllowClass" | "AllowPrefix" pCSPApplication := csp application with leading and trailing "/" pAccessItem := classname | prefix pAccessEnabled := 1 | 0
classmethod UpdateWebApplication(pName As %String, pPropertyList As %Library.List, Output pFound As %Boolean) as %Status
Wrapper around Security.Applications:Modify. No-op if application does not exist (returns as output whether the application was found).
NOTE: To understand certain exceptions for properties (which will undergo transformation before being sent to the Modify method), look at the documentation for TransformPropertiesBeforeWebAppAPI().

Subclasses

Feedback