Show / Hide Table of Contents

Class RepositoryItemNode

Represents an item from the repository in the navigation hierarchy.

Inheritance
System.Object
NotificationObject
Node
RepositoryItemNode
Inherited Members
Node.ItemType
Node.Identifier
Node.Header
Node.ToolTip
Node.Path
Node.Children
Node.AreChildrenEditable
Node.AreChildrenRemote
Node.AutoExpandChildren
Node.Parent
Node.IsExpanded
Node.IsSelected
Node.IsRare
Node.ExternalLink
Node.IsLocalUpdateAvailable
Node.IsRemoteUpdateAvailable
Node.IsUpdateAvailable
Node.IsLocallyModified
Node.IsDeprecated
Node.IsReadOnly
Node.IsChildOfLockedItem
Node.GetClient()
Node.IsItemUnderType<T>()
Node.GetParentOfType<T>()
Node.GetParentNodeWithVersionable()
Node.IsUnderEditableParent
Node.IsStatic
Node.GetFlattenedChildren(Collection<Node>)
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(String)
NotificationObject.RaisePropertyChanged(String[])
Algenta.Colectica.Model.NotificationObject.RaisePropertyChanged<T>(Expression<>)
NotificationObject.OnPropertyChanged(String)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, String)
Namespace: Algenta.Colectica.Navigator.NodeTypes
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public class RepositoryItemNode : Node, IVersionableProvider, IStatefulItem, IHaveClient

Constructors

RepositoryItemNode(RepositoryItemMetadata, Node, RepositoryClientBase)

Initializes a new instance of the RepositoryItemNode class.

Declaration
public RepositoryItemNode(RepositoryItemMetadata metadata, Node parent, RepositoryClientBase client)
Parameters
Type Name Description
RepositoryItemMetadata metadata

A description of the item represented by this node.

Node parent

The parent node of this node.

RepositoryClientBase client

The repository client for the repository that contains the item represented by this node.

RepositoryItemNode(SearchResult, Node, RepositoryClientBase)

Initializes a new instance of the RepositoryItemNode class.

Declaration
public RepositoryItemNode(SearchResult result, Node parent, RepositoryClientBase client)
Parameters
Type Name Description
SearchResult result

A search result that contains a description of the item represented by this node.

Node parent

The parent node of this node.

RepositoryClientBase client

The repository client for the repository that contains the item represented by this node.

Fields

TypesToPopulate

Gets an array of item types that should always have their children populated when they are opened in the main item view.

Declaration
public static Guid[] TypesToPopulate
Field Value
Type Description
Guid[]

Properties

Client

Gets or sets repository client for the repository that contains the item represented by this node.

Declaration
public RepositoryClientBase Client { get; set; }
Property Value
Type Description
RepositoryClientBase
Implements
IHaveClient.Client

CompositeId

Gets the identifier of the item represented by this node.

Declaration
public IdentifierTriple CompositeId { get; set; }
Property Value
Type Description
IdentifierTriple
Implements
IStatefulItem.CompositeId

Metadata

Gets a description of the item represented by this node.

Declaration
public RepositoryItemMetadata Metadata { get; set; }
Property Value
Type Description
RepositoryItemMetadata
Implements
IVersionableProvider.Metadata

Methods

ClearCachedItem()

Clears the cached item, forcing the item to be retrieved from the repository the next time the node is selected and opened in the main item view.

Declaration
public void ClearCachedItem()

CopyPropertiesIfNodeIsMatch(Node)

Copies the state information from the specified node to this node.

Declaration
public override void CopyPropertiesIfNodeIsMatch(Node node)
Parameters
Type Name Description
Node node

The node from which properties should be copied.

Overrides
Node.CopyPropertiesIfNodeIsMatch(Node)

GetVersionable()

Gets the versionable item. Depending on the node type, the versionable item may be locally or stored, or it may need to be retrieved over the network.

Declaration
public IVersionable GetVersionable()
Returns
Type Description
IVersionable
Implements
IVersionableProvider.GetVersionable()

SetHeader()

Sets the header for this node, based on the item description.

Declaration
public void SetHeader()

Extension Methods

Extensions.Yield<T>(T)
DdiNodeExtensions.FindNearestResourcePackage(Node)
Back to top Copyright © 2009-2018 Colectica