
![]() |
Show Changes |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
| Search |
History
| 8/23/2007 11:15:38 AM |
| NathanJones-68.209.248.222 |
| 8/23/2007 11:14:55 AM |
| NathanJones-68.209.248.222 |
| 8/23/2007 10:49:10 AM |
| NathanJones-68.209.248.222 |
| 8/23/2007 10:29:14 AM |
| NathanJones-68.209.248.222 |
| 8/23/2007 10:11:58 AM |
| NathanJones-68.209.248.222 |
![]() |
List all versions |
The NamespaceManager class has several methods for selecting a list of topic names returned in the form of a QualifiedTopicNameCollection. All the various methods eventually call into
NamespaceManager.AllTopics(ImportPolicy importPolicy, Comparison<QualifiedTopicName> sortCriterion)
to do the work. I've modified this method to allow the filtering of the topics selected, so the worker method now looks like this
NamespaceManager.AllTopics(ImportPolicy importPolicy, Comparison<QualifiedTopicName> sortCriterion) Predicate<QualifiedTopicName> selectionCriterion)
Now, the behavior is that the results of the query into the ContentProviderChain is filtered based on the selectionCriterion before being sorted with the sortCriterion. This order of operations allow the potentially expensive Sort to be done on the exact set of topics desired instead of doing the sort first and then looking for the desired topics.
The method NamespaceManager.AllTopicsWith has been modified to get its list of QualifiedTopicNames using this mechanism.