[MAGNOLIA-3791] New util method: ContentUtil.getAncestorOfType Created: 09/Aug/11  Updated: 16/Aug/11  Resolved: 10/Aug/11

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.4.5

Type: New Feature Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File ContentUtil.java     Text File ContentUtilTest.java    
Issue Links:
dependency
depends upon MAGNOLIA-3792 A few custom Hamcrest matchers Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Testcase included:
Yes

 Description   

Here's a little patch that adds a simple, yet useful and often rewritten method to retrieve a node's first ancestor of a given type.

Meant to be added to the existing info.magnolia.cms.util.ContentUtil, not added a separate class.



 Comments   
Comment by Magnolia International [ 10/Aug/11 ]

done on 4.4 branch, merged to trunk.

Generated at Mon Feb 12 03:49:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.