View Source
Class PackagingService
Represents the Packaging Service, which provides import/export functionality for the Core models of the API
using xml representation. This is primarily used by the Package functionality.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class PackagingService : IPackagingService, IService
Constructors
View Source
PackagingService(IAuditService, ICreatedPackagesRepository, IPackageInstallation, IEventAggregator, IManifestParser, IKeyValueService, PackageMigrationPlanCollection)
Declaration
public PackagingService(IAuditService auditService, ICreatedPackagesRepository createdPackages, IPackageInstallation packageInstallation, IEventAggregator eventAggregator, IManifestParser manifestParser, IKeyValueService keyValueService, PackageMigrationPlanCollection packageMigrationPlans)
Parameters
View Source
PackagingService(IAuditService, ICreatedPackagesRepository, IPackageInstallation, IEventAggregator, IManifestParser, IKeyValueService, PackageMigrationPlanCollection, ICoreScopeProvider)
Declaration
public PackagingService(IAuditService auditService, ICreatedPackagesRepository createdPackages, IPackageInstallation packageInstallation, IEventAggregator eventAggregator, IManifestParser manifestParser, IKeyValueService keyValueService, PackageMigrationPlanCollection packageMigrationPlans, ICoreScopeProvider coreScopeProvider)
Parameters
Methods
View Source
DeleteCreatedPackage(Int32, Int32)
Declaration
public void DeleteCreatedPackage(int id, int userId = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
userId |
|
View Source
ExportCreatedPackage(PackageDefinition)
Declaration
public string ExportCreatedPackage(PackageDefinition definition)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
GetAllCreatedPackages()
Declaration
public IEnumerable<PackageDefinition> GetAllCreatedPackages()
Returns
View Source
GetAllInstalledPackages()
Declaration
public IEnumerable<InstalledPackage> GetAllInstalledPackages()
Returns
View Source
GetCompiledPackageInfo(XDocument)
Declaration
public CompiledPackage GetCompiledPackageInfo(XDocument xml)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XDocument |
xml |
|
Returns
View Source
GetCreatedPackageById(Int32)
Declaration
public PackageDefinition GetCreatedPackageById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetInstalledPackageByName(String)
Declaration
public InstalledPackage GetInstalledPackageByName(string packageName)
Parameters
Type |
Name |
Description |
System.String |
packageName |
|
Returns
View Source
InstallCompiledPackageData(FileInfo, Int32)
Declaration
public InstallationSummary InstallCompiledPackageData(FileInfo packageXmlFile, int userId = -1)
Parameters
Type |
Name |
Description |
FileInfo |
packageXmlFile |
|
System.Int32 |
userId |
|
Returns
View Source
InstallCompiledPackageData(XDocument, Int32)
Declaration
public InstallationSummary InstallCompiledPackageData(XDocument packageXml, int userId = -1)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XDocument |
packageXml |
|
System.Int32 |
userId |
|
Returns
View Source
SaveCreatedPackage(PackageDefinition)
Declaration
public bool SaveCreatedPackage(PackageDefinition definition)
Parameters
Returns
Type |
Description |
System.Boolean |
|