C# Class Umbraco.Pugpig.Core.Installers.UmbracoXmlImportHelper

ファイルを表示 Open project: aqueduct/UmbracoPugPigConnector Class Usage Examples

Public Methods

Method Description
InitDataTypes ( IFrameworkContext frameworkContext ) : List

Creates the test data types

InitDocTypes ( ) : IEnumerable
InitTemplates ( ) : IEnumerable

Initialize templates from xml

SetupDocTypeInheritence ( IEnumerable docTypes, Uri providerGroupRoot ) : IEnumerable

TODO: there is something strange going on where inherited doctypes appear multiple times in the gui

UmbracoXmlImportHelper ( IAttributeTypeRegistry attributeTypeRegistry, IPropertyEditorFactory propertyEditorFactory ) : System

Private Methods

Method Description
CreateDocType ( System.Xml.Linq.XElement docTypeXml, Func generateTabs, Uri providerGroupRoot ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel

Creates doctype from xml

CreateDocTypes ( Func generateTabs, Uri providerGroupRoot ) : IEnumerable

Create doctypes from xml

CreateNodeName ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeProperty

Creates Node Name property

CreateProperties ( System.Xml.Linq.XElement docTypeXml, Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : HashSet

Create properties from xml

CreateSelectedTemplate ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeProperty

Creates selected template property

GetAllowedTemplates ( System.Xml.Linq.XElement docTypeXml ) : IEnumerable

GetInheritedProperties ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel inheritedFromDocType ) : HashSet

Gets properties and inherited properties from parent doctype.

GetInheritedTabs ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel inheritedFromDocType ) : HashSet

Gets tabs and inherited tabs from parent doctype.

GetTabs ( System.Xml.Linq.XElement docTypeXml ) : HashSet

Gets tabs from xml

GetTabsTopLevel ( ) : IEnumerable

Creates tabs from top level of xml

SetUpAllowedChildren ( IEnumerable docTypes, Uri providerGroupRoot ) : void

Gets allowed children form xml.

Method Details

InitDataTypes() public method

Creates the test data types
public InitDataTypes ( IFrameworkContext frameworkContext ) : List
frameworkContext IFrameworkContext
return List

InitDocTypes() public method

public InitDocTypes ( ) : IEnumerable
return IEnumerable

InitTemplates() public method

Initialize templates from xml
public InitTemplates ( ) : IEnumerable
return IEnumerable

SetupDocTypeInheritence() public method

TODO: there is something strange going on where inherited doctypes appear multiple times in the gui
public SetupDocTypeInheritence ( IEnumerable docTypes, Uri providerGroupRoot ) : IEnumerable
docTypes IEnumerable
providerGroupRoot System.Uri
return IEnumerable

UmbracoXmlImportHelper() public method

public UmbracoXmlImportHelper ( IAttributeTypeRegistry attributeTypeRegistry, IPropertyEditorFactory propertyEditorFactory ) : System
attributeTypeRegistry IAttributeTypeRegistry
propertyEditorFactory IPropertyEditorFactory
return System