C# Class Rebel.Cms.Web.PropertyEditors.NodeSelector.NodeSelectorPreValueModel

Inheritance: PreValueModel, IValidatableObject
Datei anzeigen Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
NodeSelectorPreValueModel ( TreeMetadata>.IEnumerable trees ) : System
SetModelValues ( string serializedVal ) : void

Assign the AvailableTrees when model values are set and ensure the correct tree is selected in the select list.

Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : IEnumerable

Executes custom server side validation for the model

Protected Methods

Method Description
GetAvailableTrees ( ) : IEnumerable

Returns the trees available within rebel

The value portion is the JsonObject of the HiveId which is wrapping the tree GUID Id since we need to have the JSON version of the HiveId in JavaScript and we don't have a JS parser/generator for HiveId since we'd like to keep this in c# only.

Method Details

GetAvailableTrees() protected method

Returns the trees available within rebel
The value portion is the JsonObject of the HiveId which is wrapping the tree GUID Id since we need to have the JSON version of the HiveId in JavaScript and we don't have a JS parser/generator for HiveId since we'd like to keep this in c# only.
protected GetAvailableTrees ( ) : IEnumerable
return IEnumerable

NodeSelectorPreValueModel() public method

public NodeSelectorPreValueModel ( TreeMetadata>.IEnumerable trees ) : System
trees TreeMetadata>.IEnumerable
return System

SetModelValues() public method

Assign the AvailableTrees when model values are set and ensure the correct tree is selected in the select list.
public SetModelValues ( string serializedVal ) : void
serializedVal string
return void

Validate() public method

Executes custom server side validation for the model
public Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : IEnumerable
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return IEnumerable