//portlets = ListUtil.sort(portlets, new PortletTitleComparator(application, locale));
int total = portlets.size();
for (int i = 0; i < total; i++) {
Portlet portlet = portlets.get(i);
PluginPackage pluginPackage = portlet.getPluginPackage();
PluginSetting pluginSetting = PluginSettingLocalServiceUtil.getPluginSetting(company.getCompanyId(), portlet.getPortletId(), Plugin.TYPE_PORTLET);
// Name and description
StringBuilder sb = new StringBuilder();
String displayName = portlet.getDisplayName();
String title = PortalUtil.getPortletTitle(portlet, application, locale);
}
How you instantiate the "company" object? Where it came from?
ReplyDeleterenata, you can iterate over `CompanyLocalServiceUtil.getCompanies()`
Deleteor get it using `PortalUtil.getCompany(request)`