Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
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
- causes
-
HSTTWO-4169 Undeprecate still useful createIncomingBeansQuery methods
- Closed