#28896 Create Factory method to find categories in all levels
This is the first PR for https://github.com/dotCMS/core/issues/28896
Later I am going to use this Factory to create a API Method
Proposed Changes
- Create Method to find categories in all levels and apply a filter
https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R844
- Update the Cache with the result
https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R863
We already have a method to find the ALL the categories and it update the cache after execute the query, so I created a Util method to share the code.
https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R168
Checklist
- [ ] Tests
- [ ] Translations
- [ ] Security Implications Contemplated (add notes if applicable)
Additional Info
** any additional useful context or info **
Screenshots
| Original | Updated |
|---|---|
| ** original screenshot ** | ** updated screenshot ** |
Quality Gate passed
Issues
6 New issues
0 Fixed issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code