Liferay: How to get List of friendlyUrl using groupID

277 views Asked by At

Is there any API where I can get All the friendlyURL related to particular groupID from group table.

Please help.

1

There are 1 answers

0
Olaf Kock On

Precaution upfront: Do not think in terms of database: This will lead you to manipulating the database sooner or later, which is a recipe for disaster. Never manipulate the database.

That being said, you can use GroupLocalService (or GroupService) to obtain a Group object that has the method you're looking for. If you have a themeDisplay object where you are, e.g. in a portlet request handler, you can obtain the current group from it as well.