Interface IViewStateProvider
Namespace: SuperOffice.Cache
Assembly: SuperOffice.DCF.dll
Syntax
public interface IViewStateProvider
Methods
GetCurrent(String, Boolean, Boolean)
Get the current history for an entity from cache or from database if not in cache
Declaration
HistoryItem GetCurrent(string entityName, bool returnIfEmpty, bool setSpecifiedCurrentOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| String | entityName | The name of the entity |
| Boolean | returnIfEmpty | |
| Boolean | setSpecifiedCurrentOnly |
Returns
| Type | Description |
|---|---|
| HistoryItem | Current history value for a specific entity such as contact |
GetNextCurrent(String)
Returns the next item for the specific history list
Declaration
HistoryItem GetNextCurrent(string entityName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | entityName | Name of the history list |
Returns
| Type | Description |
|---|---|
| HistoryItem | HistoryItem with next item |
GetPreviousCurrent(String)
Returns the previous item for the specific history list
Declaration
HistoryItem GetPreviousCurrent(string entityName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | entityName | Name of the history list |
Returns
| Type | Description |
|---|---|
| HistoryItem | HistoryItem with previous item |
SetCurrent(String, HistoryItem, Boolean)
Sets a new current value for a given entity
Declaration
void SetCurrent(string entityName, HistoryItem current, bool setSpecifiedCurrentOnly = false)
Parameters
| Type | Name | Description |
|---|---|---|
| String | entityName | The name of the entity |
| HistoryItem | current | The new current object |
| Boolean | setSpecifiedCurrentOnly |