Class ContentCopyHandler
Handles copy operations by creating an export package that is then imported.
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
Assembly: EPiServer.Enterprise.dll
Version: 9.12.2Syntax
[ServiceConfiguration(ServiceType = typeof(IContentCopyHandler))]
public class ContentCopyHandler : IContentCopyHandler
Constructors
ContentCopyHandler()
Declaration
public ContentCopyHandler()
ContentCopyHandler(IContentRepository)
Declaration
[Obsolete("Use alternative constructor")]
public ContentCopyHandler(IContentRepository contentRepository)
Parameters
Type | Name | Description |
---|---|---|
IContentRepository | contentRepository |
ContentCopyHandler(IContentRepository, ServiceAccessor<IDataImporter>, ServiceAccessor<IDataExporter>)
Declaration
public ContentCopyHandler(IContentRepository contentRepository, ServiceAccessor<IDataImporter> dataImporterAccessor, ServiceAccessor<IDataExporter> dataExporterAccessor)
Parameters
Type | Name | Description |
---|---|---|
IContentRepository | contentRepository | |
ServiceAccessor<IDataImporter> | dataImporterAccessor | |
ServiceAccessor<IDataExporter> | dataExporterAccessor |
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 |