Class TabDefinitionRepository
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A repository for the Tab
Inheritance
Inherited Members
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(ServiceType = typeof(ITabDefinitionRepository))]
public class TabDefinitionRepository : ITabDefinitionRepository, ICachedRepository
Constructors
TabDefinitionRepository(ServiceAccessor<TabInfoDB>, ISynchronizedObjectInstanceCache)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the Tab
Declaration
public TabDefinitionRepository(ServiceAccessor<TabInfoDB> dataAccess, ISynchronizedObjectInstanceCache cacheInstance)
Parameters
Type | Name | Description |
---|---|---|
Service |
dataAccess | The data access. |
ISynchronized |
cacheInstance | The cache. |
Methods
ClearCache()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Clear cache.
Declaration
public virtual void ClearCache()
Delete(TabDefinition)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Deletes a tab definition
Declaration
public virtual void Delete(TabDefinition tabDefinition)
Parameters
Type | Name | Description |
---|---|---|
Tab |
tabDefinition | The tab definition that will be deleted |
Delete(TabDefinition, Int32)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Deletes a tab definition and replaces any references to this tab with the specified tab.
Declaration
public virtual void Delete(TabDefinition tabDefinition, int replaceWithTabDefinition)
Parameters
Type | Name | Description |
---|---|---|
Tab |
tabDefinition | The tab definition that should be persisted. |
System. |
replaceWithTabDefinition | Replace existing references with tab |
GetDependentPropertyNames(Int32)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all dependent properties for a specified tab
Declaration
public virtual IEnumerable<string> GetDependentPropertyNames(int tabId)
Parameters
Type | Name | Description |
---|---|---|
System. |
tabId | The key for the tab |
Returns
Type | Description |
---|---|
System. |
A list of all property names found on the specified tab |
List()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all defined tabs
Declaration
public virtual IEnumerable<TabDefinition> List()
Returns
Type | Description |
---|---|
System. |
A collection of types |
Load(Int32)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load a tab based on identifier
Declaration
public virtual TabDefinition Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The tab identifier |
Returns
Type | Description |
---|---|
Tab |
A tab or null if not found |
Load(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load a tab based on name
Declaration
public virtual TabDefinition Load(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The tab name |
Returns
Type | Description |
---|---|
Tab |
A tab or null if not found |
Merge(TabDefinition)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Merge the Tab
Declaration
protected virtual void Merge(TabDefinition tabDefinition)
Parameters
Type | Name | Description |
---|---|---|
Tab |
tabDefinition | tabDefinition |
OnTabDefinitionDeleted(EventArgs)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Raises the Tab
Declaration
protected virtual void OnTabDefinitionDeleted(EventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System. |
args | The System. |
OnTabDefinitionSaved(EventArgs)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Raises the Tab
Declaration
protected virtual void OnTabDefinitionSaved(EventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System. |
args | The System. |
Save(TabDefinition)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Stores or updates a specified tab definition in the repository.
Declaration
public virtual void Save(TabDefinition tabDefinition)
Parameters
Type | Name | Description |
---|---|---|
Tab |
tabDefinition | The tab definition that will be deleted |
Events
TabDefinitionDeleted
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Occurs when a Tab
Declaration
public static event EventHandler<EventArgs> TabDefinitionDeleted
Event Type
Type | Description |
---|---|
System. |
TabDefinitionSaved
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Occurs when a Tab
Declaration
public static event EventHandler<EventArgs> TabDefinitionSaved
Event Type
Type | Description |
---|---|
System. |