• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ImportController

The import controller.

Inheritance
System.Object
BaseController
ImportController
Inherited Members
BaseController.ExportFolder
BaseController.CancelJob(Int32, Int32)
BaseController.RemoveJob(Int32, Int32)
BaseController.GetAllJobs(Int32, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String)
BaseController.GetJobDetails(Int32, Int32)
BaseController.GetLastJobTime(Int32, JobType)
BaseController.BuildJobSummary(String, IExportImportRepository, ImportExportSummary)
BaseController.BuildJobSummary(Int32)
BaseController.GetExportFileInfo(String)
BaseController.GetPackageInfo(String)
BaseController.AddEventLog(Int32, Int32, Int32, String)
Namespace: Dnn.ExportImport.Components.Controllers
Assembly: DotNetNuke.SiteExportImport.dll
Syntax
public class ImportController : BaseController

Methods

| Improve this Doc View Source

GetImportPackages(out Int32, String, String, Int32, Int32)

Get list of packages to import.

Declaration
public IEnumerable<ImportPackageInfo> GetImportPackages(out int total, string keyword, string order = "newest", int pageIndex = 0, int pageSize = 10)
Parameters
Type Name Description
System.Int32 total

Total number of packages.

System.String keyword

Keyword to search the import package. This will look into the package name and description.

System.String order

Order by which the packages list should be sorted. Allowed values: newest, oldest, name.

System.Int32 pageIndex

Page index to get.

System.Int32 pageSize

Page size. Should not be more than 100.

Returns
Type Description
IEnumerable<ImportPackageInfo>

A sequence of ImportPackageInfo instances.

| Improve this Doc View Source

QueueOperation(Int32, ImportDto)

Queues an import operation.

Declaration
public int QueueOperation(int userId, ImportDto importDto)
Parameters
Type Name Description
System.Int32 userId

The user ID.

ImportDto importDto

The import DTO.

Returns
Type Description
System.Int32

The job ID.

| Improve this Doc View Source

VerifyImportPackage(String, ImportExportSummary, out String)

Verifies an import package.

Declaration
public bool VerifyImportPackage(string packageId, ImportExportSummary summary, out string errorMessage)
Parameters
Type Name Description
System.String packageId

The package ID.

ImportExportSummary summary

The summary.

System.String errorMessage

An error message.

Returns
Type Description
System.Boolean

true if the package is value, otherwise false.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS