Exemple #1
0
 public List<Item> filterByCategory(Item item) {
   if (item.getCategory() != null) {
     try {
       List<Item> list = itemDAO.listByCategory(item.getCategory());
       return list;
     } catch (Exception e) {
       throw new ApplicationRuntimeException(bundle.getString("ADM_ITEM_LIST_LOAD_NOK", e));
     }
   }
   return new ArrayList<Item>();
 }