.getResourceTypesForCompatibleGroups(subject, pluginName);
Set<String> platformTypes = new TreeSet<String>();
Set<String> serverTypes = new TreeSet<String>();
Set<String> serviceTypes = new TreeSet<String>();
for (ResourceType type : allResourceTypes) {
ResourceCategory category = type.getCategory();
if (category == ResourceCategory.PLATFORM) {
platformTypes.add(type.getName());
} else if (category == ResourceCategory.SERVER) {
serverTypes.add(type.getName());
} else if (category == ResourceCategory.SERVICE) {
serviceTypes.add(type.getName());
} else {
throw new IllegalArgumentException("Unsupported ResourceCategory '" + category.name()
+ "' in GroupHubPortalAction.initGroupTypesPulldownMenu");
}
}
addResourceTypeMenuItems(hubForm, platformTypes, RequestUtils.message(request, ALL_PLATFORMS_KEY), "-1");