Interface ITabDefinitionRepository

Defines methods for interacting with a data repository where TabDefinitions are persisted.

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface ITabDefinitionRepository

Methods

Delete(TabDefinition)

Deletes a tab definition

Declaration
void Delete(TabDefinition tabDefinition)
Parameters
Type Name Description
TabDefinition tabDefinition

The tab definition that will be deleted

Delete(TabDefinition, Int32)

Deletes a tab definition

Declaration
void Delete(TabDefinition tabDefinition, int replaceWithTabDefinition)
Parameters
Type Name Description
TabDefinition tabDefinition

The tab definition that will be deleted

System.Int32 replaceWithTabDefinition

Replace existing references with tab

GetDependentPropertyNames(Int32)

List all dependent properties for a specified tab

Declaration
IEnumerable<string> GetDependentPropertyNames(int tabId)
Parameters
Type Name Description
System.Int32 tabId

The key for the tab

Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

A list of all property names found on the specified tab

List()

List all defined tabs

Declaration
IEnumerable<TabDefinition> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<TabDefinition>

A collection of types

Load(Int32)

Load a tab based on identifier

Declaration
TabDefinition Load(int id)
Parameters
Type Name Description
System.Int32 id

The tab identifier

Returns
Type Description
TabDefinition

A tab or null if not found

Load(String)

Load a tab based on name

Declaration
TabDefinition Load(string name)
Parameters
Type Name Description
System.String name

The tab name

Returns
Type Description
TabDefinition

A tab or null if not found

Save(TabDefinition)

Stores or updates a specified tab definition in the repository.

Declaration
void Save(TabDefinition tabDefinition)
Parameters
Type Name Description
TabDefinition tabDefinition

The tab definition that should be persisted.

Extension Methods