Show / Hide Table of Contents

Class DashboardTileSentry

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

Constructors

DashboardTileSentry(BinaryObjectTableInfo)

Create a DashboardTile sentry.

Declaration
public DashboardTileSentry(BinaryObjectTableInfo tableInfo)
Parameters
Type Name Description
BinaryObjectTableInfo tableInfo

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

Properties

AssociateId

DashboardTile's associate id

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

GroupId

DashboardTile's Group id

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

IsDefaultTile

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

Declaration
public bool IsDefaultTile { get; }
Property Value
Type Description
Boolean

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 BinaryObjectTableInfo MainTable { get; }
Property Value
Type Description
BinaryObjectTableInfo

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()

DashboardTileSentry guards DashboardTile 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.BinaryObjectTableInfo>.ComputeFieldRights()

ComputeTableRights()

Computes table rights for tables.

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

GetMainRight()

Modify rights.

Declaration
public override ETableRight GetMainRight()
Returns
Type Description
ETableRight

Main TableRight.

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

GetRowSentry()

DashboardTileSentry guards DashboardTile 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