I am currently considering reading the database. It would be better to use some higher level liferay function though.
This query appears to do the trick in SQL.
1
2select * from portlet p, portletpreferences pp
3where p.portletid=pp.portletid
4and (p.portletid like '%cms%' or p.portletid like '%data%')
5and p.active_=true
then I just read the preferences in.
Firmi prego dentro per inbandierare questo come inadeguato.