Liferay通过layout获取portletid

1
2
3
Layout layout = LayoutLocalServiceUtil.getLayout(plid);
LayoutTypePortlet layoutTypePortlet = (LayoutTypePortlet)layout.getLayoutType();
List actualPortletList = layoutTypePortlet.getPortletIds();