Show / Hide Table of Contents

Class TargetAssignmentInfoSentry

TargetsSentry guards Targets entities. It is using datarights and visiblefor to make sure you can only see or modify what you should be able to.

Inheritance
object
Sentry
Sentry<TargetAssignmentInfoTableInfo>
RoleRightsSentry<TargetAssignmentInfoTableInfo>
TargetAssignmentInfoSentry
Implements
ICloneable
Inherited Members
RoleRightsSentry<TargetAssignmentInfoTableInfo>.RoleTableRights
RoleRightsSentry<TargetAssignmentInfoTableInfo>.VisibleForRights
Sentry<TargetAssignmentInfoTableInfo>.GetInterestingFieldsInTable(TableInfo)
Sentry<TargetAssignmentInfoTableInfo>.InterestedInAnyInstanceOf<T>()
Sentry<TargetAssignmentInfoTableInfo>.ComputeDerivedTableRights()
Sentry<TargetAssignmentInfoTableInfo>.SuperComputeDerivedTableRights()
Sentry<TargetAssignmentInfoTableInfo>.ComputeDerivedTableRight(TableRight)
Sentry<TargetAssignmentInfoTableInfo>.SuperComputeTableRights()
Sentry<TargetAssignmentInfoTableInfo>.AddInterestingTables(params TableInfo[])
Sentry<TargetAssignmentInfoTableInfo>.ComputeLicenseExpiration()
Sentry<TargetAssignmentInfoTableInfo>.SuperComputeFieldRights()
Sentry<TargetAssignmentInfoTableInfo>.CanCoverTable(TableInfo)
Sentry<TargetAssignmentInfoTableInfo>.IsTableCovered(TableInfo)
Sentry<TargetAssignmentInfoTableInfo>.SetAllTableRights(ETableRight, string)
Sentry<TargetAssignmentInfoTableInfo>.GetOwnerFieldRight()
Sentry<TargetAssignmentInfoTableInfo>.AnalyzeQuery(PrivateSelect)
Sentry<TargetAssignmentInfoTableInfo>.ToString()
Sentry<TargetAssignmentInfoTableInfo>.InterestingFields
Sentry<TargetAssignmentInfoTableInfo>.SentryQueryInfo
Sentry.kTableRights
Sentry.kFieldRights
Sentry._tableRights
Sentry._fieldRights
Sentry._lookups
Sentry.DemandPlugins()
Sentry.CreateSentry(TableInfo)
Sentry.CreateSentries(Select)
Sentry.BeginIgnoreSentry()
Sentry.BeginIgnoreRowSentry()
Sentry.IgnoreRowSentry()
Sentry.IgnoreSentry()
Sentry.IterateLookups(LookupCollection)
Sentry.GetIntField(params FieldInfo[])
Sentry.GetPersistedIntField(params FieldInfo[])
Sentry.GetIsGhostField(FieldInfo)
Sentry.GetDateTimeField(FieldInfo)
Sentry.GetStringField(FieldInfo)
Sentry.ClearRights()
Sentry.GetRecordOwnershipIndex()
Sentry.GetRecordOwnershipIndex(int, int)
Sentry.MapTableToFieldRights(TableInfo, TableRight, FieldInfo[])
Sentry.MakeFieldFromTableRight(TableRight)
Sentry.MakeFieldFromTableRight(TableRight, ETableRight)
Sentry.MakeFieldFromTableRight(ETableRight)
Sentry.GetTableRight(TableInfo)
Sentry.GetFieldRight(FieldInfo)
Sentry.CanTableDo(TableInfo, ETableRight, bool)
Sentry.CanFieldDo(FieldInfo, EFieldRight, bool)
Sentry.IsFieldCovered(FieldInfo)
Sentry.GetGroupFromAssociate(int)
Sentry.IsContactDatabaseOwner(int)
Sentry.IsContactEmployeeUserOwner(int)
Sentry.IsContactSatelliteOwner(int)
Sentry.IsContactLicenseOwner(int)
Sentry.IsContactCurrentDatabaseOwner(int)
Sentry.IsPersonAssociate(int, bool)
Sentry.IsAssociatesOwnerContact(int, int)
Sentry.Lookups
Sentry.Parent
Sentry.Registered
Sentry.RegisteredAssociateId
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public class TargetAssignmentInfoSentry : RoleRightsSentry<TargetAssignmentInfoTableInfo>, ICloneable

Constructors

TargetAssignmentInfoSentry(TargetAssignmentInfoTableInfo)

Create a TargetsTile sentry.

Declaration
public TargetAssignmentInfoSentry(TargetAssignmentInfoTableInfo tableInfo)
Parameters
Type Name Description
TargetAssignmentInfoTableInfo tableInfo

TargetAssignmentInfoSentry(TargetAssignmentInfoTableInfo, 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 TargetAssignmentInfoSentry(TargetAssignmentInfoTableInfo tableInfo, ISoDataLookup lookup)
Parameters
Type Name Description
TargetAssignmentInfoTableInfo tableInfo
ISoDataLookup lookup

Properties

AssociateId

Targets associate id

Declaration
public override int AssociateId { get; }
Property Value
Type Description
int
Overrides
Sentry.AssociateId

ContactId

Targets contact id

Declaration
public int ContactId { get; }
Property Value
Type Description
int

GroupId

Targets Group id

Declaration
public override int GroupId { get; }
Property Value
Type Description
int
Overrides
Sentry.GroupId

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
bool
Overrides
Sentry.IsGhostRow

IsNew

Is the row saved to teh database (persisted primary key == 0)

Declaration
public override bool IsNew { get; }
Property Value
Type Description
bool
Overrides
Sentry.IsNew

MainTable

Return table info.

Declaration
protected TargetAssignmentInfoTableInfo MainTable { get; }
Property Value
Type Description
TargetAssignmentInfoTableInfo

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
Sentry.RegisteredAssociateIdField

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
Sentry.RegisteredField

RowId

Should return a the primary key value

Declaration
public override int RowId { get; }
Property Value
Type Description
int
Overrides
Sentry.RowId

Methods

ComputeFieldRights()

TargetsSentry guards Targets entities. It is using datarights and visiblefor to make sure you can only see or modify what you should be able to.

Declaration
protected override void ComputeFieldRights()
Overrides
Sentry<TargetAssignmentInfoTableInfo>.ComputeFieldRights()

ComputeTableRights()

Computes table rights for tables.

Declaration
protected override void ComputeTableRights()
Overrides
Sentry<TargetAssignmentInfoTableInfo>.ComputeTableRights()

GetMainRight()

Modify rights.

Declaration
public override ETableRight GetMainRight()
Returns
Type Description
ETableRight

Main TableRight.

Overrides
RoleRightsSentry<TargetAssignmentInfoTableInfo>.GetMainRight()

GetRowSentry()

Create a copy of the Sentry holding the right instances of table and field infos.

Declaration
public override Sentry GetRowSentry()
Returns
Type Description
Sentry

New instance of the Sentry.

Overrides
Sentry.GetRowSentry()

Implements

ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top