Try our conversational search powered by Generative AI!

Class DefaultParentRestoreRepository

Default implementation of ParentRestore repository, save, delete and get old parent info from and to DDS

Inheritance
System.Object
DefaultParentRestoreRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(ServiceType = typeof(IParentRestoreRepository))]
public class DefaultParentRestoreRepository : IParentRestoreRepository

Constructors

DefaultParentRestoreRepository()

Initializes a new instance of the DefaultParentRestoreRepository class.

Declaration
public DefaultParentRestoreRepository()

DefaultParentRestoreRepository(DynamicDataStoreFactory)

Initializes a new instance of the DefaultParentRestoreRepository class.

Declaration
public DefaultParentRestoreRepository(DynamicDataStoreFactory storeFactory)
Parameters
Type Name Description
DynamicDataStoreFactory storeFactory

The store factory.

Properties

StoreFactory

Gets the store factory.

Declaration
protected virtual DynamicDataStoreFactory StoreFactory { get; }
Property Value
Type Description
DynamicDataStoreFactory

StoreName

Gets the name of the store.

Declaration
protected virtual string StoreName { get; }
Property Value
Type Description
System.String

The name of the store.

Methods

Deletes the parent link.

Declaration
public virtual ContentReference DeleteParentLink(ContentReference sourceLink)
Parameters
Type Name Description
ContentReference sourceLink

The source link.

Returns
Type Description
ContentReference

EnsureStore()

Ensures the store.

Declaration
protected virtual void EnsureStore()

Find(ContentReference)

Finds the specified source link.

Declaration
protected virtual ParentRestoreEntity Find(ContentReference sourceLink)
Parameters
Type Name Description
ContentReference sourceLink

The source link.

Returns
Type Description
ParentRestoreEntity

Gets the parent link.

Declaration
public virtual ContentReference GetParentLink(ContentReference sourceLink)
Parameters
Type Name Description
ContentReference sourceLink

The source link.

Returns
Type Description
ContentReference

Saves the parent link.

Declaration
public virtual void SaveParentLink(ContentReference sourceLink, ContentReference parentLink)
Parameters
Type Name Description
ContentReference sourceLink

The source link.

ContentReference parentLink

The parent link.

Implements

Extension Methods