Show / Hide Table of Contents

Class NavigatorExtensions

A static class containing extension methods useful for working with navigator nodes.

Inheritance
System.Object
NavigatorExtensions
Namespace: Algenta.Colectica.ViewModel.Navigator
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public static class NavigatorExtensions : object

Methods

ToNodes(SearchResponse, RepositoryClientBase)

Converts a SearchResponse to a list of Nodes.

Declaration
public static Collection<Node> ToNodes(this SearchResponse response, RepositoryClientBase client)
Parameters
Type Name Description
SearchResponse response

The search response from which nodes will be created.

RepositoryClientBase client

The client that will be associated with the newly created nodes.

Returns
Type Description
Collection<Node>

A list of nodes.

ToNodes(Collection<RepositoryItemMetadata>, Node, RepositoryClientBase, Boolean)

Converts a list of item descriptions to a list of Nodes.

Declaration
public static Collection<Node> ToNodes(this Collection<RepositoryItemMetadata> items, Node parentItem, RepositoryClientBase client, bool addPlaceholders)
Parameters
Type Name Description
Collection<RepositoryItemMetadata> items

The item descriptions from which nodes will be created.

Node parentItem

The parent item that will be associated with the newly created nodes.

RepositoryClientBase client

The client that will be associated with the newly created nodes.

System.Boolean addPlaceholders

if set to true a placeholder node will be added as a child of each node.

Returns
Type Description
Collection<Node>

A list of nodes.

Back to top Copyright © 2009-2018 Colectica