Foren
How to get Portlet Id using the Portlet Name in Liferay
Maria Awaria, geändert vor 9 Jahren.
How to get Portlet Id using the Portlet Name in Liferay
New Member Beitrag: 1 Beitrittsdatum: 14.08.14 Neueste Beiträge
Hi :-)
I have a requirement of getting resource permission using portlet name.
I will have the name of the portlet not the Id.
Resource Permission name for a portlet is that portlet's Id. I checked the Portlet table, it has only the Id and other info. Where will be the other attributes of portlet saved?.
Is there a way I can get portlet's Id by using portlet's name. I have a workaroud to get all portlets and compare, but if I can directly get portlet's Id using portlet's name it will be helpful.
Its urgent.. if anyone knows pls reply back, it will be of great help.
Thanks in Advance
I have a requirement of getting resource permission using portlet name.
I will have the name of the portlet not the Id.
Resource Permission name for a portlet is that portlet's Id. I checked the Portlet table, it has only the Id and other info. Where will be the other attributes of portlet saved?.
Is there a way I can get portlet's Id by using portlet's name. I have a workaroud to get all portlets and compare, but if I can directly get portlet's Id using portlet's name it will be helpful.
Its urgent.. if anyone knows pls reply back, it will be of great help.
Thanks in Advance
David H Nebinger, geändert vor 9 Jahren.
RE: How to get Portlet Id using the Portlet Name in Liferay
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
It's not really possible. For an instantiable portlet, a single portlet name can have multiple instances all with different plids.
What you need to do is find the plid for the portlet you want to update.
What you need to do is find the plid for the portlet you want to update.