Class CreatedPackageSchemaRepository
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class CreatedPackageSchemaRepository : ICreatedPackagesRepository
Constructors
CreatedPackageSchemaRepository(IUmbracoDatabase, IHostingEnvironment, IOptions<GlobalSettings>, FileSystems, IEntityXmlSerializer, IDataTypeService, ILocalizationService, IFileService, IMediaService, IMediaTypeService, IContentService, MediaFileManager, IMacroService, IContentTypeService, String, String)
Declaration
public CreatedPackageSchemaRepository(IUmbracoDatabase umbracoDatabase, 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
| Type |
Name |
Description |
| IUmbracoDatabase |
umbracoDatabase |
|
| 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 |
|
| System.String |
mediaFolderPath |
|
| System.String |
tempFolderPath |
|
Methods
Delete(Int32)
Declaration
public void Delete(int id)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
ExportPackage(PackageDefinition)
Declaration
public string ExportPackage(PackageDefinition definition)
Parameters
| Type |
Name |
Description |
| PackageDefinition |
definition |
|
Returns
| Type |
Description |
| System.String |
|
GetAll()
Declaration
public IEnumerable<PackageDefinition> GetAll()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<PackageDefinition> |
|
GetById(Int32)
Declaration
public PackageDefinition GetById(int id)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
Returns
| Type |
Description |
| PackageDefinition |
|
SavePackage(PackageDefinition)
Declaration
public bool SavePackage(PackageDefinition definition)
Parameters
| Type |
Name |
Description |
| PackageDefinition |
definition |
|
Returns
| Type |
Description |
| System.Boolean |
|