Show / Hide Table of Contents

Class SetPopulator

A visitor that populates all the items in a set with information from a repository.

Inheritance
object
VersionableVisitorBase
SetPopulator
Implements
IVersionableVisitor
Inherited Members
VersionableVisitorBase.depth
VersionableVisitorBase.HaveVisited(IVersionable)
VersionableVisitorBase.RegisterVisit(IVersionable)
VersionableVisitorBase.EndVisitItem(IVersionable)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class SetPopulator : VersionableVisitorBase, IVersionableVisitor

Constructors

SetPopulator(RepositoryClientBase)

Initializes a new instance of the GraphPopulator class.

Declaration
public SetPopulator(RepositoryClientBase baseClient)
Parameters
Type Name Description
RepositoryClientBase baseClient

The repository client used to populate items.

Properties

AcceptedItemTypes

If set, a list of item types that should be populated

Declaration
public Collection<Guid> AcceptedItemTypes { get; set; }
Property Value
Type Description
Collection<Guid>

IgnoreItemTypes

If set, a list of item types that should not be populated

Declaration
public Collection<Guid> IgnoreItemTypes { get; set; }
Property Value
Type Description
Collection<Guid>

MissingItems

Gets a collection of items that were not present in the repository.

Declaration
public Collection<IVersionable> MissingItems { get; }
Property Value
Type Description
Collection<IVersionable>

UseLatest

Determines whether the latest version of all items should be retrieved.

Declaration
public bool UseLatest { get; set; }
Property Value
Type Description
bool

VisitedItems

Gets the items that have been visited.

Declaration
public Dictionary<IdentifierTriple, Collection<IVersionable>> VisitedItems { get; }
Property Value
Type Description
Dictionary<IdentifierTriple, Collection<IVersionable>>

Methods

BeginVisitItem(IVersionable)

Called first when visiting an item, before visiting the item's children. Attempts to populate the item from the repository.

Declaration
public override void BeginVisitItem(IVersionable item)
Parameters
Type Name Description
IVersionable item

The item being visited.

Overrides
VersionableVisitorBase.BeginVisitItem(IVersionable)

Implements

IVersionableVisitor

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX