Class RepositoryItemNode
Represents an item from the repository in the navigation hierarchy.
Inherited Members
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
CompositeId
Gets the identifier of the item represented by this node.
Declaration
public IdentifierTriple CompositeId { get; set; }
Property Value
Type | Description |
---|---|
IdentifierTriple |
Implements
Metadata
Gets a description of the item represented by this node.
Declaration
public RepositoryItemMetadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
RepositoryItemMetadata |
Implements
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
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
SetHeader()
Sets the header for this node, based on the item description.
Declaration
public void SetHeader()