Class ContentCopyHandler
Handles copy operations by creating an export package that is then imported.
Inheritance
System.Object
ContentCopyHandler
Implements
Namespace: EPiServer.Enterprise.Transfer.Internal
Assembly: EPiServer.Enterprise.dll
Version: 12.0.3Syntax
[ServiceConfiguration(ServiceType = null)]
public class ContentCopyHandler : Object, 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 |
---|---|---|
IContent |
contentRepository | |
Service |
dataImporterAccessor | |
Service |
dataExporterAccessor | |
Content |
contentOptions |
Methods
Copy(ContentReference, ContentReference, AccessLevel, Boolean)
Copy pages to another container.
Declaration
public virtual ContentReference Copy(ContentReference pageLink, ContentReference destinationLink, AccessLevel requiredSourceAccess, bool publishOnDestination)
Parameters
Type | Name | Description |
---|---|---|
Content |
pageLink | The link to the content data to copy. |
Content |
destinationLink | The container where the page will be copied |
Access |
requiredSourceAccess | The required source access to check access against |
System. |
publishOnDestination | If the new pages should be published on the destination |
Returns
Type | Description |
---|---|
Content |