Class DataImporter
Inheritance
System.Object
DataImporter
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()
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Obsolete("Use IDataImporter (or IDataImportEvents for events)", true)]
public class DataImporter : ExportImportBase, ITransferContext, IContentTransferContext, ITransferHandlerContext, IDataImporter
Constructors
DataImporter()
Declaration
DataImporter(PropertyContentReferenceListTransform, PropertyJsonTransform)
Declaration
public DataImporter(PropertyContentReferenceListTransform propertyContentReferenceListTransform, PropertyJsonTransform propertyJsonTransform)
Parameters
DataImporter(PropertyContentReferenceListTransform, PropertyJsonTransform, IContentCacheRemover)
Declaration
public DataImporter(PropertyContentReferenceListTransform propertyContentReferenceListTransform, PropertyJsonTransform propertyJsonTransform, IContentCacheRemover contentCacheRemover)
Parameters
DataImporter(PropertyContentReferenceListTransform, PropertyJsonTransform, IContentCacheRemover, IPrincipalAccessor)
Declaration
public DataImporter(PropertyContentReferenceListTransform propertyContentReferenceListTransform, PropertyJsonTransform propertyJsonTransform, IContentCacheRemover contentCacheRemover, IPrincipalAccessor principalAccessor)
Parameters
DataImporter(IContentCacheRemover, IPrincipalAccessor, IDataImportEvents, IDataImportEventsRaiser, IContentRepository, IPermanentLinkMapper, IContentTypeRepository, ContentTypeAvailabilityService, IAvailableSettingsRepository, IContentTransfer, IContentTransferValidator)
Declaration
public DataImporter(IContentCacheRemover contentCacheRemover, IPrincipalAccessor principalAccessor, IDataImportEvents dataImportEvents, IDataImportEventsRaiser eventRaiser, IContentRepository contentRepository, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ContentTypeAvailabilityService contentTypeAvailabilityService, IAvailableSettingsRepository availableSettingsRepository, IContentTransfer contentTransfer, IContentTransferValidator contentTransferValidator)
Parameters
Properties
AutoDetectCulture
Gets or sets a value indicating whether [auto detect culture].
Declaration
public bool AutoDetectCulture { get; set; }
Property Value
Type |
Description |
System.Boolean |
true if [auto detect culture]; otherwise, false .
|
IgnoreDynamicProperties
If dynamic properties in import packages should be ignored
Declaration
public bool? IgnoreDynamicProperties { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
If value is not set the default value will be based on if dynamic properties are enabled or not in configuration
|
ImportedVppFiles
Gets or sets a value indicating whether the importer imported vpp based files.
Declaration
public bool ImportedVppFiles { get; set; }
Property Value
Type |
Description |
System.Boolean |
true if vpp based files where imported; otherwise, false .
|
NumberOfPagesToImport
Gets or sets the all the pages to import.
Declaration
public int NumberOfPagesToImport { get; }
Property Value
Type |
Description |
System.Int32 |
The number of pages to import.
|
NumberOfVisitorGroupToImport
Gets or sets the number of visitor group to import.
Declaration
public int NumberOfVisitorGroupToImport { get; }
Property Value
Type |
Description |
System.Int32 |
The number of visitor group to import.
|
Status
Contains continuosly updates of the import process
Declaration
public IImportStatus Status { get; }
Property Value
Methods
ExsistLegacyFileInThePackage()
Declaration
public virtual bool ExsistLegacyFileInThePackage()
Returns
Type |
Description |
System.Boolean |
|
Import()
Declaration
public virtual void Import()
Import(Stream, ContentReference, ImportOptions)
Imports the import packages specified by System.IO.Stream
Declaration
public ITransferLog Import(Stream stream, ContentReference destinationRoot, ImportOptions options)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
The stream to the import package
|
ContentReference |
destinationRoot |
The root where content items will be imported under
|
ImportOptions |
options |
Options that specify settings for the import
|
Returns
ImportFile(IFileTransferObject, ZipPackage)
Declaration
protected void ImportFile(IFileTransferObject metaData, ZipPackage package)
Parameters
InternalImportLive(IFileTransferObject, ZipPackage)
Declaration
protected void InternalImportLive(IFileTransferObject metaData, ZipPackage package)
Parameters
Declaration
public override void OnImportProperty(TransformPropertyEventArgs e)
Parameters
Overrides
OnResolveFileTransferType(ResolveFileTransferTypeArgs)
Declaration
protected virtual void OnResolveFileTransferType(ResolveFileTransferTypeArgs e)
Parameters
Events
ContentImported
Declaration
public static event ContentImportedEventHandler ContentImported
Event Type
ContentImporting
Declaration
public static event ContentImportingEventHandler ContentImporting
Event Type
FileImported
Declaration
public static event FileImportedEventHandler FileImported
Event Type
FileImporting
Declaration
public static event FileImportingEventHandler FileImporting
Event Type
Imported
Declaration
public static event EventHandler Imported
Event Type
Type |
Description |
System.EventHandler |
|
Importing
Declaration
public static event EventHandler Importing
Event Type
Type |
Description |
System.EventHandler |
|
ImportingPages
Declaration
public static event EventHandler ImportingPages
Event Type
Type |
Description |
System.EventHandler |
|
ImportPropertyEvent
Declaration
public static event EventHandler<TransformPropertyEventArgs> ImportPropertyEvent
Event Type
ResolveFileTransferType
Declaration
public static event EventHandler<ResolveFileTransferTypeArgs> ResolveFileTransferType
Event Type
Implements
Extension Methods