View Source
Interface IPackageDataInstallation
Assembly: Umbraco.Core.dll
Syntax
public interface IPackageDataInstallation
Methods
View Source
GetContentTypeKey(XElement)
Declaration
Guid GetContentTypeKey(XElement contentType)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
contentType |
|
Returns
View Source
GetEntityTypeAlias(XElement)
Declaration
string GetEntityTypeAlias(XElement entityType)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
entityType |
|
Returns
Type |
Description |
System.String |
|
View Source
ImportContentBase<TContentBase, TContentTypeComposition>(IEnumerable<CompiledPackageContentBase>, IDictionary<String, TContentTypeComposition>, Int32, IContentTypeBaseService<TContentTypeComposition>, IContentServiceBase<TContentBase>)
Declaration
IReadOnlyList<TContentBase> ImportContentBase<TContentBase, TContentTypeComposition>(IEnumerable<CompiledPackageContentBase> docs, IDictionary<string, TContentTypeComposition> importedDocumentTypes, int userId, IContentTypeBaseService<TContentTypeComposition> typeService, IContentServiceBase<TContentBase> service)
where TContentBase : class, IContentBase where TContentTypeComposition : IContentTypeComposition
Parameters
Returns
Type |
Description |
IReadOnlyList<TContentBase> |
|
Type Parameters
Name |
Description |
TContentBase |
|
TContentTypeComposition |
|
View Source
ImportDataTypes(IReadOnlyCollection<XElement>, Int32)
Declaration
IReadOnlyList<IDataType> ImportDataTypes(IReadOnlyCollection<XElement> dataTypeElements, int userId)
Parameters
Type |
Name |
Description |
IReadOnlyCollection<System.Xml.Linq.XElement> |
dataTypeElements |
Xml to import
|
System.Int32 |
userId |
Optional id of the user
|
Returns
Type |
Description |
IReadOnlyList<IDataType> |
An enumerable list of generated DataTypeDefinitions
|
View Source
ImportDictionaryItem(XElement, Int32, Nullable<Guid>)
Declaration
IEnumerable<IDictionaryItem> ImportDictionaryItem(XElement dictionaryItemElement, int userId, Guid? parentId)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
dictionaryItemElement |
|
System.Int32 |
userId |
|
System.Nullable<Guid> |
parentId |
|
Returns
View Source
ImportDictionaryItems(IEnumerable<XElement>, Int32)
Imports and saves the 'DictionaryItems' part of the package xml as a list of IDictionaryItem
Declaration
IReadOnlyList<IDictionaryItem> ImportDictionaryItems(IEnumerable<XElement> dictionaryItemElementList, int userId)
Parameters
Type |
Name |
Description |
IEnumerable<System.Xml.Linq.XElement> |
dictionaryItemElementList |
Xml to import
|
System.Int32 |
userId |
|
Returns
Type |
Description |
IReadOnlyList<IDictionaryItem> |
An enumerable list of dictionary items
|
View Source
ImportDocumentType(XElement, Int32)
Declaration
IReadOnlyList<IContentType> ImportDocumentType(XElement docTypeElement, int userId)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
docTypeElement |
|
System.Int32 |
userId |
|
Returns
View Source
ImportDocumentTypes(IEnumerable<XElement>, Int32)
Declaration
IReadOnlyList<IContentType> ImportDocumentTypes(IEnumerable<XElement> docTypeElements, int userId)
Parameters
Type |
Name |
Description |
IEnumerable<System.Xml.Linq.XElement> |
docTypeElements |
Xml to import
|
System.Int32 |
userId |
Optional id of the User performing the operation. Default is zero (admin).
|
Returns
Type |
Description |
IReadOnlyList<IContentType> |
An enumerable list of generated ContentTypes
|
View Source
ImportLanguages(IEnumerable<XElement>, Int32)
Imports and saves the 'Languages' part of a package xml as a list of ILanguage
Declaration
IReadOnlyList<ILanguage> ImportLanguages(IEnumerable<XElement> languageElements, int userId)
Parameters
Type |
Name |
Description |
IEnumerable<System.Xml.Linq.XElement> |
languageElements |
Xml to import
|
System.Int32 |
userId |
Optional id of the User performing the operation
|
Returns
Type |
Description |
IReadOnlyList<ILanguage> |
An enumerable list of generated languages
|
View Source
Declaration
IReadOnlyList<IMediaType> ImportMediaTypes(IEnumerable<XElement> docTypeElements, int userId)
Parameters
Type |
Name |
Description |
IEnumerable<System.Xml.Linq.XElement> |
docTypeElements |
Xml to import
|
System.Int32 |
userId |
Optional id of the User performing the operation. Default is zero (admin).
|
Returns
Type |
Description |
IReadOnlyList<IMediaType> |
An enumerable list of generated ContentTypes
|
View Source
ImportTemplate(XElement, Int32)
Declaration
IEnumerable<ITemplate> ImportTemplate(XElement templateElement, int userId)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
templateElement |
|
System.Int32 |
userId |
|
Returns
View Source
ImportTemplateAsync(XElement, Int32)
Declaration
virtual Task<IEnumerable<ITemplate>> ImportTemplateAsync(XElement templateElement, int userId)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
templateElement |
|
System.Int32 |
userId |
|
Returns
Type |
Description |
Task<IEnumerable<ITemplate>> |
|
View Source
ImportTemplates(IReadOnlyCollection<XElement>, Int32)
Declaration
IReadOnlyList<ITemplate> ImportTemplates(IReadOnlyCollection<XElement> templateElements, int userId)
Parameters
Type |
Name |
Description |
IReadOnlyCollection<System.Xml.Linq.XElement> |
templateElements |
Xml to import
|
System.Int32 |
userId |
Optional user id
|
Returns
Type |
Description |
IReadOnlyList<ITemplate> |
An enumerable list of generated Templates
|
View Source
ImportTemplatesAsync(IReadOnlyCollection<XElement>, Int32)
Declaration
virtual Task<IReadOnlyList<ITemplate>> ImportTemplatesAsync(IReadOnlyCollection<XElement> templateElements, int userId)
Parameters
Type |
Name |
Description |
IReadOnlyCollection<System.Xml.Linq.XElement> |
templateElements |
Xml to import
|
System.Int32 |
userId |
Optional user id
|
Returns
Type |
Description |
Task<IReadOnlyList<ITemplate>> |
An enumerable list of generated Templates
|
View Source
InstallPackageData(CompiledPackage, Int32)
Declaration
InstallationSummary InstallPackageData(CompiledPackage compiledPackage, int userId)
Parameters
Returns