HS.BulkFHIR.Util.Security
class HS.BulkFHIR.Util.Security
Method Inventory
Methods
classmethod CheckResource(pResourceName As %String, pResourceAccess As %String, pLog As %Boolean = 1)
@API
Check if current user has access to a specific resource and throw an error if not
@Input pResourceName resource name
@Input pResourceAccess resource access (R,W,U)
@Input pLog whether to log the failure (HS.BulkFHIR.Service:Operation) calls CheckResource to see if it needs to look for authorized users
classmethod ResourceCheck(pBaseResourceAccess As %List = "", pSession As HS.BulkFHIR.Session = "", pNonOwnerResourceAccess As %List = "")
@API
@Input pBaseResourceAccess $lb(resource,access)
@Input pSession Session object [ optional]
@Input pNonOwnerResourceAccess $lb(resource,access) which will only be validated if a session object is provided