Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5446

Web content filters should automatically filter orphan contents

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.2.0
    • None
    • None
    • None

      When configured to ignore orphan contents, web content filters return such contents in getMatchingContents()'s Iterable just the same, and it's the responsibility of the caller to test and filter out the results.

      It could be interesting to implement a FilteringAmetysObjectIterable (like commons-collection's FilterIterator or guava's FluentIterable with filter) which would automatically filter out unwanted elements.
      The downside is size() would be forced to return -1.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: