Class ImportController
The import controller.
Inherited Members
Namespace: Dnn.ExportImport.Components.Controllers
Assembly: DotNetNuke.SiteExportImport.dll
Syntax
public class ImportController : BaseController
Methods
| Improve this Doc View SourceGetImportPackages(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. |
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. |
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 |
|