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 |
---|---|---|
IContentRepository | contentRepository | |
ServiceAccessor<IDataImporter> | dataImporterAccessor | |
ServiceAccessor<IDataExporter> | dataExporterAccessor | |
ContentOptions | 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 |
---|---|---|
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 |