Forums de discussion
How to customize queries and Finders on an existing standard portlet?
Svevo Villa, modifié il y a 10 années.
How to customize queries and Finders on an existing standard portlet?
New Member Envoyer: 1 Date d'inscription: 09/09/13 Publications récentes
Hi all,
I would like to modify/customize some queries and Finders on an existing standard portlet, like MessageBoard.
I thought that I could do this by creating a new "find" method on MBThreadFinderImpl class..
But I see that I cannot do that.
Could you suggest me a minimally invasive solution?
Thank you very much!!
I would like to modify/customize some queries and Finders on an existing standard portlet, like MessageBoard.
I thought that I could do this by creating a new "find" method on MBThreadFinderImpl class..
But I see that I cannot do that.
Could you suggest me a minimally invasive solution?
Thank you very much!!
Kan Zhang, modifié il y a 10 années.
RE: How to customize queries and Finders on an existing standard portlet?
Junior Member Publications: 68 Date d'inscription: 01/12/10 Publications récentes
What I did in one project is to implement my own FinderImpl with custom-sql using service builder in a hook or a portlet. The service builder will generate a FinderUtil class for me to use. Then I used the service wrapper in a hook to override the crossponding Liferay service. In the service wrapper it calls my FinderUtil.