C# 클래스 Felinesoft.UmbracoCodeFirst.Core.Modules.ContentTypeModuleBase

상속: IContentTypeModuleBase, IEntityTreeFilter
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
CreateOrUpdateContentType ( ContentTypeRegistration registration ) : void
Filter ( Umbraco nodes, bool &changesMade ) : void
Initialise ( IEnumerable types ) : void
IsFilter ( string treeAlias ) : bool
TryGetContentType ( Type type, ContentTypeRegistration &registration ) : bool
TryGetContentType ( string alias, ContentTypeRegistration &registration ) : bool

보호된 메소드들

메소드 설명
ContentTypeModuleBase ( IPropertyModule propertyModule, System.Guid performanceTimer ) : System
CreateContentType ( ContentTypeRegistration registration, bool &modified ) : IContentTypeBase

This method is called when the Content Type declared in the attribute hasn't been found in Umbraco

CreateContentType ( IContentTypeBase parent ) : IContentTypeComposition
CreateRegistration ( Type type ) : ContentTypeRegistration
Delete ( IContentTypeBase contentType ) : void
DeleteContentType ( IContentTypeBase contentType ) : void
DoPerType ( IEnumerable types, Action action, bool resetCacheBeforeAndAfter = true ) : void
DoPerTypeConcurrent ( IEnumerable types, Action action, bool resetCacheBeforeAndAfter = true ) : void
GenerateContentTypes ( string nameSpace, string folderPath, string attributeName, Func selector, ContentTypeDescription>.Action customAction = null ) : void
GetAllContentTypes ( ) : IEnumerable
GetChildren ( IContentTypeBase contentType ) : IEnumerable
GetContentTypeByAlias ( string alias ) : IContentTypeComposition
GetRegistration ( Type type ) : ContentTypeRegistration
GetRegistration ( string alias ) : ContentTypeRegistration
Register ( ContentTypeRegistration registration ) : void
ResetContentTypesCache ( ) : void
Save ( IContentTypeBase contentType ) : void
SaveContentType ( IContentTypeBase contentType ) : void
SyncAllowedChildren ( ContentTypeRegistration docTypeReg ) : void
SyncCompositions ( ContentTypeRegistration docTypeReg ) : void
UpdateContentType ( ContentTypeRegistration registration, bool &modified ) : IContentTypeBase

Update the existing content Type based on the data in the attributes

비공개 메소드들

메소드 설명
AddAllowedChildTypes ( IContentTypeComposition node, ContentTypeDescription type ) : void
AddCompositions ( List descriptions, IEnumerable items, string parentAlias ) : void
AddProperties ( List list, IEnumerable propertyTypeCollection, string nspace, string typeName, string tabName = null ) : void
AddTabs ( string nspace, IContentTypeComposition node, ContentTypeDescription type ) : void
BuildContentTypeModel ( string nameSpace, IContentTypeComposition node, string attributeName, ContentTypeDescription>.Action customAction ) : ContentTypeDescription
BuildContentTypeModels ( string nameSpace, string folderPath, string attributeName, List &types, Func selector, ContentTypeDescription>.Action customAction ) : void
BuildPropertyModel ( string nameSpace, string tabName, PropertyType propType, string typeName ) : PropertyDescription
BuildTabModel ( string nameSpace, PropertyGroup group, List ignoredProperties, string typeName ) : TabDescription
CheckBuiltIn ( ContentTypeRegistration registration ) : void
CreateProperties ( PropertyInfo propertyInfo, IContentTypeBase newContentType, TabRegistration tab, List propertyRegister, Type documentClrType ) : void

Every property on the Tab object is scanned for the UmbracoProperty attribute

CreateTabs ( IContentTypeBase newContentType, List tabRegister, Type contentClrType ) : void

Scans for properties on the model which have the UmbracoTab attribute

CreateTypeDescription ( IContentTypeComposition node, string attributeName ) : ContentTypeDescription
FetchAllowedContentTypes ( Type types, Type parentType ) : List

Gets the allowed children

GenerateClassFiles ( string nameSpace, string folderPath, List types ) : void
GetAliasesFromTypes ( Type types, Type parentType ) : List

Gets all the document type aliases from the supplied list of types

GetAllAncestorTypes ( ContentTypeRegistration docTypeReg ) : List
GetCodeFirstParent ( Type type, ContentTypeAttribute &parentAttribute, Type &parentType ) : void
GetComposingTypes ( ContentTypeRegistration docTypeReg, List usedInCompositions ) : List
Prune ( IContentTypeBase contentType, Type documentClrType, PropertyInfo tabProperties, IEnumerable propertiesOfRoot ) : void
RemovePropertyFromChildren ( string alias, IEnumerable children ) : void
Reparent ( ContentTypeRegistration registration, IContentTypeComposition contentType, IContentTypeBase newParent, IContentTypeBase oldParent ) : IContentTypeComposition
SyncChildrenAndCompositions ( List sortedTypes ) : void
SyncContentTypes ( List generation ) : void
ValidateComposition ( ContentTypeRegistration docTypeReg, List targetBases, PropertyInfo comp, ContentTypeRegistration compReg, List usedInCompositions ) : void
VerifyAllPropertiesOnTab ( PropertyInfo propertyTab, IContentTypeBase contentType, TabRegistration registration, Type documentType, bool &modified ) : IEnumerable

Scan the properties on tabs

VerifyProperties ( IContentTypeBase contentType, Type documentClrType, List propertyRegister, List tabRegister, bool &modified ) : void

Loop through all properties and remove existing ones if necessary

메소드 상세

ContentTypeModuleBase() 보호된 메소드

protected ContentTypeModuleBase ( IPropertyModule propertyModule, System.Guid performanceTimer ) : System
propertyModule IPropertyModule
performanceTimer System.Guid
리턴 System

CreateContentType() 보호된 메소드

This method is called when the Content Type declared in the attribute hasn't been found in Umbraco
protected CreateContentType ( ContentTypeRegistration registration, bool &modified ) : IContentTypeBase
registration ContentTypeRegistration
modified bool
리턴 IContentTypeBase

CreateContentType() 보호된 추상적인 메소드

protected abstract CreateContentType ( IContentTypeBase parent ) : IContentTypeComposition
parent IContentTypeBase
리턴 IContentTypeComposition

CreateOrUpdateContentType() 공개 메소드

public CreateOrUpdateContentType ( ContentTypeRegistration registration ) : void
registration ContentTypeRegistration
리턴 void

CreateRegistration() 보호된 추상적인 메소드

protected abstract CreateRegistration ( Type type ) : ContentTypeRegistration
type System.Type
리턴 ContentTypeRegistration

Delete() 보호된 메소드

protected Delete ( IContentTypeBase contentType ) : void
contentType IContentTypeBase
리턴 void

DeleteContentType() 보호된 추상적인 메소드

protected abstract DeleteContentType ( IContentTypeBase contentType ) : void
contentType IContentTypeBase
리턴 void

DoPerType() 보호된 메소드

protected DoPerType ( IEnumerable types, Action action, bool resetCacheBeforeAndAfter = true ) : void
types IEnumerable
action Action
resetCacheBeforeAndAfter bool
리턴 void

DoPerTypeConcurrent() 보호된 메소드

protected DoPerTypeConcurrent ( IEnumerable types, Action action, bool resetCacheBeforeAndAfter = true ) : void
types IEnumerable
action Action
resetCacheBeforeAndAfter bool
리턴 void

Filter() 공개 메소드

public Filter ( Umbraco nodes, bool &changesMade ) : void
nodes Umbraco
changesMade bool
리턴 void

GenerateContentTypes() 보호된 메소드

protected GenerateContentTypes ( string nameSpace, string folderPath, string attributeName, Func selector, ContentTypeDescription>.Action customAction = null ) : void
nameSpace string
folderPath string
attributeName string
selector Func
customAction ContentTypeDescription>.Action
리턴 void

GetAllContentTypes() 보호된 추상적인 메소드

protected abstract GetAllContentTypes ( ) : IEnumerable
리턴 IEnumerable

GetChildren() 보호된 추상적인 메소드

protected abstract GetChildren ( IContentTypeBase contentType ) : IEnumerable
contentType IContentTypeBase
리턴 IEnumerable

GetContentTypeByAlias() 보호된 추상적인 메소드

protected abstract GetContentTypeByAlias ( string alias ) : IContentTypeComposition
alias string
리턴 IContentTypeComposition

GetRegistration() 보호된 메소드

protected GetRegistration ( Type type ) : ContentTypeRegistration
type System.Type
리턴 ContentTypeRegistration

GetRegistration() 보호된 메소드

protected GetRegistration ( string alias ) : ContentTypeRegistration
alias string
리턴 ContentTypeRegistration

Initialise() 공개 메소드

public Initialise ( IEnumerable types ) : void
types IEnumerable
리턴 void

IsFilter() 공개 추상적인 메소드

public abstract IsFilter ( string treeAlias ) : bool
treeAlias string
리턴 bool

Register() 보호된 메소드

protected Register ( ContentTypeRegistration registration ) : void
registration ContentTypeRegistration
리턴 void

ResetContentTypesCache() 보호된 메소드

protected ResetContentTypesCache ( ) : void
리턴 void

Save() 보호된 메소드

protected Save ( IContentTypeBase contentType ) : void
contentType IContentTypeBase
리턴 void

SaveContentType() 보호된 추상적인 메소드

protected abstract SaveContentType ( IContentTypeBase contentType ) : void
contentType IContentTypeBase
리턴 void

SyncAllowedChildren() 보호된 메소드

protected SyncAllowedChildren ( ContentTypeRegistration docTypeReg ) : void
docTypeReg ContentTypeRegistration
리턴 void

SyncCompositions() 보호된 메소드

protected SyncCompositions ( ContentTypeRegistration docTypeReg ) : void
docTypeReg ContentTypeRegistration
리턴 void

TryGetContentType() 공개 메소드

public TryGetContentType ( Type type, ContentTypeRegistration &registration ) : bool
type System.Type
registration ContentTypeRegistration
리턴 bool

TryGetContentType() 공개 메소드

public TryGetContentType ( string alias, ContentTypeRegistration &registration ) : bool
alias string
registration ContentTypeRegistration
리턴 bool

UpdateContentType() 보호된 메소드

Update the existing content Type based on the data in the attributes
protected UpdateContentType ( ContentTypeRegistration registration, bool &modified ) : IContentTypeBase
registration ContentTypeRegistration
modified bool
리턴 IContentTypeBase