Class ContentSoftLinkDB

Inheritance
System.Object
ContentSoftLinkDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class ContentSoftLinkDB : DataAccessBase

Constructors

ContentSoftLinkDB(IDatabaseExecutor, IPermanentLinkMapper, ILanguageBranchRepository, DatabaseDateTimeHandler)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public ContentSoftLinkDB(IDatabaseExecutor databaseHandler, IPermanentLinkMapper permanentLinkMapper, ILanguageBranchRepository languageBranchRepository, DatabaseDateTimeHandler dateTimeHandler)
Parameters
Type Name Description
IDatabaseExecutor databaseHandler
IPermanentLinkMapper permanentLinkMapper
ILanguageBranchRepository languageBranchRepository
DatabaseDateTimeHandler dateTimeHandler

Methods

Delete all softlink references for ownerContent with specific language.

Declaration
public void DeleteLinks(ContentReference ownerContent, string language)
Parameters
Type Name Description
ContentReference ownerContent

The content reference

System.String language

The language

Gets broken links from the database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IEnumerable<SoftLink> GetBrokenLinks(ContentReference root, int skipCount, int maxResults)
Parameters
Type Name Description
ContentReference root

The root item.

System.Int32 skipCount

The skip count.

System.Int32 maxResults

The max results.

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

GetBrokenLinksCount(ContentReference)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public int GetBrokenLinksCount(ContentReference ownerContentID)
Parameters
Type Name Description
ContentReference ownerContentID
Returns
Type Description
System.Int32

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IEnumerable<SoftLink> GetLinks(Guid contentGUID, bool reversed)
Parameters
Type Name Description
System.Guid contentGUID
System.Boolean reversed
Returns
Type Description
System.Collections.Generic.IEnumerable<SoftLink>

GetLinksByPath(String, Boolean)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IEnumerable<SoftLink> GetLinksByPath(string path, bool exactMatch)
Parameters
Type Name Description
System.String path
System.Boolean exactMatch
Returns
Type Description
System.Collections.Generic.IEnumerable<SoftLink>

GetRemoteReferenceInformation(ContentReference)

Gets the remote reference information.

Declaration
public IEnumerable<ReferenceInformation> GetRemoteReferenceInformation(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

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

Get Unchecked links from the database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<SoftLink> GetUncheckedLinks(DateTime lastCheckedDate, TimeSpan ignoreWorkingLinksInterval, int maxNumberOfLinks)
Parameters
Type Name Description
System.DateTime lastCheckedDate

Date when the links were last checked

System.TimeSpan ignoreWorkingLinksInterval

The time back in history where we don't want to recheck working links.

System.Int32 maxNumberOfLinks

Maximum number of links that should be returnd

Returns
Type Description
System.Collections.Generic.IList<SoftLink>

Links that has not been checked prior to the start date

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void Save(ContentReference ownerContent, CultureInfo ownerLanguage, IEnumerable<SoftLink> links, bool appendOnly)
Parameters
Type Name Description
ContentReference ownerContent
System.Globalization.CultureInfo ownerLanguage
System.Collections.Generic.IEnumerable<SoftLink> links
System.Boolean appendOnly

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void UpdateLinkStatus(IEnumerable<SoftLink> links)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<SoftLink> links

Extension Methods