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

Inheritance: PreValueModel, IValidatableObject
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

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

Méthodes protégées

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

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

NodeSelectorPreValueModel() public méthode

public NodeSelectorPreValueModel ( TreeMetadata>.IEnumerable trees ) : System
trees TreeMetadata>.IEnumerable
Résultat System

SetModelValues() public méthode

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

Validate() public méthode

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