November Happy Hour will be moved to Thursday December 5th.

Class ContentCopyHandler

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Handles copy operations by creating an export package that is then imported. If number of pages is below EPiServer.Configuration.Settings.BackgroundCopyThreshold then the operation is performed on a MemoryStream and. Otherwise the copy operation will be perfomred using a temporary file.

Inheritance
System.Object
ContentCopyHandler
Implements
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.Enterprise.Transfer.Internal
Assembly: EPiServer.Enterprise.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(ServiceType = typeof(IContentCopyHandler))]
public class ContentCopyHandler : IContentCopyHandler

Constructors

ContentCopyHandler(IContentRepository, ServiceAccessor<IDataImporter>, ServiceAccessor<IDataExporter>, ContentOptions)

Declaration
public ContentCopyHandler(IContentRepository contentRepository, ServiceAccessor<IDataImporter> dataImporterAccessor, ServiceAccessor<IDataExporter> dataExporterAccessor, ContentOptions contentOptions)
Parameters
Type Name Description
IContentRepository contentRepository
ServiceAccessor<IDataImporter> dataImporterAccessor
ServiceAccessor<IDataExporter> dataExporterAccessor
ContentOptions contentOptions

Methods

Copy(ContentReference, ContentReference, AccessLevel, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Copy pages to another container.

Declaration
public virtual ContentReference Copy(ContentReference pageLink, ContentReference destinationLink, AccessLevel requiredSourceAccess, bool publishOnDestination)
Parameters
Type Name Description
ContentReference pageLink

The link to the content data to copy.

ContentReference destinationLink

The container where the page will be copied

AccessLevel requiredSourceAccess

The required source access to check access against

System.Boolean publishOnDestination

If the new pages should be published on the destination

Returns
Type Description
ContentReference

Implements

Extension Methods