Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3865

Make ContentBeanUtils easier to use for creating incoming beans queries

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 5.0.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: