November Happy Hour will be moved to Thursday December 5th.

Class ContentSoftLinkRepository

Inheritance
System.Object
ContentSoftLinkRepository
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
[Obsolete("Use abstractions IContentSoftLinkRepository to load and save soft links, use IContentSoftLinkStatusService to check status of a link")]
public class ContentSoftLinkRepository : DefaultContentSoftLinkRepository, IContentSoftLinkRepository, IContentSoftLinkStatusService

Constructors

ContentSoftLinkRepository()

Initializes a new instance of the ContentSoftLinkRepository class.

Declaration
public ContentSoftLinkRepository()

ContentSoftLinkRepository(IPermanentLinkMapper, ServiceAccessor<ContentSoftLinkDB>)

Initializes a new instance of the ContentSoftLinkRepository class.

Declaration
public ContentSoftLinkRepository(IPermanentLinkMapper permanentLinkMapper, ServiceAccessor<ContentSoftLinkDB> softLinkDataAccess)
Parameters
Type Name Description
IPermanentLinkMapper permanentLinkMapper

The permanent link mapper that should be used by this instance and any loaded links.

ServiceAccessor<ContentSoftLinkDB> softLinkDataAccess

An accessor method that retrieves the soft link data access instance that should be used by this instance.

Methods

Appends all the specified SoftLink instances with the same owner page link.

Declaration
[Obsolete("Use overloads to Save instead")]
public virtual void Append(ContentReference ownerContent, CultureInfo ownerLanguage, IList<SoftLink> links)
Parameters
Type Name Description
ContentReference ownerContent

The owner content link.

System.Globalization.CultureInfo ownerLanguage

The language, specify null to re-save links for all languages

System.Collections.Generic.IList<SoftLink> links

The collection of SoftLink instances.

Delete all softlink references for ownerContent with specific language.

Declaration
[Obsolete("Renamed to Delete")]
public virtual void DeleteLinks(ContentReference ownerContent, string language)
Parameters
Type Name Description
ContentReference ownerContent

The content reference

System.String language

The language

Implements

Extension Methods