Class PermissionDefinition
Definition of a permission.
Namespace: Sartorius.SAF.Security
Assembly: Sartorius.SAF.dll
Syntax
[Serializable]
public class PermissionDefinition
Constructors
View SourcePermissionDefinition(string, string)
Initializes a new instance of the PermissionDefinition class.
Declaration
public PermissionDefinition(string context, string task)
Parameters
| Type | Name | Description |
|---|---|---|
| string | context | The name permissions context. |
| string | task | The name of the permissions task. |
Properties
View SourceAuditTrailActivated
Indicates whether audit trail is activated for this permission.
Declaration
public bool AuditTrailActivated { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Context
Name of the permission context.
Declaration
public string Context { get; }
Property Value
| Type | Description |
|---|---|
| string |
ElectronicSignatureActivated
Indicates whether electronic signature is activated for this permission.
Declaration
public bool ElectronicSignatureActivated { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Task
Gets or sets the permission task.
Declaration
public string Task { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceEquals(PermissionDefinition)
Declaration
protected bool Equals(PermissionDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionDefinition | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |