title: How to get Portlet Id using the portlet name in Liferay?
body: <p>I have a requirement of getting resource permission using portlet name.</p>
  
  <p>I will have the name of the portlet not the Id.</p>
  
  <p>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?.</p>
  
  <p>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.</p>
  
  <p>Its urgent, if anyone knows pls reply back, it will be of great help.</p>
  
  <p>Thanks in Advance</p>