%ZHSLIB.UsersAndRoles
class %ZHSLIB.UsersAndRoles extends %Library.RegisteredObject
This interface is used specifically for the HealthShare user maintenance interfaceMethod Inventory
- AddGroupRoles()
- AddRole()
- AddUser()
- AddUserRolesGroups()
- CalculateUpdatedRolesResources()
- CheckPermission()
- DeleteRole()
- DeleteUser()
- GetNewSystemRoles()
- GetRoleGroupDescription()
- GetUserProperties()
- IsHealthShareDatabaseRole()
- IsHealthShareGroupRole()
- IsHealthShareRole()
- IsHealthShareSystemRole()
- IsHealthShareUserRole()
- RecurseRoles()
- RemoveUserRolesGroups()
- SetUpdatedRolesResources()
- UpdateRoleGroupDescription()
- UpdateUserStatus()
- UpdatedRolesResources()
Parameters
parameter DOMAIN = %Utility;
Methods
classmethod AddGroupRoles(pName As %String, pDescription As %String, pType As %String = "Groups") as %Status
need to add validation
Add a Group or Role definiton
classmethod AddUser(pNewUser As %Boolean = 1, pCopyFrom As %String, pUsername As %String = "", pName As %String = "", pPassword As %String = "", pComment="", pChangePassword As %Boolean = 0, pEnabled As %Boolean = 1, pExpirationDate As %String) as %Status
classmethod CalculateUpdatedRolesResources() as %Status
Determine the roles / resources that have changed since the last time run
classmethod CheckPermission(pRoles As %String, pResource As %String, pPermission As %String) as %Boolean
Delete Group or Role
Delete User
Returns an HS.Message.Roles populated with all healthshare roles that are on the system but not populated into HS.Registry.Role,
where healthshare roles are any roles starting with "%HS" or "HS", but not "%HS_DB"
Checks if the role pRole is a valid HealthShare database role by checking if its
prefix matches one of the allowed database prefixes.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Checks if the role pRole is a valid HealthShare group role by checking if its
prefix matches one of the allowed group prefixes.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Checks if the role pRole is a valid HealthShare role by checking if its prefix
matches one of the allowed prefixes.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Checks if the role pRole is a valid HealthShare system role by checking if its
prefix matches one of the allowed system prefixes.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Checks if the role pRole is a valid HealthShare user role by checking if its
prefix matches one of the allowed user prefixes.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
Returns 1 if at least one of the prefixes is matched against. 0 otherwise. @Argument pRole Name of role.
build list of resources/roles that have been updated since a point in time
Queries
query QueryAllGroups()
query QueryAvailableGroups()
query QueryAvailableRoles()
query QueryAvailableUsers(pFilter As %String = "")
query QuerySelectedGroups(pUsername As %String = "")
query QuerySelectedRoles(pUsername As %String = "")
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()