C# Класс SenseNet.ContentRepository.GenericContent

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

Private Properties

Свойство Тип Описание
AssertAllowedChildType void
CheckAllowedChildType TypeAllow
GetCannotAllowContentTypeException System.Exception
GetNotAllowedContentTypeExceptionOnCreate System.Exception
GetNotAllowedContentTypeExceptionOnMove System.Exception
SaveSameVersion void
SetAllowedChildTypes void
VersionSetup void

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

Метод Описание
AllowChildType ( ContentType contentType, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
AllowChildType ( string contentTypeName, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
AllowChildTypes ( IEnumerable contentTypes, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
AllowChildTypes ( IEnumerable contentTypeNames, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
Approve ( ) : void
CheckChildrenTypeConsistence ( ) : string
CheckIn ( ) : void
CheckOut ( ) : void
Delete ( ) : void
Delete ( bool bypassTrash ) : void
GenericContent ( Node parent, string nodeTypeName ) : System
GetAllowedChildTypeNames ( ) : IEnumerable
GetAllowedChildTypes ( ) : IEnumerable
GetApplication ( string actionName ) : NodeHead
GetAvailableFields ( ) : List
GetAvailableFields ( bool rootFields ) : List
GetChildren ( QuerySettings settings ) : QueryResult
GetChildren ( string text, QuerySettings settings ) : QueryResult
GetChildren ( string text, QuerySettings settings, bool getAllChildren ) : QueryResult
GetContentType ( ) : ContentType
GetIndexableFields ( ) : IEnumerable
GetProperty ( string name ) : object
IsAllowedChildType ( ContentType contentType ) : bool
IsAllowedChildType ( string contentTypeName ) : bool
MakeCopy ( Node target, string newName ) : Node
MoveTo ( Node target ) : void
Publish ( ) : void
Reject ( ) : void
Save ( ) : void
Save ( SavingMode mode ) : void
SetProperty ( string name, object value ) : void
ToString ( ) : string
UndoCheckOut ( ) : void
UndoCheckOut ( bool forceRefresh = true ) : void

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

Метод Описание
CopyDynamicProperties ( Node target ) : void
GenericContent ( Node parent ) : System
GenericContent ( NodeToken nt ) : System
GetAvailableContentTypeFields ( ICollection availableFields ) : void
GetAvailableContentTypeFields ( ICollection availableFields, bool rootFields ) : void
GetFields ( ContentType contentType, ICollection availableFields, bool rootFields ) : void
Initialize ( ) : void

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

Метод Описание
AssertAllowedChildType ( Node node, bool move = false ) : void
CheckAllowedChildType ( Node node ) : TypeAllow
GetCannotAllowContentTypeException ( ) : Exception
GetNotAllowedContentTypeExceptionOnCreate ( Node node, GenericContent parent ) : Exception
GetNotAllowedContentTypeExceptionOnMove ( Node node, GenericContent target ) : Exception
SaveSameVersion ( ) : void
SetAllowedChildTypes ( IEnumerable contentTypes, bool throwOnError = true, bool save = false ) : void
VersionSetup ( ) : void

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

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

public AllowChildType ( ContentType contentType, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentType SenseNet.ContentRepository.Schema.ContentType
setOnAncestorIfInherits bool
throwOnError bool
save bool
Результат void

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

public AllowChildType ( string contentTypeName, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypeName string
setOnAncestorIfInherits bool
throwOnError bool
save bool
Результат void

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

public AllowChildTypes ( IEnumerable contentTypes, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypes IEnumerable
setOnAncestorIfInherits bool
throwOnError bool
save bool
Результат void

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

public AllowChildTypes ( IEnumerable contentTypeNames, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypeNames IEnumerable
setOnAncestorIfInherits bool
throwOnError bool
save bool
Результат void

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

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

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

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

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

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

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

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

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

protected CopyDynamicProperties ( Node target ) : void
target Node
Результат void

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

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

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

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

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

protected GenericContent ( Node parent ) : System
parent Node
Результат System

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

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

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

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

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

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

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

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

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

public GetApplication ( string actionName ) : NodeHead
actionName string
Результат SenseNet.ContentRepository.Storage.NodeHead

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

protected GetAvailableContentTypeFields ( ICollection availableFields ) : void
availableFields ICollection
Результат void

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

protected GetAvailableContentTypeFields ( ICollection availableFields, bool rootFields ) : void
availableFields ICollection
rootFields bool
Результат void

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

public GetAvailableFields ( ) : List
Результат List

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

public GetAvailableFields ( bool rootFields ) : List
rootFields bool
Результат List

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

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

public GetContentType ( ) : ContentType
Результат SenseNet.ContentRepository.Schema.ContentType

GetFields() защищенный статический Метод

protected static GetFields ( ContentType contentType, ICollection availableFields, bool rootFields ) : void
contentType SenseNet.ContentRepository.Schema.ContentType
availableFields ICollection
rootFields bool
Результат void

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

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

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

public GetProperty ( string name ) : object
name string
Результат object

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

protected Initialize ( ) : void
Результат void

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

public IsAllowedChildType ( ContentType contentType ) : bool
contentType SenseNet.ContentRepository.Schema.ContentType
Результат bool

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

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

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

public MakeCopy ( Node target, string newName ) : Node
target Node
newName string
Результат Node

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

public MoveTo ( Node target ) : void
target Node
Результат void

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

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

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

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

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

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

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

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

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

public SetProperty ( string name, object value ) : void
name string
value object
Результат void

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

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

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

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

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

public UndoCheckOut ( bool forceRefresh = true ) : void
forceRefresh bool
Результат void