Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-690

Provide for sorting, filtering and shrinking by query in STKUtil

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.4
    • None
    • base system
    • None
    • Yes
    • Yes

    Description

      Currently any callers of info.magnolia.module.templatingkit.util.STKUtil.getContentListByTemplateName(Content, String) will have to implement sorting, filtering and shrinking of results in Java. This leads to intolerable perfomance when thousands of result objects must be processed in Java.

      The provided patch extends some method signatures of STKUtil so a maxResultSize (for shrinking), andClause (for filtering) and orderByClause (for sorting) can be passed in. This will allow subclasses of AbstractListItemModel to perform sorting, filtering and shrinking via JCR query rather than in Java.

      The provided patch requires the application of the patch previously provided in MAGNOLIA-3331.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pbaerfuss Philipp Bärfuss
                jfrantzius Joerg von Frantzius
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: