how to recuperate the list of the potlet created in liferay 6.2 using java

30 views Asked by At

My problem is to recuperate the list of the portlet created in liferay 6.2 without display the default portlet in liferay 6.2. i try this code <% boolean includeSystemPortlets = false;

                        List<Portlet> portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), includeSystemPortlets, false);

portlets = ListUtil.sort(portlets, new PortletTitleComparator(application, locale));

                        for (Portlet curPortlet : portlets) {
                            if (Validator.isNull(curPortlet.getPortletId()) || hiddenPortletIds.contains(curPortlet.getPortletId())) {
                                continue;
                            }

                            editPermissionsURL.setParameter("portletResource", curPortlet.getPortletId());
                        %>

but it display all the portlet created and the default portlet

i want to change this code : " List portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), includeSystemPortlets, false); " because it display all the portlet

0

There are 0 answers