Class ContentSoftLinkDB
Summary description for SoftLinkDB. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inherited Members
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ContentSoftLinkDB : DataAccessBase
Constructors
ContentSoftLinkDB(IDatabaseHandler)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use constructor where dependencies are injected")]
public ContentSoftLinkDB(IDatabaseHandler databaseHandler)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseHandler | databaseHandler |
ContentSoftLinkDB(IDatabaseHandler, IPermanentLinkMapper, ILanguageBranchRepository)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public ContentSoftLinkDB(IDatabaseHandler databaseHandler, IPermanentLinkMapper permanentLinkMapper, ILanguageBranchRepository languageBranchRepository)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseHandler | databaseHandler | |
IPermanentLinkMapper | permanentLinkMapper | |
ILanguageBranchRepository | languageBranchRepository |
Methods
GetBrokenLinks(ContentReference, Int32, Int32)
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 |
GetLinks(Guid, Boolean)
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> |
GetUncheckedLinks(DateTime, TimeSpan, Int32)
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 |
Load(Guid, Boolean)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use GetLinks() method instead.")]
public DataTable Load(Guid contentGUID, bool reversed)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentGUID | |
System.Boolean | reversed |
Returns
Type | Description |
---|---|
System.Data.DataTable |
Load(String)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use GetRemoteReferenceInformation instead")]
public DataTable Load(string pageID)
Parameters
Type | Name | Description |
---|---|---|
System.String | pageID |
Returns
Type | Description |
---|---|
System.Data.DataTable |
Load(String, Boolean)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use GetLinksByPath() method instead.")]
public DataTable Load(string path, bool exactMatch)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | |
System.Boolean | exactMatch |
Returns
Type | Description |
---|---|
System.Data.DataTable |
Save(ContentReference, CultureInfo, IEnumerable<SoftLink>, Boolean)
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 |
Save(Int32, DataTable, String, Boolean)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use overloaded Save method instead")]
public void Save(int ownerContentID, DataTable dt, string language, bool appendOnly)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ownerContentID | |
System.Data.DataTable | dt | |
System.String | language | |
System.Boolean | appendOnly |
UpdateLinkStatus(SoftLink)
Store the updated link in the database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("Use UpdateLinkStatus(IEnumerable<SoftLink> links) instead.")]
public void UpdateLinkStatus(SoftLink link)
Parameters
Type | Name | Description |
---|---|---|
SoftLink | link | link to store |
UpdateLinkStatus(IEnumerable<SoftLink>)
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 |