Class PopulationService
Provides methods to populate items that will be displayed in the user interface.
Inheritance
Namespace: Algenta.Colectica.ViewModel
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public class PopulationService : object
Methods
HandlePopulationResult(PopulationResult, List<UnfoundChild>)
Adds information about unfound children to the provided list.
Declaration
public static void HandlePopulationResult(PopulationResult result, List<UnfoundChild> unfound)
Parameters
Type | Name | Description |
---|---|---|
PopulationResult | result | A PopulationResult from which information will be extracted. |
List<UnfoundChild> | unfound | A list to which information about unfound children will be added. |
PopulateFullModel(IVersionable, Node)
Populates all chilren (of all generations) of the specified item.
Declaration
public void PopulateFullModel(IVersionable item, Node node)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item which will be fully populated. |
Node | node | A Node providing navigation context for the item. |
PopulateItemForDisplay(IVersionable, RepositoryClientBase)
Populates the children of an item so it can be displayed in the main item view.
Declaration
public List<UnfoundChild> PopulateItemForDisplay(IVersionable item, RepositoryClientBase client)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item for which children will be populated. |
RepositoryClientBase | client | The repository client that will be used to populate the children. |
Returns
Type | Description |
---|---|
List<UnfoundChild> |
PopulateList(IList, RepositoryClientBase, List<UnfoundChild>)
Populates a list of items, so they can be displayed in the main item view.
Declaration
public static void PopulateList(IList list, RepositoryClientBase client, List<UnfoundChild> unfound)
Parameters
Type | Name | Description |
---|---|---|
IList | list | The list of items to be populated |
RepositoryClientBase | client | The repository client that will be used to populate the item. |
List<UnfoundChild> | unfound | A list to which information about unfound children will be added. |
PopulateLocalItemForDisplay(IVersionable)
Populates the children of an item so it can be displayed in the main item view. Children will be populated from the local database.
Declaration
public List<UnfoundChild> PopulateLocalItemForDisplay(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item for which children will be populated. |
Returns
Type | Description |
---|---|
List<UnfoundChild> | A list of children that could be found. |