Examples of Alert


Examples of org.criticalfailure.torchlight.core.application.entity.Alert

                }
                catch(Exception e) {
                    logger.error("Exception caught while trying to get campaign object template list: "
                            + e.getLocalizedMessage(), e);

                    alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                            .getLocalizedMessage()));
                }
            }

            return templates;
View Full Code Here

Examples of org.criticalfailure.torchlight.core.application.model.Alert

          logger.error("Unable to save campaign: " + c + ": " + e.getLocalizedMessage(), e);
         
          AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
          logger.trace("alertService: " + alertService);
         
          alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage()));
         
          // notify user
          MessageDialog.openError(getEditorSite().getShell(), Messages.getString("campaign.editor.save.error.title"), Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage());
    }
View Full Code Here

Examples of org.eurekaj.api.datatypes.Alert

            log.info("Got: " + jsonObject.toString());
            if (isAdmin(loggedInUser) && jsonObject.has("getAlertPlugins")) {
                jsonResponse = BuildJsonObjectsUtil.generateAlertPluginsJson(ManagerAlertPluginService.getInstance().getLoadedAlertPlugins());
                log.debug("Got Alert Plugins:\n" + jsonResponse);
            } else if (isAdmin(loggedInUser) && (isPut(e) || isPost(e))) {
                Alert parsedAlert = ParseJsonObjects.parseAlertJson(jsonObject, id, loggedInUser.getAccountName());
                if (parsedAlert != null && parsedAlert.getAlertName() != null && parsedAlert.getAlertName().length() > 0) {
                    getBerkeleyTreeMenuService().persistAlert(parsedAlert);
                }
                JSONObject alertTopObject = new JSONObject();
                alertTopObject.put("alert", BuildJsonObjectsUtil.generateAlertJSON(parsedAlert));
View Full Code Here

Examples of org.graylog2.alerts.Alert

                    if (result.isTriggered()) {
                        // Alert is triggered!
                        LOG.debug("Alert condition [{}] is triggered. Sending alerts.", alertCondition);

                        // Persist alert.
                        final Alert alert = alertService.factory(result);
                        alertService.save(alert);

                        final List<AlarmCallbackConfiguration> callConfigurations = alarmCallbackConfigurationService.getForStream(stream);
                        if (callConfigurations.size() > 0)
                            for (AlarmCallbackConfiguration configuration : callConfigurations) {
View Full Code Here

Examples of org.graylog2.restclient.models.alerts.Alert

    public List<Alert> getAlertsSince(int since) throws APIException, IOException {
        List<Alert> alerts = Lists.newArrayList();

        for (AlertSummaryResponse alert : getAlertsInformation(since).alerts) {
            alerts.add(new Alert(alert));
        }

        return alerts;
    }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.Alert

      if (matcher.find()) {
        String s = matcher.group();
        recordId = s.substring(s.indexOf('=') + 1, s.indexOf(']'));
        description = update.substring(update.indexOf(']') + 1);
      }
      Alert alert = new Alert(1005400000, recordId);
      alert.setDescription(description);
      alerts.add(alert);
    }
    return alerts;
  }
View Full Code Here

Examples of org.openbravo.model.ad.alert.Alert

        throw new OBException("No entity found for treetype " + treeNode.getTree().getTypeArea());
      }
      return entity;
    }
    if (property.getEntity().getName().equals(Alert.ENTITY_NAME)) {
      final Alert alert = (Alert) obObject;
      final Table table = alert.getAlertRule().getTab().getTable();
      final Entity entity = ModelProvider.getInstance().getEntity(table.getName());
      if (entity == null) {
        throw new OBException("No entity for table with name " + table.getName());
      }
      return entity;
View Full Code Here

Examples of org.openqa.selenium.Alert

    {
        PreferencesUserProfilePage preferencesPage = this.customProfilePage.switchToPreferences();
        ChangePasswordPage changePasswordPage = preferencesPage.changePassword();
        changePasswordPage.changePassword(PASSWORD_1, PASSWORD_2);
        changePasswordPage.submit();
        Alert alert = getDriver().switchTo().alert();
        Assert.assertEquals(PASSWORD_MISMATCH, alert.getText());
        alert.accept();
    }
View Full Code Here

Examples of org.openqa.selenium.Alert

    public void testChangePasswordWithoutEnteringPasswords()
    {
        PreferencesUserProfilePage preferencesPage = this.customProfilePage.switchToPreferences();
        ChangePasswordPage changePasswordPage = preferencesPage.changePassword();
        changePasswordPage.submit();
        Alert alert = getDriver().switchTo().alert();
        Assert.assertEquals(PASSWORD_IS_EMPTY, alert.getText());
        alert.accept();
    }
View Full Code Here

Examples of org.openqa.selenium.Alert

        getUtil().recacheSecretToken();
        PreferencesUserProfilePage preferencesPage = this.customProfilePage.switchToPreferences();
        ChangePasswordPage changePasswordPage = preferencesPage.changePassword();
        changePasswordPage.changePassword(PASSWORD_1, PASSWORD_2);
        changePasswordPage.submit();
        Alert alert = getDriver().switchTo().alert();
        Assert.assertEquals(PASSWORD_MISMATCH, alert.getText());
        alert.accept();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.