Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12854

HST fluent query improvement: add ExcludePrimaryTypes

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • None
    • None
    • site-toolkit

    Description

      Current Situation

      HstQuery defines ofPrimaryTypes:

      HstQuery hstQueryInFluent = create(baseContentBean)
                      .ofPrimaryTypes("unittestproject:textpage")
                      .build();
      

      There is no method to exclude a (Primary) Type.

      Desired Situation

      I would suggest methods excludePrimaryTypes and excludeTypes anagolous with the already existing excludeScopes

      HstQuery hstQueryInFluent = create(baseContentBean)
                      .ofPrimaryTypes("unittestproject:basedocument")
                      .excludePrimaryTypes("unitestproject:textpage")
                      .build();
      

      HIPPLUG-1377 is one of the use cases.

      Attachments

        Activity

          People

            productteam Product Management Team
            mrop Michiel Rop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: