Class ContentSoftLinkIndexer
Parses and extracts soft links from content items. Used internally when content is published.
Inheritance
System.Object
ContentSoftLinkIndexer
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.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ContentSoftLinkIndexer
Constructors
ContentSoftLinkIndexer(TypeRelater, IEnumerable<IPropertySoftLinkIndexer>)
Initializes a new instance of the ContentSoftLinkIndexer class
Declaration
public ContentSoftLinkIndexer(TypeRelater typeRelater, IEnumerable<IPropertySoftLinkIndexer> propertyIndexers)
Parameters
Type | Name | Description |
---|---|---|
TypeRelater | typeRelater | |
System.Collections.Generic.IEnumerable<IPropertySoftLinkIndexer> | propertyIndexers |
ContentSoftLinkIndexer(IPermanentLinkMapper)
Initializes a new instance of the ContentSoftLinkIndexer class
Declaration
[Obsolete("This constructor is no longer used")]
public ContentSoftLinkIndexer(IPermanentLinkMapper permanentLinkMapper)
Parameters
Type | Name | Description |
---|---|---|
IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper |
Methods
CreateSoftLinkForContent(IContent, IPermanentLinkMapper)
Declaration
public static SoftLink CreateSoftLinkForContent(IContent owner, IPermanentLinkMapper permanentLinkMapper = null)
Parameters
Type | Name | Description |
---|---|---|
IContent | owner | |
IPermanentLinkMapper | permanentLinkMapper |
Returns
Type | Description |
---|---|
SoftLink |
GetLinks(IContent)
Extracts a list of soft links from a list of content items
Declaration
public virtual IList<SoftLink> GetLinks(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The list of content to index. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> |
Remarks
For non-master languages only the links related to that language will be extracted
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the content is null or the ContentLink is null or empty |