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(IHostingEnvironment, FileSystems, IEntityXmlSerializer, IDataTypeService, IFileService, IMediaService, IMediaTypeService, IContentService, MediaFileManager, IContentTypeService, IScopeAccessor, ITemplateService, IDictionaryItemService, ILanguageService, String, String)
Declaration
public CreatedPackageSchemaRepository(IHostingEnvironment hostingEnvironment, FileSystems fileSystems, IEntityXmlSerializer serializer, IDataTypeService dataTypeService, IFileService fileService, IMediaService mediaService, IMediaTypeService mediaTypeService, IContentService contentService, MediaFileManager mediaFileManager, IContentTypeService contentTypeService, IScopeAccessor scopeAccessor, ITemplateService templateService, IDictionaryItemService dictionaryItemService, ILanguageService languageService, string mediaFolderPath = null, string tempFolderPath = null)
Parameters
View Source
CreatedPackageSchemaRepository(IUmbracoDatabaseFactory, IHostingEnvironment, IOptions<GlobalSettings>, FileSystems, IEntityXmlSerializer, IDataTypeService, ILocalizationService, IFileService, IMediaService, IMediaTypeService, IContentService, MediaFileManager, 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, 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, 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, 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
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 |
|