C# Класс SenseNet.ContentRepository.Schema.ContentType

Наследование: Node, IFolder, IIndexableDocument
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ContentDefinitionXmlNamespace string
ContentTypeFileNameExtension string
XmlListSeparators char[]

Private Properties

Свойство Тип Описание
Build void
Build void
ChangeFieldSetting void
ChangeInheritedField void
ChangeParentFieldSettingRecursive void
CheckFieldNames void
CheckFieldValidation void
CheckValidation void
Create ContentType
Create ContentType
Create ContentType
FinalizeAllowedChildTypes void
GetFieldSettingIndexByName int
GetValidDocument IXPathNavigable
InheritField void
InheritFields void
Initialize void
IsDeletable bool
LoadAndInitialize ContentType
ParseAllowedChildTypes void
ParseContentTypeElement void
ParseFieldElements void
RemoveInheritedFields void
RemoveUnusedField void
RemoveUnusedInheritedField void
Save void
SetFieldSlots void
SetFieldSlots void
SetFieldSlots void
SetParentContentType void
StringFromStream string

Открытые методы

Метод Описание
ContentType ( Node parent ) : System
ContentType ( Node parent, string nodeTypeName ) : System
Delete ( ) : void
GetByName ( string contentTypeName ) : ContentType

Returns the ContentType by requested name.

GetChildren ( QuerySettings settings ) : QueryResult
GetChildren ( string text, QuerySettings settings ) : QueryResult
GetChildren ( string text, QuerySettings settings, bool getAllChildren ) : QueryResult
GetContentTypeNames ( ) : string[]

Returns an array of every ContentType names

GetContentTypes ( ) : SenseNet.ContentRepository.Schema.ContentType[]

Returns an array of every ContentTypes

GetFieldSettingByName ( string fieldName ) : FieldSetting

Returns the FieldSetting by passed field name.

GetIndexableFields ( ) : IEnumerable
GetRootTypeNames ( ) : string[]

Returns an array of ContentType names thats have not parent ContentType.

GetRootTypes ( ) : SenseNet.ContentRepository.Schema.ContentType[]

Returns an array of ContentTypes thats have not parent ContentType

IsInstaceOfOrDerivedFrom ( string contentTypeName ) : bool
Save ( ) : void
Save ( NodeSaveSettings settings ) : void
ToString ( ) : string
ToXml ( ) : string

Returns the represented ContentTypeDefinition XML

TraceContentSchema ( ) : string
TracePerFieldIndexingInfo ( ) : string

Защищенные методы

Метод Описание
ContentType ( NodeToken nt ) : System

Приватные методы

Метод Описание
Build ( ) : void
Build ( IXPathNavigable definitionXml ) : void
ChangeFieldSetting ( FieldSetting oldSetting, FieldDescriptor fieldDescriptor ) : void
ChangeInheritedField ( FieldSetting parent ) : void
ChangeParentFieldSettingRecursive ( FieldSetting oldSetting, FieldSetting newSetting ) : void
CheckFieldNames ( IXPathNavigable xml ) : void
CheckFieldValidation ( FieldDescriptor fieldDesc, string contentTypeName ) : void
CheckValidation ( IXPathNavigable xml, string name ) : void
Create ( ISupportsDynamicFields handler, ContentType baseContentType ) : ContentType
Create ( ISupportsDynamicFields handler, ContentType baseContentType, string ctd ) : ContentType
Create ( Type type, string ctd ) : ContentType
FinalizeAllowedChildTypes ( ContentType>.Dictionary contentTypes ) : void
GetFieldSettingIndexByName ( string fieldName ) : int
GetValidDocument ( string xml, string name ) : IXPathNavigable
InheritField ( FieldSetting parent ) : void
InheritFields ( ContentType parentContentType ) : void
Initialize ( ) : void
IsDeletable ( ContentType contentType ) : bool
LoadAndInitialize ( string contentTypePath ) : ContentType
ParseAllowedChildTypes ( XPathNavigator allowedChildTypesElement, IXmlNamespaceResolver nsres ) : void
ParseContentTypeElement ( XPathNavigator contentTypeElement, IXmlNamespaceResolver nsres ) : void
ParseFieldElements ( XPathNavigator fieldsElement, IXmlNamespaceResolver nsres ) : void
RemoveInheritedFields ( ) : void
RemoveUnusedField ( string name ) : void
RemoveUnusedInheritedField ( string name ) : void
Save ( bool withInstall ) : void
SetFieldSlots ( ) : void
SetFieldSlots ( FieldSetting fieldSetting, ISupportsDynamicFields handler ) : void
SetFieldSlots ( Type handlerType ) : void
SetParentContentType ( ContentType parentContentType ) : void
StringFromStream ( Stream stream ) : string

Описание методов

ContentType() публичный Метод

public ContentType ( Node parent ) : System
parent Node
Результат System

ContentType() публичный Метод

public ContentType ( Node parent, string nodeTypeName ) : System
parent Node
nodeTypeName string
Результат System

ContentType() защищенный Метод

protected ContentType ( NodeToken nt ) : System
nt SenseNet.ContentRepository.Storage.NodeToken
Результат System

Delete() публичный Метод

public Delete ( ) : void
Результат void

GetByName() публичный статический Метод

Returns the ContentType by requested name.
public static GetByName ( string contentTypeName ) : ContentType
contentTypeName string Name of the requested ContentType
Результат ContentType

GetChildren() публичный Метод

public GetChildren ( QuerySettings settings ) : QueryResult
settings SenseNet.Search.QuerySettings
Результат QueryResult

GetChildren() публичный Метод

public GetChildren ( string text, QuerySettings settings ) : QueryResult
text string
settings SenseNet.Search.QuerySettings
Результат QueryResult

GetChildren() публичный Метод

public GetChildren ( string text, QuerySettings settings, bool getAllChildren ) : QueryResult
text string
settings SenseNet.Search.QuerySettings
getAllChildren bool
Результат QueryResult

GetContentTypeNames() публичный статический Метод

Returns an array of every ContentType names
public static GetContentTypeNames ( ) : string[]
Результат string[]

GetContentTypes() публичный статический Метод

Returns an array of every ContentTypes
public static GetContentTypes ( ) : SenseNet.ContentRepository.Schema.ContentType[]
Результат SenseNet.ContentRepository.Schema.ContentType[]

GetFieldSettingByName() публичный Метод

Returns the FieldSetting by passed field name.
public GetFieldSettingByName ( string fieldName ) : FieldSetting
fieldName string Inherited or owned Field name.
Результат FieldSetting

GetIndexableFields() публичный Метод

public GetIndexableFields ( ) : IEnumerable
Результат IEnumerable

GetRootTypeNames() публичный статический Метод

Returns an array of ContentType names thats have not parent ContentType.
public static GetRootTypeNames ( ) : string[]
Результат string[]

GetRootTypes() публичный статический Метод

Returns an array of ContentTypes thats have not parent ContentType
public static GetRootTypes ( ) : SenseNet.ContentRepository.Schema.ContentType[]
Результат SenseNet.ContentRepository.Schema.ContentType[]

IsInstaceOfOrDerivedFrom() публичный Метод

public IsInstaceOfOrDerivedFrom ( string contentTypeName ) : bool
contentTypeName string
Результат bool

Save() публичный Метод

public Save ( ) : void
Результат void

Save() публичный Метод

public Save ( NodeSaveSettings settings ) : void
settings SenseNet.ContentRepository.Storage.NodeSaveSettings
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

ToXml() публичный Метод

Returns the represented ContentTypeDefinition XML
public ToXml ( ) : string
Результат string

TraceContentSchema() публичный статический Метод

public static TraceContentSchema ( ) : string
Результат string

TracePerFieldIndexingInfo() публичный статический Метод

public static TracePerFieldIndexingInfo ( ) : string
Результат string

Описание свойств

ContentDefinitionXmlNamespace публичное статическое свойство

public static string ContentDefinitionXmlNamespace
Результат string

ContentTypeFileNameExtension публичное статическое свойство

public static string ContentTypeFileNameExtension
Результат string

XmlListSeparators публичное статическое свойство

public static char[] XmlListSeparators
Результат char[]