Class OwnerContactCache
Inherited Members
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
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
OnLoadAsync(CancellationToken)
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
protected override Task OnLoadAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |