C# Класс Rebel.Cms.Web.PropertyEditors.NodeSelector.NodeSelectorPreValueModel

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

Private Properties

Свойство Тип Описание

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

Метод Описание
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

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

Метод Описание
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.

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

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

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
Результат IEnumerable

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

public NodeSelectorPreValueModel ( TreeMetadata>.IEnumerable trees ) : System
trees TreeMetadata>.IEnumerable
Результат System

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

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
Результат void

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

Executes custom server side validation for the model
public Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : IEnumerable
validationContext System.ComponentModel.DataAnnotations.ValidationContext
Результат IEnumerable