Search Results for

    Show / Hide Table of Contents
    View Source

    Class PackagesRepository

    Manages the storage of installed/created package definitions

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Packaging
    Assembly: Umbraco.Core.dll
    Syntax
    public class PackagesRepository : ICreatedPackagesRepository, IPackageDefinitionRepository

    Constructors

    View Source

    PackagesRepository(IContentService, IContentTypeService, IDataTypeService, IFileService, IMacroService, ILocalizationService, IHostingEnvironment, IEntityXmlSerializer, IOptions<GlobalSettings>, IMediaService, IMediaTypeService, MediaFileManager, FileSystems, String, String, String, String)

    Constructor

    Declaration
    public PackagesRepository(IContentService contentService, IContentTypeService contentTypeService, IDataTypeService dataTypeService, IFileService fileService, IMacroService macroService, ILocalizationService languageService, IHostingEnvironment hostingEnvironment, IEntityXmlSerializer serializer, IOptions<GlobalSettings> globalSettings, IMediaService mediaService, IMediaTypeService mediaTypeService, MediaFileManager mediaFileManager, FileSystems fileSystems, string packageRepositoryFileName, string tempFolderPath = null, string packagesFolderPath = null, string mediaFolderPath = null)
    Parameters
    Type Name Description
    IContentService contentService
    IContentTypeService contentTypeService
    IDataTypeService dataTypeService
    IFileService fileService
    IMacroService macroService
    ILocalizationService languageService
    IHostingEnvironment hostingEnvironment
    IEntityXmlSerializer serializer
    IOptions<GlobalSettings> globalSettings
    IMediaService mediaService
    IMediaTypeService mediaTypeService
    MediaFileManager mediaFileManager
    FileSystems fileSystems
    System.String packageRepositoryFileName

    The file name for storing the package definitions (i.e. "createdPackages.config")

    System.String tempFolderPath
    System.String packagesFolderPath
    System.String mediaFolderPath

    Methods

    View Source

    Delete(Int32)

    Declaration
    public void Delete(int id)
    Parameters
    Type Name Description
    System.Int32 id
    View Source

    DeleteLocalRepositoryFiles()

    Declaration
    public void DeleteLocalRepositoryFiles()
    View Source

    ExportPackage(PackageDefinition)

    Declaration
    public string ExportPackage(PackageDefinition definition)
    Parameters
    Type Name Description
    PackageDefinition definition
    Returns
    Type Description
    System.String
    View Source

    GetAll()

    Declaration
    public IEnumerable<PackageDefinition> GetAll()
    Returns
    Type Description
    IEnumerable<PackageDefinition>
    View Source

    GetById(Int32)

    Declaration
    public PackageDefinition GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    PackageDefinition
    View Source

    SavePackage(PackageDefinition)

    Declaration
    public bool SavePackage(PackageDefinition definition)
    Parameters
    Type Name Description
    PackageDefinition definition
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PackagesRepository(IContentService, IContentTypeService, IDataTypeService, IFileService, IMacroService, ILocalizationService, IHostingEnvironment, IEntityXmlSerializer, IOptions<GlobalSettings>, IMediaService, IMediaTypeService, MediaFileManager, FileSystems, String, String, String, String)
    • Methods
      • Delete(Int32)
      • DeleteLocalRepositoryFiles()
      • ExportPackage(PackageDefinition)
      • GetAll()
      • GetById(Int32)
      • SavePackage(PackageDefinition)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX