{
SecurityUtil.publishErrorMessage(request, SecurityResources.TOPIC_GROUP, sex.getMessage());
}
}
BrowserIterator iterator = new DatabaseBrowserIterator(list, resultSetTitleList, resultSetTypeList, windowSize);
setBrowserIterator(request, iterator);
iterator.sort("usersingroup"); // resource bundle key
}
else
{
resultSetTitleList.add("rolesingroup"); // resource bundle key
String selectedGroup = (String)PortletMessaging.receive(request, SecurityResources.TOPIC_GROUPS, SecurityResources.MESSAGE_SELECTED);
if (selectedGroup != null)
{
try
{
Iterator roles = roleManager.getRolesInGroup(selectedGroup).iterator();
while (roles.hasNext())
{
String roleName = ((Role)roles.next()).getPrincipal().getName();
if ( filter == null || roleName.toLowerCase().startsWith(filter))
{
list.add(roleName);
}
}
}
catch (SecurityException sex)
{
SecurityUtil.publishErrorMessage(request, SecurityResources.TOPIC_GROUP, sex.getMessage());
}
}
BrowserIterator iterator = new DatabaseBrowserIterator(list, resultSetTitleList, resultSetTypeList, windowSize);
setBrowserIterator(request, iterator);
iterator.sort("usersingroup"); // resource bundle key
}
}