Class MDOPreferenceCache
Cache for the special preferences used to control MDO lists; to improve performance vs. getting those preferences every time they are needed
Inherited Members
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
public class MDOPreferenceCache : CacheBase, IDisposable, IFlushable
Fields
DefaultGroupingLowerLimit
Default value for grouping list lower limit (number before list becomes flattened) in the absence of preferences
Declaration
public const int DefaultGroupingLowerLimit = 7
Field Value
Type | Description |
---|---|
Int32 |
DefaultIsGroupingAllowed
Default value for grouping in the absence of preferences
Declaration
public const bool DefaultIsGroupingAllowed = false
Field Value
Type | Description |
---|---|
Boolean |
Methods
GetCachedTableNumbers()
Interface: Return tables where changes lead to our invalidation
Declaration
public override int[] GetCachedTableNumbers()
Returns
Type | Description |
---|---|
Int32[] |
Overrides
GetCurrent()
Get the current cache instance via the generic lookup
Declaration
public static MDOPreferenceCache GetCurrent()
Returns
Type | Description |
---|---|
MDOPreferenceCache |
GetGroupingLowerLimit(String)
Get the lower limit before grouped lists collapse to flattened (though after filtering)
Declaration
public int GetGroupingLowerLimit(string listName)
Parameters
Type | Name | Description |
---|---|---|
String | listName | Name of list, case insnesitive |
Returns
Type | Description |
---|---|
Int32 | Lower limit |
GetPreferredSortOrder(String)
Get the preferred sort order. While the interface suggests this can be per list, the current functionality is to have this is a global preference
Declaration
public MDOSortOrder GetPreferredSortOrder(string listName)
Parameters
Type | Name | Description |
---|---|---|
String | listName | Name of list, case insensitive |
Returns
Type | Description |
---|---|
MDOSortOrder | Preferred sort order |
GetShowAssociatesInPrimaryGroupOnly()
Declaration
public bool GetShowAssociatesInPrimaryGroupOnly()
Returns
Type | Description |
---|---|
Boolean |
IsGroupingAllowed(String)
Get whether grouping is turned on for a specific list
Declaration
public bool IsGroupingAllowed(string listName)
Parameters
Type | Name | Description |
---|---|---|
String | listName | Name of list, case insensitive |
Returns
Type | Description |
---|---|
Boolean | True if list is grouped |
OnFlush()
Interface: Flush and reset
Declaration
protected override void OnFlush()
Overrides
OnRefresh()
Interface: Build the case. An EnterWriteContext is already in effect around this call
Declaration
protected override void OnRefresh()