View Source
Class PackagesRepository
Manages the storage of installed/created package definitions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class PackagesRepository : ICreatedPackagesRepository, IPackageDefinitionRepository
Constructors
View Source
PackagesRepository(IContentService, IContentTypeService, IDataTypeService, IFileService, ILocalizationService, IHostingEnvironment, IEntityXmlSerializer, IOptions<GlobalSettings>, IMediaService, IMediaTypeService, MediaFileManager, FileSystems, String, String, String, String)
Declaration
public PackagesRepository(IContentService contentService, IContentTypeService contentTypeService, IDataTypeService dataTypeService, IFileService fileService, 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
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
Returns
Type |
Description |
System.String |
|
View Source
GetAll()
Declaration
public IEnumerable<PackageDefinition> GetAll()
Returns
View Source
GetById(Int32)
Declaration
public PackageDefinition GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetByKey(Guid)
Declaration
public PackageDefinition GetByKey(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
SavePackage(PackageDefinition)
Declaration
public bool SavePackage(PackageDefinition definition)
Parameters
Returns
Type |
Description |
System.Boolean |
|