Пример #1
0
 private void createAlert(AcInputChannel channel) {
   AcReceivedFileAlert alert = _access.newReceivedFileAlert();
   alert.setInputChannelId(channel.getId());
   alert.setCreateUtcTs(_now);
   alert.setExpirationUtcTs(getAlertExpiration());
   _access.getReceivedFileAlertDb().insert(alert);
 }
Пример #2
0
 private void expireOldAlerts() {
   _access.getReceivedFileAlertDb().deleteOldAlerts();
 }
Пример #3
0
 private boolean noActiveAlertFor(AcInputChannel channel) {
   AcReceivedFileAlertDb db = _access.getReceivedFileAlertDb();
   JwList<AcReceivedFileAlert> v = db.getAllByInputChannelId(channel.getId());
   if (activeAlerts(v)) return false;
   return true;
 }