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(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(FieldInfo[])
Sentry.GetPersistedIntField(FieldInfo[])
Sentry.GetIsGhostField(FieldInfo)
Sentry.GetDateTimeField(FieldInfo)
Sentry.GetStringField(FieldInfo)
Sentry.ClearRights()
Sentry.GetRecordOwnershipIndex()
Sentry.GetRecordOwnershipIndex(Int32, Int32)
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, Boolean)
Sentry.CanFieldDo(FieldInfo, EFieldRight, Boolean)
Sentry.IsFieldCovered(FieldInfo)
Sentry.GetGroupFromAssociate(Int32)
Sentry.IsContactDatabaseOwner(Int32)
Sentry.IsContactEmployeeUserOwner(Int32)
Sentry.IsContactSatelliteOwner(Int32)
Sentry.IsContactLicenseOwner(Int32)
Sentry.IsContactCurrentDatabaseOwner(Int32)
Sentry.IsPersonAssociate(Int32, Boolean)
Sentry.IsAssociatesOwnerContact(Int32, Int32)
Sentry.Lookups
Sentry.Parent
Sentry.Registered
Sentry.RegisteredAssociateId
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
Int32
Overrides
Sentry.AssociateId

ContactId

Targets contact id

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

GroupId

Targets Group id

Declaration
public override int GroupId { get; }
Property Value
Type Description
Int32
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
Boolean
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
Boolean
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
Int32
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
SuperOffice.CRM.Security.Sentry<SuperOffice.CRM.Data.TargetAssignmentInfoTableInfo>.ComputeFieldRights()

ComputeTableRights()

Computes table rights for tables.

Declaration
protected override void ComputeTableRights()
Overrides
SuperOffice.CRM.Security.Sentry<SuperOffice.CRM.Data.TargetAssignmentInfoTableInfo>.ComputeTableRights()

GetMainRight()

Modify rights.

Declaration
public override ETableRight GetMainRight()
Returns
Type Description
ETableRight

Main TableRight.

Overrides
SuperOffice.CRM.Security.RoleRightsSentry<SuperOffice.CRM.Data.TargetAssignmentInfoTableInfo>.GetMainRight()

GetRowSentry()

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
public override Sentry GetRowSentry()
Returns
Type Description
Sentry
Overrides
Sentry.GetRowSentry()

Implements

System.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