C# 클래스 Rebel.Cms.Web.PropertyEditors.NodeSelector.NodeSelectorPreValueModel

상속: PreValueModel, IValidatableObject
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5 1 사용 예제들

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