Skip to main content

HS.HC.ChangeControl.EnvVar.REST.V1.Resource

class HS.HC.ChangeControl.EnvVar.REST.V1.Resource extends HS.REST.Model.Proxy

REST resource for change control environment variables management.

Method Inventory

Parameters

parameter MEDIATYPE = application/vnd.intersystems.com.hs.change-control.crud.v1+json;
Inherited description: Content-Type implemented in this class Subclasses MAY override this
parameter RESOURCENAME = env-var;
Inherited description: Name of the resource at the REST level Subclasses MUST override this
parameter SOURCECLASS = HS.HC.ChangeControl.EnvVar.Storage.Variable;
Inherited description: The class to which this class provides REST access. It must extend %Persistent and have its %JSONENABLED class parameter set to 1 (e.g., by extending %JSON.Adaptor). Subclasses must override this parameter.
parameter SecurityResource = ##class(HS.HC.ChangeControl.Installer).#SecurityResourceEnvVar;
Inherited description: Security resource used to protect this REST resource.
If provided, then any READ or QUERY operations require READ access to the resource and any Create, Update or Delete operations require WRITE access to the resource.
This parameter is used in the default implementation of CheckPermission() below. If more advanced permission checking is needed, the method can be overridden.

Methods

method OnBeforeSaveModel(pUserContext As %RegisteredObject)
Subclasses may override this method to do additional security checks or otherwise make changes to the model before it is saved. Only relevant for subclasses of %pkg.isc.rest.model.proxy and %pkg.isc.rest.model.adaptor. Clear values on disable, so that values of a different type can be provided when re-enable.
classmethod Supports(pOperation As %String, pType As %String(VALUELIST=",instance,class"), pRequest As %CSP.Request = $$$NULLOREF) as %Boolean
Do not support deletion of env var from REST API

Inherited Members

Inherited Methods

FeedbackOpens in a new tab