Interface IProcessSecurityEngine
Provides a set of methods to manage user access rights to start processes.
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public interface IProcessSecurityEngine
Methods
CheckCanChangeGrantee(Guid)
Throws exception if the specified admin unit cannot change process schema grantees.
Declaration
void CheckCanChangeGrantee(Guid adminUnitId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | adminUnitId | Admin unit to be checked. |
CheckCanExecute(Guid, Guid)
Throws exception if the specified admin unit cannot run the process.
Declaration
void CheckCanExecute(Guid schemaUId, Guid adminUnitId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | schemaUId | Unique identifier of the process schema. |
System.Guid | adminUnitId | Admin unit to be checked. |
DeleteExecutionGrantee(Guid, Guid)
Deletes process schema grantees for the specified admin unit.
Declaration
void DeleteExecutionGrantee(Guid schemaUId, Guid adminUnitId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | schemaUId | Unique identifier of the process schema. |
System.Guid | adminUnitId | Admin unit to be checked. |
SetExecutionGrantee(Guid, Guid, Boolean)
Sets process schema grantees for the specified admin unit.
Declaration
void SetExecutionGrantee(Guid schemaUId, Guid adminUnitId, bool canExecute)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | schemaUId | Unique identifier of the process schema. |
System.Guid | adminUnitId | Admin unit to be checked. |
System.Boolean | canExecute | Can execute. |
SetGranteePosition(Guid, Guid, Int32)
Sets the position of process schema grantees for the specified admin unit.
Declaration
void SetGranteePosition(Guid schemaUId, Guid adminUnitId, int position)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | schemaUId | Unique identifier of the process schema. |
System.Guid | adminUnitId | Admin unit to be checked. |
System.Int32 | position | Position. |