Class ContentFragmentTransfer

Class that handles export of ContentFragment.

Inheritance
System.Object
ContentFragmentTransfer
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration]
public class ContentFragmentTransfer : DependentContentTransfer, IDependentContentTransfer

Constructors

ContentFragmentTransfer(IContentRepository, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, ContentRootService)

Initializes a new instance of the ContentFragmentTransfer class.

Declaration
public ContentFragmentTransfer(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository, IPermanentLinkMapper permanentLinkMapper, SiteDefinitionRepository siteRepository, ContentRootService contentRootService)
Parameters
Type Name Description
IContentRepository contentRepository

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

ContentFragmentTransfer(IContentRepository, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, SystemDefinition)

Initializes a new instance of the ContentFragmentTransfer class.

Declaration
[Obsolete("Use ContentFragmentTransfer(IContentRepository, IContentTypeRepository, IPermanentLinkMapper, SiteDefinitionRepository, SystemDefinition, ContentRootService)")]
public ContentFragmentTransfer(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository, IPermanentLinkMapper permanentLinkMapper, SiteDefinitionRepository siteRepository, SystemDefinition systemDefinition)
Parameters
Type Name Description
IContentRepository contentRepository

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

Methods

EnsureContentReferenceAsGuid(ContentFragment)

Declaration
protected virtual void EnsureContentReferenceAsGuid(ContentFragment contentFragment)
Parameters
Type Name Description
ContentFragment contentFragment

ExportContentFragment(ContentFragment)

handles export of an ContentFragment instance.

Declaration
public virtual void ExportContentFragment(ContentFragment contentFragment)
Parameters
Type Name Description
ContentFragment contentFragment

The content fragment.

Implements

Extension Methods