use of org.opennms.netmgt.config.categories.Catinfo in project opennms by OpenNMS.
the class DefaultCategoryConfigDao method findAll.
/**
* <p>findAll</p>
*
* @return a {@link java.util.Collection} object.
*/
@Override
public Collection<Category> findAll() {
List<Category> catList = new ArrayList<>();
Catinfo catInfo = CategoryFactory.getInstance().getConfig();
List<CategoryGroup> catGroupList = catInfo.getCategoryGroups();
if (catGroupList != null) {
for (final CategoryGroup cg : catGroupList) {
catList.addAll(cg.getCategories());
}
}
return catList;
}
Aggregations