Class SubjectNavigationModeBase
Provides a base class from which implementations of INavigationMode can be derived. Implementations of this class use a ConceptScheme to represent a subject hierarchy. Certain concept nodes may have children of the specified TargetType.
Inherited Members
Namespace: Algenta.Colectica.ViewModel.Navigator.Modes
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public class SubjectNavigationModeBase : LimitedPathModeBase, INavigationMode
Constructors
SubjectNavigationModeBase(String, Guid, String, Guid, Int32, Guid[])
Initializes a new instance of the SubjectNavigationModeBase class.
Declaration
public SubjectNavigationModeBase(string agencyId, Guid subjectConceptSchemeId, string name, Guid targetType, int weight, params Guid[] topLevelTypes)
Parameters
Type | Name | Description |
---|---|---|
System.String | agencyId | The agency identifier of the ConceptScheme that defines the subject hierarchy. |
Guid | subjectConceptSchemeId | The identifier of the ConceptScheme taht defines the subject hierarchy. |
System.String | name | The name of the mode. |
Guid | targetType | The type of item that will appear as leaf nodes in the mode. |
System.Int32 | weight | The weight of the mode, used when the mode is displayed in a list of modes. |
Guid[] | topLevelTypes | The item types that may appear at the top level of the navigation hierarchy defined by the mode. |
Properties
AgencyId
Gets or sets the agency identifier of the ConceptScheme that defines the subject hierarchy.
Declaration
public string AgencyId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SubjectConceptSchemeId
Gets or sets the identifier of the ConceptScheme that defines the subject hierarchy.
Declaration
public Guid SubjectConceptSchemeId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Methods
GetChildItems(Node)
Gets the child items of the specified node. If
AreChildrenRemote
returned true, this method
wil be called on a background thread.
Declaration
public override Collection<Node> GetChildItems(Node item)
Parameters
Type | Name | Description |
---|---|---|
Node | item | The node for which children are being requested. |
Returns
Type | Description |
---|---|
Collection<Node> | A list of nodes that will be added as children of the specified node. |
Overrides
GetNavigationNodeHierarchyFromConceptHierarchy(ConceptNode, Node)
Converts a hierarchy of ConceptNode items into a hierarchy of navigation Node items.
Declaration
public Node GetNavigationNodeHierarchyFromConceptHierarchy(ConceptNode root, Node parentNavNode)
Parameters
Type | Name | Description |
---|---|---|
ConceptNode | root | The root of the concept node hierarchy |
Node | parentNavNode | The parent navigation node to which new navigation nodes will be added. |
Returns
Type | Description |
---|---|
Node |