Show / Hide Table of Contents

Class OwnerContactCache

Inheritance
object
CacheBaseV2
OwnerContactCache
Inherited Members
CacheBaseV2.IsCacheInvalidatedAsync(string, int, PrivateSave, CancellationToken)
CacheBaseV2.InstanceDispose()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.LoadAsync(CancellationToken)
CacheBaseV2.Load()
CacheBaseV2.Disposed
object.ToString()
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
[CacheV2(0)]
public class OwnerContactCache : CacheBaseV2

Constructors

OwnerContactCache()

Declaration
public OwnerContactCache()

Properties

TableNames

Gets the names of the table data that are cached in this cache. When these tables are updated the cache will be disposed so a new cache instance can take its place.

Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
CacheBaseV2.TableNames

Methods

IsContactCurrentDatabaseOwner(int)

Is the contact and owner of the current database

Declaration
public bool IsContactCurrentDatabaseOwner(int contactId)
Parameters
Type Name Description
int contactId

ContactId for the contact to check.

Returns
Type Description
bool

True if the contact is the owner of the current database.

IsContactDatabaseOwner(int)

Does the contact own a database (central or satellite)?

Declaration
public bool IsContactDatabaseOwner(int contactId)
Parameters
Type Name Description
int contactId

ContactId for the contact to check if it owns a database

Returns
Type Description
bool

True if the contact owns a database.

IsContactEmployeeUserOwner(int)

Is the contact, or can it be, an associate owner

Declaration
public bool IsContactEmployeeUserOwner(int contactId)
Parameters
Type Name Description
int contactId

ContactId for the contact to check.

Returns
Type Description
bool

True if the contact is an associate owner.

IsContactLicenseOwner(int)

Is the contact License/central database owner

Declaration
public bool IsContactLicenseOwner(int contactId)
Parameters
Type Name Description
int contactId

Primary id of the contect to check

Returns
Type Description
bool

True if the contact is the owner of central database and satellite.

IsContactSatelliteOwner(int)

Return true if the contact id is a sattelite owner (excluding central/license owner).

Declaration
public bool IsContactSatelliteOwner(int contactId)
Parameters
Type Name Description
int contactId

ContactId for the contact to check.

Returns
Type Description
bool

True if the contact is a sattelite owner.

OnLoad()

Declaration
protected override void OnLoad()
Overrides
CacheBaseV2.OnLoad()

OnLoadAsync(CancellationToken)

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
protected override Task OnLoadAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task
Overrides
CacheBaseV2.OnLoadAsync(CancellationToken)

Extension Methods

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