Show / Hide Table of Contents

Class RelationsSentry

RelationsSentry guards Relations entities The RelationsSentry applies to the following classes: RelationsRow

Inheritance
Object
Sentry
Sentry<RelationsTableInfo>
RoleRightsSentry<RelationsTableInfo>
RelationsSentry
Implements
ICloneable
Inherited Members
RoleRightsSentry<RelationsTableInfo>.GetMainRight()
RoleRightsSentry<RelationsTableInfo>.RoleTableRights
RoleRightsSentry<RelationsTableInfo>.VisibleForRights
Sentry<RelationsTableInfo>.GetInterestingFieldsInTable(TableInfo)
Sentry<RelationsTableInfo>.InterestedInAnyInstanceOf<T>()
Sentry<RelationsTableInfo>.ComputeDerivedTableRights()
Sentry<RelationsTableInfo>.SuperComputeDerivedTableRights()
Sentry<RelationsTableInfo>.ComputeDerivedTableRight(TableRight)
Sentry<RelationsTableInfo>.SuperComputeTableRights()
Sentry<RelationsTableInfo>.AddInterestingTables(TableInfo[])
Sentry<RelationsTableInfo>.ComputeLicenseExpiration()
Sentry<RelationsTableInfo>.SuperComputeFieldRights()
Sentry<RelationsTableInfo>.CanCoverTable(TableInfo)
Sentry<RelationsTableInfo>.IsTableCovered(TableInfo)
Sentry<RelationsTableInfo>.SetAllTableRights(ETableRight, String)
Sentry<RelationsTableInfo>.GetOwnerFieldRight()
Sentry<RelationsTableInfo>.AnalyzeQuery(PrivateSelect)
Sentry<RelationsTableInfo>.ToString()
Sentry<RelationsTableInfo>.InterestingFields
Sentry<RelationsTableInfo>.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 RelationsSentry : RoleRightsSentry<RelationsTableInfo>, ICloneable
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

Constructors

RelationsSentry(RelationsTableInfo)

Create a Relations sentry.

Declaration
public RelationsSentry(RelationsTableInfo relationsTableInfo)
Parameters
Type Name Description
RelationsTableInfo relationsTableInfo
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

RelationsSentry(RelationsTableInfo, ISoDataLookup)

Create a Relations sentry for a particular Relations row. The row's associate_id will control the user's permissions with respect to this row.

Declaration
public RelationsSentry(RelationsTableInfo relationsTableInfo, ISoDataLookup lookup)
Parameters
Type Name Description
RelationsTableInfo relationsTableInfo
ISoDataLookup lookup
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

Fields

_queryInfo

RelationsSentry guards Relations entities The RelationsSentry applies to the following classes: RelationsRow

Declaration
protected RelationsSentryQueryInfo _queryInfo
Field Value
Type Description
RelationsSentryQueryInfo
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

Properties

AssociateId

Relations's associate id - return the Relation.Assoc-id. Returns the current user's id if the field is zero.

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

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

GroupId

Relations's Group id - returns the Relation.Group-id. This is the primary group of the Relation.Assoc-id at the time of creation. The owner and group of a relation are not intended to be edited. Returns the associate-id's primary usergroup if the field is zero.

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

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

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
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

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
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

MainTable

Return Relations table info.

Declaration
protected RelationsTableInfo MainTable { get; }
Property Value
Type Description
RelationsTableInfo
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

RegisteredAssociateIdField

The field that holds the associate id of teh user first creating the item.

Declaration
public override FieldInfo RegisteredAssociateIdField { get; }
Property Value
Type Description
FieldInfo
Overrides
Sentry.RegisteredAssociateIdField
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

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
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

RowId

Should return a Relations.Relations_id

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

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

Methods

ComputeFieldRights()

RelationsSentry guards Relations entities The RelationsSentry applies to the following classes: RelationsRow

Declaration
protected override void ComputeFieldRights()
Overrides
SuperOffice.CRM.Security.Sentry<SuperOffice.CRM.Data.RelationsTableInfo>.ComputeFieldRights()
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

ComputeTableRights()

Computes table rights for Relations tables. Everyone has full access to relations.

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

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

GetRowSentry()

RelationsSentry guards Relations entities The RelationsSentry applies to the following classes: RelationsRow

Declaration
public override Sentry GetRowSentry()
Returns
Type Description
Sentry
Overrides
Sentry.GetRowSentry()
Remarks

The Relations row automatically creates a sentry.

Examples

RelationsRow r = new RelationsRow.IdxRelationsId(1234); r.Sentries.GetFieldRight( p.Sentries );

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