Search Results for

    Show / Hide Table of Contents

    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
    Namespace: Umbraco.Cms.Core.Services.Implement
    Assembly: cs.temp.dll.dll
    Syntax
    public class PackagingService : IPackagingService

    Constructors

    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
    Type Name Description
    IAuditService auditService
    ICreatedPackagesRepository createdPackages
    IPackageInstallation packageInstallation
    IEventAggregator eventAggregator
    IManifestParser manifestParser
    IKeyValueService keyValueService
    PackageMigrationPlanCollection packageMigrationPlans

    Methods

    DeleteCreatedPackage(Int32, Int32)

    Declaration
    public void DeleteCreatedPackage(int id, int userId = default(int))
    Parameters
    Type Name Description
    System.Int32 id
    System.Int32 userId

    ExportCreatedPackage(PackageDefinition)

    Declaration
    public string ExportCreatedPackage(PackageDefinition definition)
    Parameters
    Type Name Description
    PackageDefinition definition
    Returns
    Type Description
    System.String

    GetAllCreatedPackages()

    Declaration
    public IEnumerable<PackageDefinition> GetAllCreatedPackages()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PackageDefinition>

    GetAllInstalledPackages()

    Declaration
    public IEnumerable<InstalledPackage> GetAllInstalledPackages()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<InstalledPackage>

    GetCompiledPackageInfo(XDocument)

    Declaration
    public CompiledPackage GetCompiledPackageInfo(XDocument xml)
    Parameters
    Type Name Description
    XDocument xml
    Returns
    Type Description
    CompiledPackage

    GetCreatedPackageById(Int32)

    Declaration
    public PackageDefinition GetCreatedPackageById(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    PackageDefinition

    GetInstalledPackageByName(String)

    Declaration
    public InstalledPackage GetInstalledPackageByName(string packageName)
    Parameters
    Type Name Description
    System.String packageName
    Returns
    Type Description
    InstalledPackage

    InstallCompiledPackageData(FileInfo, Int32)

    Declaration
    public InstallationSummary InstallCompiledPackageData(FileInfo packageXmlFile, int userId = default(int))
    Parameters
    Type Name Description
    FileInfo packageXmlFile
    System.Int32 userId
    Returns
    Type Description
    InstallationSummary

    InstallCompiledPackageData(XDocument, Int32)

    Declaration
    public InstallationSummary InstallCompiledPackageData(XDocument packageXml, int userId = default(int))
    Parameters
    Type Name Description
    XDocument packageXml
    System.Int32 userId
    Returns
    Type Description
    InstallationSummary

    SaveCreatedPackage(PackageDefinition)

    Declaration
    public bool SaveCreatedPackage(PackageDefinition definition)
    Parameters
    Type Name Description
    PackageDefinition definition
    Returns
    Type Description
    System.Boolean
    In This Article
    • Constructors
      • PackagingService(IAuditService, ICreatedPackagesRepository, IPackageInstallation, IEventAggregator, IManifestParser, IKeyValueService, PackageMigrationPlanCollection)
    • Methods
      • DeleteCreatedPackage(Int32, Int32)
      • ExportCreatedPackage(PackageDefinition)
      • GetAllCreatedPackages()
      • GetAllInstalledPackages()
      • GetCompiledPackageInfo(XDocument)
      • GetCreatedPackageById(Int32)
      • GetInstalledPackageByName(String)
      • InstallCompiledPackageData(FileInfo, Int32)
      • InstallCompiledPackageData(XDocument, Int32)
      • SaveCreatedPackage(PackageDefinition)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX