private ApplicationCategory selectedCategory;
@SuppressWarnings("unchecked")
public UIApplicationList() throws Exception
{
ApplicationRegistryService service = getApplicationComponent(ApplicationRegistryService.class);
String remoteUser = Util.getPortalRequestContext().getRemoteUser();
if (remoteUser == null || remoteUser.equals(""))
return;
UserACL userACL = Util.getUIPortalApplication().getApplicationComponent(UserACL.class);
IdentityRegistry identityRegistry = Util.getUIPortalApplication().getApplicationComponent(IdentityRegistry.class);
Identity identity = identityRegistry.getIdentity(remoteUser);
if (identity == null)
return;
PortletComparator portletComparator = new PortletComparator();
categories = service.getApplicationCategories(remoteUser);
Iterator<ApplicationCategory> cateItr = categories.iterator();
while (cateItr.hasNext())
{
ApplicationCategory cate = cateItr.next();