Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3865

Make ContentBeanUtils easier to use for creating incoming beans queries

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: None
    • Similar issues:

      Description

      The class org.hippoecm.hst.util.ContentBeanUtils has some convenience methods for creating incoming beans queries. There are many variants to choose from which makes it not very straightforward to implement it correctly.

      Three of them are deprecated since 7.9, can we remove them in the next release?

      Also all variants have the boolean parameter for including subtypes or not. I don't think that this parameter set to true very often. Can we create two convenience methods that not have this parameter and use the "include subtypes" function default with "false"? Developers that really want to use the "include subtypes" functionality should call the method [1] directly. The two methods that now DO have this parameter should be deprecated to be removed in a later release.

      [1] org.hippoecm.hst.util.ContentBeanUtils#createIncomingBeansQuery(org.hippoecm.hst.content.beans.standard.HippoDocumentBean, org.hippoecm.hst.content.beans.standard.HippoBean, java.util.List<java.lang.String>, java.lang.Class<? extends org.hippoecm.hst.content.beans.standard.HippoBean>, boolean)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clientserviceteam Client Service Team
                Reporter:
                bleunis Bert Leunis (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: