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

Inheritance: Rebel.Cms.Web.Trees.MediaTreeController, INodeSelectorDataSource
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
GetEntity ( HiveId nodeId ) : TypedEntity

Returns an entity given a HiveId

GetMediaUrl ( HiveId id, System.Guid treeId, string propertyAlias ) : string

Returns the url for the media item

GetNodeSelectorItemModel ( HiveId id, System.Guid treeId ) : SelectedItemModel

Returns the model for each NodeSelector persisted item

GetPaths ( HiveId id, System.Guid treeId ) : EntityPathCollection

Returns the paths for the specified HiveId

GetRootNodeId ( ) : HiveId

Returns the root node id defined by the tree

GetTooltipContents ( HiveId id, System.Guid treeId ) : TooltipContents

Returns the content to display in the tooltip

NodeSelectorMediaTreeController ( IBackOfficeRequestContext requestContext ) : System

Méthodes protégées

Méthode Description
CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode

Overrides creating the root node so we can ensure the correct metadata is applied to it.

GetTreeData ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : RebelTreeResult

Returns the tree data for the specified node taking into account if a TreeQueryStringParameters.RenderParent is set to true.

Private Methods

Méthode Description
EnsureInitialized ( ) : void

Used by the INodeSelectorDataSource because it executes in a context outside of a normal request, so we need to ensure this controller is initialized so we resolve the current request from IoC and manually initialize.

Method Details

CreateRootNode() protected méthode

Overrides creating the root node so we can ensure the correct metadata is applied to it.
protected CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode
queryStrings System.Web.Mvc.FormCollection
Résultat TreeNode

GetEntity() public méthode

Returns an entity given a HiveId
public GetEntity ( HiveId nodeId ) : TypedEntity
nodeId HiveId
Résultat TypedEntity

GetMediaUrl() public méthode

Returns the url for the media item
public GetMediaUrl ( HiveId id, System.Guid treeId, string propertyAlias ) : string
id HiveId
treeId System.Guid
propertyAlias string
Résultat string

GetNodeSelectorItemModel() public méthode

Returns the model for each NodeSelector persisted item
public GetNodeSelectorItemModel ( HiveId id, System.Guid treeId ) : SelectedItemModel
id HiveId
treeId System.Guid
Résultat SelectedItemModel

GetPaths() public méthode

Returns the paths for the specified HiveId
public GetPaths ( HiveId id, System.Guid treeId ) : EntityPathCollection
id HiveId
treeId System.Guid
Résultat EntityPathCollection

GetRootNodeId() public méthode

Returns the root node id defined by the tree
public GetRootNodeId ( ) : HiveId
Résultat HiveId

GetTooltipContents() public méthode

Returns the content to display in the tooltip
public GetTooltipContents ( HiveId id, System.Guid treeId ) : TooltipContents
id HiveId
treeId System.Guid
Résultat TooltipContents

GetTreeData() protected méthode

Returns the tree data for the specified node taking into account if a TreeQueryStringParameters.RenderParent is set to true.
protected GetTreeData ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : RebelTreeResult
parentId HiveId
queryStrings System.Web.Mvc.FormCollection
Résultat RebelTreeResult

NodeSelectorMediaTreeController() public méthode

public NodeSelectorMediaTreeController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
Résultat System