C# Class SenseNet.ContentRepository.GenericContent

Inheritance: Node, IIndexableDocument
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Private Properties

Свойство Type Description
AssertAllowedChildType void
CheckAllowedChildType TypeAllow
GetCannotAllowContentTypeException System.Exception
GetNotAllowedContentTypeExceptionOnCreate System.Exception
GetNotAllowedContentTypeExceptionOnMove System.Exception
SaveSameVersion void
SetAllowedChildTypes void
VersionSetup void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat void

AllowChildType() public méthode

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

AllowChildTypes() public méthode

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

AllowChildTypes() public méthode

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

Approve() public méthode

public Approve ( ) : void
Résultat void

CheckChildrenTypeConsistence() public méthode

public CheckChildrenTypeConsistence ( ) : string
Résultat string

CheckIn() public méthode

public CheckIn ( ) : void
Résultat void

CheckOut() public méthode

public CheckOut ( ) : void
Résultat void

CopyDynamicProperties() protected méthode

protected CopyDynamicProperties ( Node target ) : void
target Node
Résultat void

Delete() public méthode

public Delete ( ) : void
Résultat void

Delete() public méthode

public Delete ( bool bypassTrash ) : void
bypassTrash bool
Résultat void

GenericContent() protected méthode

protected GenericContent ( Node parent ) : System
parent Node
Résultat System

GenericContent() public méthode

public GenericContent ( Node parent, string nodeTypeName ) : System
parent Node
nodeTypeName string
Résultat System

GenericContent() protected méthode

protected GenericContent ( NodeToken nt ) : System
nt SenseNet.ContentRepository.Storage.NodeToken
Résultat System

GetAllowedChildTypeNames() public méthode

public GetAllowedChildTypeNames ( ) : IEnumerable
Résultat IEnumerable

GetAllowedChildTypes() public méthode

public GetAllowedChildTypes ( ) : IEnumerable
Résultat IEnumerable

GetApplication() public méthode

public GetApplication ( string actionName ) : NodeHead
actionName string
Résultat SenseNet.ContentRepository.Storage.NodeHead

GetAvailableContentTypeFields() protected méthode

protected GetAvailableContentTypeFields ( ICollection availableFields ) : void
availableFields ICollection
Résultat void

GetAvailableContentTypeFields() protected méthode

protected GetAvailableContentTypeFields ( ICollection availableFields, bool rootFields ) : void
availableFields ICollection
rootFields bool
Résultat void

GetAvailableFields() public méthode

public GetAvailableFields ( ) : List
Résultat List

GetAvailableFields() public méthode

public GetAvailableFields ( bool rootFields ) : List
rootFields bool
Résultat List

GetChildren() public méthode

public GetChildren ( QuerySettings settings ) : QueryResult
settings SenseNet.Search.QuerySettings
Résultat QueryResult

GetChildren() public méthode

public GetChildren ( string text, QuerySettings settings ) : QueryResult
text string
settings SenseNet.Search.QuerySettings
Résultat QueryResult

GetChildren() public méthode

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

GetContentType() public méthode

public GetContentType ( ) : ContentType
Résultat SenseNet.ContentRepository.Schema.ContentType

GetFields() protected static méthode

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

GetIndexableFields() public méthode

public GetIndexableFields ( ) : IEnumerable
Résultat IEnumerable

GetProperty() public méthode

public GetProperty ( string name ) : object
name string
Résultat object

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void

IsAllowedChildType() public méthode

public IsAllowedChildType ( ContentType contentType ) : bool
contentType SenseNet.ContentRepository.Schema.ContentType
Résultat bool

IsAllowedChildType() public méthode

public IsAllowedChildType ( string contentTypeName ) : bool
contentTypeName string
Résultat bool

MakeCopy() public méthode

public MakeCopy ( Node target, string newName ) : Node
target Node
newName string
Résultat Node

MoveTo() public méthode

public MoveTo ( Node target ) : void
target Node
Résultat void

Publish() public méthode

public Publish ( ) : void
Résultat void

Reject() public méthode

public Reject ( ) : void
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

Save() public méthode

public Save ( SavingMode mode ) : void
mode SavingMode
Résultat void

SetProperty() public méthode

public SetProperty ( string name, object value ) : void
name string
value object
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UndoCheckOut() public méthode

public UndoCheckOut ( ) : void
Résultat void

UndoCheckOut() public méthode

public UndoCheckOut ( bool forceRefresh = true ) : void
forceRefresh bool
Résultat void