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<DashboardTileTableInfo>
RoleRightsSentry<DashboardTileTableInfo>
DashboardTileSentry
Implements
ICloneable
Inherited Members
RoleRightsSentry<DashboardTileTableInfo>.RoleTableRights
RoleRightsSentry<DashboardTileTableInfo>.VisibleForRights
Sentry<DashboardTileTableInfo>.GetInterestingFieldsInTable(TableInfo)
Sentry<DashboardTileTableInfo>.InterestedInAnyInstanceOf<T>()
Sentry<DashboardTileTableInfo>.ComputeDerivedTableRights()
Sentry<DashboardTileTableInfo>.SuperComputeDerivedTableRights()
Sentry<DashboardTileTableInfo>.ComputeDerivedTableRight(TableRight)
Sentry<DashboardTileTableInfo>.SuperComputeTableRights()
Sentry<DashboardTileTableInfo>.ModifySameDayRights(ref ETableRight, ref string)
Sentry<DashboardTileTableInfo>.ComputeGhostTableRights()
Sentry<DashboardTileTableInfo>.AddInterestingTables(params TableInfo[])
Sentry<DashboardTileTableInfo>.ComputeLicenseExpiration()
Sentry<DashboardTileTableInfo>.SuperComputeFieldRights()
Sentry<DashboardTileTableInfo>.CanCoverTable(TableInfo)
Sentry<DashboardTileTableInfo>.IsTableCovered(TableInfo)
Sentry<DashboardTileTableInfo>.SetAllTableRights(ETableRight, string)
Sentry<DashboardTileTableInfo>.GetOwnerFieldRight()
Sentry<DashboardTileTableInfo>.AnalyzeQuery(PrivateSelect)
Sentry<DashboardTileTableInfo>.ToString()
Sentry<DashboardTileTableInfo>.InterestingFields
Sentry<DashboardTileTableInfo>.SentryQueryInfo
Sentry.kTableRights
Sentry.kFieldRights
Sentry._tableRights
Sentry._fieldRights
Sentry._lookups
Sentry.DemandPlugins()
Sentry.CreateSentry(TableInfo)
Sentry.CreateSentries(Select, SoCommand)
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.SetParentSentryLookups(ISoDataLookup)
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 DashboardTileSentry : RoleRightsSentry<DashboardTileTableInfo>, ICloneable

Constructors

DashboardTileSentry(DashboardTileTableInfo)

Create a DashboardTile sentry.

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

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

Properties

AssociateId

DashboardTile's associate id

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

GroupId

DashboardTile's 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 DashboardTileTableInfo MainTable { get; }
Property Value
Type Description
DashboardTileTableInfo

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

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
Sentry<DashboardTileTableInfo>.ComputeFieldRights()

ComputeTableRights()

Computes table rights for tables.

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

GetMainRight()

Modify rights.

Declaration
public override ETableRight GetMainRight()
Returns
Type Description
ETableRight

Main TableRight.

Overrides
RoleRightsSentry<DashboardTileTableInfo>.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