1. Filtering Exchange Items

Skip to end of metadata
Go to start of metadata

Problem

  • Reduce number of exchange items a Linkable component exposes through its interface

Proposal

  • 3rd parties could also provide library of useful filters
  • OmiEd could then make these filters available to the user via the GUI

Examples

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. 20-10-2007

    don

    Very good idea! I have a few additional suggestions, comments:

    • Exclude() method seems to be overkill - someone will need to call this method may times for all existing exchange items.
    • I seems more logical to merge IFilterable into ILinkableComponent since it is the only place where collections of exchange items are used.
    • Check how Hibernate uses Criteria, Criterion: Hibernate Criteria, http://david.givoni.com/blog/?p=9
    • Not sure if there is need to return filters from component. Just CreateExchangeItemFilter() maybe more helpful. Gui will use this method to create filter and to filter exchange items based on user-provided criteria.

    See example below. Advantage is that IFilter implementation may cache collection of exchange items which should be returned it criteria will not change which may be very good for performance.