View Source
Class CreatedPackageSchemaRepository
Manages the storage of created package definitions
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreatedPackageSchemaRepository : ICreatedPackagesRepository, IPackageDefinitionRepository
Constructors
View Source
CreatedPackageSchemaRepository(IUmbracoDatabaseFactory, IHostingEnvironment, IOptions<GlobalSettings>, FileSystems, IEntityXmlSerializer, IDataTypeService, ILocalizationService, IFileService, IMediaService, IMediaTypeService, IContentService, MediaFileManager, IMacroService, IContentTypeService, String, String)
Declaration
public CreatedPackageSchemaRepository(IUmbracoDatabaseFactory umbracoDatabaseFactory, IHostingEnvironment hostingEnvironment, IOptions<GlobalSettings> globalSettings, FileSystems fileSystems, IEntityXmlSerializer serializer, IDataTypeService dataTypeService, ILocalizationService localizationService, IFileService fileService, IMediaService mediaService, IMediaTypeService mediaTypeService, IContentService contentService, MediaFileManager mediaFileManager, IMacroService macroService, IContentTypeService contentTypeService, string mediaFolderPath = null, string tempFolderPath = null)
Parameters
View Source
CreatedPackageSchemaRepository(IUmbracoDatabaseFactory, IHostingEnvironment, IOptions<GlobalSettings>, FileSystems, IEntityXmlSerializer, IDataTypeService, ILocalizationService, IFileService, IMediaService, IMediaTypeService, IContentService, MediaFileManager, IMacroService, IContentTypeService, IScopeAccessor, String, String)
Declaration
public CreatedPackageSchemaRepository(IUmbracoDatabaseFactory umbracoDatabaseFactory, IHostingEnvironment hostingEnvironment, IOptions<GlobalSettings> globalSettings, FileSystems fileSystems, IEntityXmlSerializer serializer, IDataTypeService dataTypeService, ILocalizationService localizationService, IFileService fileService, IMediaService mediaService, IMediaTypeService mediaTypeService, IContentService contentService, MediaFileManager mediaFileManager, IMacroService macroService, IContentTypeService contentTypeService, IScopeAccessor scopeAccessor, string mediaFolderPath = null, string tempFolderPath = null)
Parameters
Methods
View Source
Delete(Int32)
Declaration
public void Delete(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
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
SavePackage(PackageDefinition)
Declaration
public bool SavePackage(PackageDefinition definition)
Parameters
Returns
Type |
Description |
System.Boolean |
|