Interface IContentTransferContext
Context for transfer of contents
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IContentTransferContext
Properties
ContentLanguages
Gets the content languages to transfer, if no list of languages is in the list all languages is transfered.
Declaration
IList<string> ContentLanguages { get; }
Property Value
Type | Description |
---|---|
System. |
The languages to be transfered. |
ContentTypes
Gets the content types.
Declaration
IList<ContentType> ContentTypes { get; }
Property Value
Type | Description |
---|---|
System. |
ContentTypesMap
Gets the look up table between incoming content type names and existing content type GUIDs.
Declaration
IDictionary<string, Guid> ContentTypesMap { get; }
Property Value
Type | Description |
---|---|
System. |
The map for content type name from package and existing content type GUID. |
CopiedContentLink
Gets or sets the the content link used as root of the copied contents.
Declaration
ContentReference CopiedContentLink { get; set; }
Property Value
Type | Description |
---|---|
Content |
DestinationRoot
Gets or sets the destination root for the transfer.
Declaration
ContentReference DestinationRoot { get; set; }
Property Value
Type | Description |
---|---|
Content |
The destination root. |
FileTransfer
Gets the file transfer functionality.
Declaration
IFileTransfer FileTransfer { get; }
Property Value
Type | Description |
---|---|
IFile |
The object used to transfer files. |
ForceNewIdentitiesOnExport
Gets or sets a value indicating whether to force new page identifiers for the mirrored pages.
Declaration
bool ForceNewIdentitiesOnExport { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
IgnoreHierarchy
Gets a value indicating if the page hierarchy shoud be ignored for the destination pages (all pages will be stored below the destination root).
Declaration
bool IgnoreHierarchy { get; }
Property Value
Type | Description |
---|---|
System. |
|
ImplicitContents
Gets the implicit contents.
Declaration
Queue<ExportSource> ImplicitContents { get; }
Property Value
Type | Description |
---|---|
System. |
IncludeImplicitContentDependencies
Gets a value indicating whether to implicitly include referenced global contents.
Declaration
bool IncludeImplicitContentDependencies { get; }
Property Value
Type | Description |
---|---|
System. |
|
IncludeImplicitContentTypeDependencies
Gets a value indicating whether to implicitly include referenced global content types.
Declaration
bool IncludeImplicitContentTypeDependencies { get; }
Property Value
Type | Description |
---|---|
System. |
|
IsAborting
Gets a value indicating whether the transfer is aborting.
Declaration
bool IsAborting { get; }
Property Value
Type | Description |
---|---|
System. |
|
IsDone
Gets a value indicating whether the transfer is done.
Declaration
bool IsDone { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
KeepIdentity
Set to true if a copy, import or export operation should retain the Guid of the pages. Set to false to always create a new page at the destination.
Declaration
bool KeepIdentity { get; }
Property Value
Type | Description |
---|---|
System. |
LinkGuidMap
Gets the lookup table between page old and new Guids.
Declaration
IDictionary<Guid, Guid> LinkGuidMap { get; }
Property Value
Type | Description |
---|---|
System. |
The map old GUID new link. |
Log
Gets the logger for the context.
Declaration
TransferLogger Log { get; }
Property Value
Type | Description |
---|---|
Transfer |
The logger. |
SaveAction
Gets the save action for the copied pages.
Declaration
SaveAction SaveAction { get; }
Property Value
Type | Description |
---|---|
Save |
The save action for the copy pages |
SourceRoots
Gets the roots to tranfer pages from.
Declaration
IList<ExportSource> SourceRoots { get; }
Property Value
Type | Description |
---|---|
System. |
A list of source roots. |
TransferType
Gets or sets the type of the transfer.
Declaration
TypeOfTransfer TransferType { get; set; }
Property Value
Type | Description |
---|---|
Type |
The type of the transfer. |
Methods
Abort()
Aborts the transfer.
Declaration
void Abort()
OnExportProperty(TransformPropertyEventArgs)
Raises the event to export a property.
Declaration
void OnExportProperty(TransformPropertyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Transform |
e | The Transform |
OnImportProperty(TransformPropertyEventArgs)
Raises the event to import a property.
Declaration
void OnImportProperty(TransformPropertyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Transform |
e | The Transform |