C# Class SenseNet.ContentRepository.GenericContent

Inheritance: Node, IIndexableDocument
Mostrar archivo Open project: maxpavlov/FlexNet Class Usage Examples

Private Properties

Property Type Description
AssertAllowedChildType void
CheckAllowedChildType TypeAllow
GetCannotAllowContentTypeException System.Exception
GetNotAllowedContentTypeExceptionOnCreate System.Exception
GetNotAllowedContentTypeExceptionOnMove System.Exception
SaveSameVersion void
SetAllowedChildTypes void
VersionSetup void

Public Methods

Method Description
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

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AllowChildType() public method

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
return void

AllowChildType() public method

public AllowChildType ( string contentTypeName, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypeName string
setOnAncestorIfInherits bool
throwOnError bool
save bool
return void

AllowChildTypes() public method

public AllowChildTypes ( IEnumerable contentTypes, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypes IEnumerable
setOnAncestorIfInherits bool
throwOnError bool
save bool
return void

AllowChildTypes() public method

public AllowChildTypes ( IEnumerable contentTypeNames, bool setOnAncestorIfInherits = false, bool throwOnError = true, bool save = false ) : void
contentTypeNames IEnumerable
setOnAncestorIfInherits bool
throwOnError bool
save bool
return void

Approve() public method

public Approve ( ) : void
return void

CheckChildrenTypeConsistence() public method

public CheckChildrenTypeConsistence ( ) : string
return string

CheckIn() public method

public CheckIn ( ) : void
return void

CheckOut() public method

public CheckOut ( ) : void
return void

CopyDynamicProperties() protected method

protected CopyDynamicProperties ( Node target ) : void
target Node
return void

Delete() public method

public Delete ( ) : void
return void

Delete() public method

public Delete ( bool bypassTrash ) : void
bypassTrash bool
return void

GenericContent() protected method

protected GenericContent ( Node parent ) : System
parent Node
return System

GenericContent() public method

public GenericContent ( Node parent, string nodeTypeName ) : System
parent Node
nodeTypeName string
return System

GenericContent() protected method

protected GenericContent ( NodeToken nt ) : System
nt SenseNet.ContentRepository.Storage.NodeToken
return System

GetAllowedChildTypeNames() public method

public GetAllowedChildTypeNames ( ) : IEnumerable
return IEnumerable

GetAllowedChildTypes() public method

public GetAllowedChildTypes ( ) : IEnumerable
return IEnumerable

GetApplication() public method

public GetApplication ( string actionName ) : NodeHead
actionName string
return SenseNet.ContentRepository.Storage.NodeHead

GetAvailableContentTypeFields() protected method

protected GetAvailableContentTypeFields ( ICollection availableFields ) : void
availableFields ICollection
return void

GetAvailableContentTypeFields() protected method

protected GetAvailableContentTypeFields ( ICollection availableFields, bool rootFields ) : void
availableFields ICollection
rootFields bool
return void

GetAvailableFields() public method

public GetAvailableFields ( ) : List
return List

GetAvailableFields() public method

public GetAvailableFields ( bool rootFields ) : List
rootFields bool
return List

GetChildren() public method

public GetChildren ( QuerySettings settings ) : QueryResult
settings SenseNet.Search.QuerySettings
return QueryResult

GetChildren() public method

public GetChildren ( string text, QuerySettings settings ) : QueryResult
text string
settings SenseNet.Search.QuerySettings
return QueryResult

GetChildren() public method

public GetChildren ( string text, QuerySettings settings, bool getAllChildren ) : QueryResult
text string
settings SenseNet.Search.QuerySettings
getAllChildren bool
return QueryResult

GetContentType() public method

public GetContentType ( ) : ContentType
return SenseNet.ContentRepository.Schema.ContentType

GetFields() protected static method

protected static GetFields ( ContentType contentType, ICollection availableFields, bool rootFields ) : void
contentType SenseNet.ContentRepository.Schema.ContentType
availableFields ICollection
rootFields bool
return void

GetIndexableFields() public method

public GetIndexableFields ( ) : IEnumerable
return IEnumerable

GetProperty() public method

public GetProperty ( string name ) : object
name string
return object

Initialize() protected method

protected Initialize ( ) : void
return void

IsAllowedChildType() public method

public IsAllowedChildType ( ContentType contentType ) : bool
contentType SenseNet.ContentRepository.Schema.ContentType
return bool

IsAllowedChildType() public method

public IsAllowedChildType ( string contentTypeName ) : bool
contentTypeName string
return bool

MakeCopy() public method

public MakeCopy ( Node target, string newName ) : Node
target Node
newName string
return Node

MoveTo() public method

public MoveTo ( Node target ) : void
target Node
return void

Publish() public method

public Publish ( ) : void
return void

Reject() public method

public Reject ( ) : void
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( SavingMode mode ) : void
mode SavingMode
return void

SetProperty() public method

public SetProperty ( string name, object value ) : void
name string
value object
return void

ToString() public method

public ToString ( ) : string
return string

UndoCheckOut() public method

public UndoCheckOut ( ) : void
return void

UndoCheckOut() public method

public UndoCheckOut ( bool forceRefresh = true ) : void
forceRefresh bool
return void