Class WorkflowSentry
WorkflowSentry guards Workflow entities. It is using visiblefor to make sure you can only see or modify what you should be able to.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public class WorkflowSentry : Sentry<WorkflowTableInfo>, ICloneable
Constructors
WorkflowSentry(WorkflowTableInfo)
Create a Workflow sentry.
Declaration
public WorkflowSentry(WorkflowTableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
WorkflowTableInfo | tableInfo |
WorkflowSentry(WorkflowTableInfo, ISoDataLookup)
Create a sentry for a particular row. The row's associate_id will control the user's permissions with respect to this row.
Declaration
public WorkflowSentry(WorkflowTableInfo tableInfo, ISoDataLookup lookup)
Parameters
Type | Name | Description |
---|---|---|
WorkflowTableInfo | tableInfo | |
ISoDataLookup | lookup |
Properties
AssociateId
Workflows associate id
Declaration
public override int AssociateId { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
GroupId
WorkflowTile's Group id
Declaration
public override int GroupId { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
IsGhostRow
Returns whether the primary key is a ghost field (i.e., we're looking at a nonexistent record, as opposed to just looking at a new one)
Declaration
public override bool IsGhostRow { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsNew
Is the row saved to teh database (persisted primary key == 0)
Declaration
public override bool IsNew { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
MainTable
Return table info.
Declaration
protected WorkflowTableInfo MainTable { get; }
Property Value
Type | Description |
---|---|
WorkflowTableInfo |
RegisteredAssociateIdField
The field that holds the associate id of the user first creating the item.
Declaration
public override FieldInfo RegisteredAssociateIdField { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Overrides
RegisteredField
The field that holds information about when the item was first created.
Declaration
public override FieldInfo RegisteredField { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Overrides
RowId
Should return a the primary key value
Declaration
public override int RowId { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Status
WorkflowSentry guards Workflow entities. It is using visiblefor to make sure you can only see or modify what you should be able to.
Declaration
public WorkflowDefinitionStatus Status { get; }
Property Value
Type | Description |
---|---|
WorkflowDefinitionStatus |
Methods
ComputeDerivedTableRights()
WorkflowSentry guards Workflow entities. It is using visiblefor to make sure you can only see or modify what you should be able to.
Declaration
protected override void ComputeDerivedTableRights()
Overrides
ComputeFieldRights()
WorkflowSentry guards Workflow entities. It is using visiblefor to make sure you can only see or modify what you should be able to.
Declaration
protected override void ComputeFieldRights()
Overrides
ComputeTableRights()
Computes table rights for tables.
Declaration
protected override void ComputeTableRights()
Overrides
GetMainRight()
Modify rights.
Declaration
public override ETableRight GetMainRight()
Returns
Type | Description |
---|---|
ETableRight | Main TableRight. |
Overrides
GetRowSentry()
WorkflowSentry guards Workflow entities. It is using visiblefor to make sure you can only see or modify what you should be able to.
Declaration
public override Sentry GetRowSentry()
Returns
Type | Description |
---|---|
Sentry |
Overrides
GetTableInfoFromQuery<TargetTableInfo>()
Get tables of the given type from our query
Declaration
protected List<TargetTableInfo> GetTableInfoFromQuery<TargetTableInfo>()
where TargetTableInfo : TableInfo
Returns
Type | Description |
---|---|
List<TargetTableInfo> | List of tableinfos of the given type, from the query |
Type Parameters
Name | Description |
---|---|
TargetTableInfo | Type of table to look for |