Class DependentContentTransfer

Class that handles dependent content in export

Inheritance
System.Object
DependentContentTransfer
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.Transfer
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(IDependentContentTransfer))]
public class DependentContentTransfer : IDependentContentTransfer

Constructors

DependentContentTransfer(IContentLoader, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, ContentRootService)

Initializes a new instance of the DependentContentTransfer class.

Declaration
public DependentContentTransfer(IContentLoader contentLoader, IContentTypeRepository contentTypeRepository, IPermanentLinkMapper permanentLinkMapper, SiteDefinitionRepository siteRepository, ContentRootService contentRootService)
Parameters
Type Name Description
IContentLoader contentLoader

The content repository.

IContentTypeRepository contentTypeRepository

The content type repository.

IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

SiteDefinitionRepository siteRepository

The site repository

ContentRootService contentRootService

The content root service

DependentContentTransfer(IContentLoader, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, SystemDefinition)

Initializes a new instance of the DependentContentTransfer class.

Declaration
[Obsolete("Use DependentContentTransfer (IContentLoader, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, SystemDefinition, ContentRootService) instead of")]
public DependentContentTransfer(IContentLoader contentLoader, IContentTypeRepository contentTypeRepository, IPermanentLinkMapper permanentLinkMapper, SiteDefinitionRepository siteRepository, SystemDefinition systemDefinition)
Parameters
Type Name Description
IContentLoader contentLoader

The content repository.

IContentTypeRepository contentTypeRepository

The content type repository.

IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

SiteDefinitionRepository siteRepository

The site repository

SystemDefinition systemDefinition

The system definition

Properties

ContentLoader

Declaration
protected virtual IContentLoader ContentLoader { get; set; }
Property Value
Type Description
IContentLoader

ContentRootService

Declaration
protected virtual ContentRootService ContentRootService { get; set; }
Property Value
Type Description
ContentRootService

ContentTypeRepository

Declaration
protected virtual IContentTypeRepository ContentTypeRepository { get; set; }
Property Value
Type Description
IContentTypeRepository

PermanentLinkMapper

Declaration
protected virtual IPermanentLinkMapper PermanentLinkMapper { get; set; }
Property Value
Type Description
IPermanentLinkMapper

Roots

All roots on site that will be ignored and never treated as dependent content

Declaration
public IList<ContentReference> Roots { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<ContentReference>

SiteDefinitionRepository

Declaration
protected virtual SiteDefinitionRepository SiteDefinitionRepository { get; set; }
Property Value
Type Description
SiteDefinitionRepository

SystemDefinition

Declaration
[Obsolete("No longer used")]
protected virtual SystemDefinition SystemDefinition { get; set; }
Property Value
Type Description
SystemDefinition

TransferContext

Gets or sets the transfer context.

Declaration
public IContentTransferContext TransferContext { get; set; }
Property Value
Type Description
IContentTransferContext

The transfer context.

Methods

EnsureContentTypeInPackage(IContent)

Ensures the content type in package.

Declaration
protected virtual void EnsureContentTypeInPackage(IContent content)
Parameters
Type Name Description
IContent content

The content.

ExistInPackage(IContent)

Exists in the package.

Declaration
protected virtual bool ExistInPackage(IContent content)
Parameters
Type Name Description
IContent content

The content item.

Returns
Type Description
System.Boolean

ExportDependentContent(IContent)

handles export of an ContentFragment instance.

Declaration
public virtual void ExportDependentContent(IContent content)
Parameters
Type Name Description
IContent content

The content.

IsInContentAssetFolder(IContent)

Declaration
protected virtual bool IsInContentAssetFolder(IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

ShouldIncludeReferencedContent(IContent)

Shoulds the content of the inlcude referenced.

Declaration
public virtual bool ShouldIncludeReferencedContent(IContent content)
Parameters
Type Name Description
IContent content

The content.

Returns
Type Description
System.Boolean

Implements

Extension Methods