Пример #1
0
 public boolean onToggleOpenClick() {
   BatchManager bm = getBatchManager();
   int batchId = toggleOpenLink.getValueInteger();
   try {
     if (!bm.isBatchOpen(user.getUsername(), collection.getId(), batchId)) {
       bm.openBatch(user.getUsername(), collection.getId(), batchId);
     } else {
       bm.closeBatch(user.getUsername(), collection.getId(), batchId);
     }
     setRedirect("batches.htm");
     return false;
   } catch (IOException ex) {
     throw new RuntimeException(ex);
   }
 }
Пример #2
0
 public boolean onManageClick() {
   int batchId = manageBatchLink.getValueInteger();
   setRedirect("view-batch.htm?batchId=" + batchId);
   return false;
 }
Пример #3
0
 public boolean onEditClick() {
   int batchId = editItemsLink.getValueInteger();
   setRedirect("edit-batch.htm?batchId=" + batchId);
   return false;
 }