Class OwnerContactCache
Summary description for OwnerContactCache.
Inherited Members
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public class OwnerContactCache : CacheBase, IDisposable, IFlushable
Methods
GetCachedTableNumbers()
Declaration
public override int[] GetCachedTableNumbers()
Returns
Type | Description |
---|---|
Int32[] |
Overrides
GetCurrent()
Obtain an instance of the cache
Declaration
public static OwnerContactCache GetCurrent()
Returns
Type | Description |
---|---|
OwnerContactCache |
IsContactCurrentDatabaseOwner(Int32)
Is the contact and owner of the current database
Declaration
public bool IsContactCurrentDatabaseOwner(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | ContactId for the contact to check. |
Returns
Type | Description |
---|---|
Boolean | True if the contact is the owner of the current database. |
IsContactDatabaseOwner(Int32)
Does the contact own a database (central or satellite)?
Declaration
public bool IsContactDatabaseOwner(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | ContactId for the contact to check if it owns a database |
Returns
Type | Description |
---|---|
Boolean | True if the contact owns a database. |
IsContactEmployeeUserOwner(Int32)
Is the contact, or can it be, an associate owner
Declaration
public bool IsContactEmployeeUserOwner(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | ContactId for the contact to check. |
Returns
Type | Description |
---|---|
Boolean | True if the contact is an associate owner. |
IsContactLicenseOwner(Int32)
Is the contact License/central database owner
Declaration
public bool IsContactLicenseOwner(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | Primary id of the contect to check |
Returns
Type | Description |
---|---|
Boolean | True if the contact is the owner of central database and satellite. |
IsContactSatelliteOwner(Int32)
Return true if the contact id is a sattelite owner (excluding central/license owner).
Declaration
public bool IsContactSatelliteOwner(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | ContactId for the contact to check. |
Returns
Type | Description |
---|---|
Boolean | True if the contact is a sattelite owner. |
OnFlush()
Declaration
protected override void OnFlush()
Overrides
OnRefresh()
Declaration
protected override void OnRefresh()