Examples of Alert


Examples of org.opentripplanner.routing.alertpatch.Alert

            handleAlert(id, alert);
        }
    }

    private void handleAlert(String id, GtfsRealtime.Alert alert) {
        Alert alertText = new Alert();
        alertText.alertDescriptionText = deBuffer(alert.getDescriptionText());
        alertText.alertHeaderText = deBuffer(alert.getHeaderText());
        alertText.alertUrl = deBuffer(alert.getUrl());
        ArrayList<TimePeriod> periods = new ArrayList<TimePeriod>();
        if(alert.getActivePeriodCount() > 0) {
View Full Code Here

Examples of org.parosproxy.paros.core.scanner.Alert

        public void valueChanged(javax.swing.event.TreeSelectionEvent e) {
            DefaultMutableTreeNode node = (DefaultMutableTreeNode) treeAlert.getLastSelectedPathComponent();
            if (node.getUserObject() != null) {
                Object obj = node.getUserObject();
                if (obj instanceof Alert) {
                    Alert alert = (Alert) obj;
                setMessage(alert.getMessage());

                }
            }
        }
      });
View Full Code Here

Examples of org.plugtree.training.model.Alert

    public AlertSystem() {
        this.initAlerts();
    }

    public void addAlert(AlertType type, String luggageCode, String message){
        Alert alert = new Alert(type, luggageCode, message);
        System.out.println("Alert created: "+ alert);
        this.alerts.get(type).add(alert);
    }
View Full Code Here

Examples of org.rhq.core.domain.alert.Alert

        AlertCriteria criteria = new AlertCriteria();
        criteria.addFilterId(alertId);
        GWTServiceLookup.getAlertService().findAlertsByCriteria(criteria, new AsyncCallback<PageList<Alert>>() {
            @Override
            public void onSuccess(PageList<Alert> result) {
                Alert alert = result.get(0);
                Integer parentId = alert.getAlertDefinition().getParentId();
                AlertDefinition groupAlertDefinition = alert.getAlertDefinition().getGroupAlertDefinition();
                if (groupAlertDefinition != null || (parentId != null && parentId.intValue() != 0)) {
                    fetchDefinitionWithGroupAndTemplate(alert);
                } else {
                    show(alert);
                }
View Full Code Here

Examples of org.zaproxy.clientapi.core.Alert

    Alert third;
    AppScanningSteps steps;

    @Before
    public void setup() {
        first = new Alert("alert1", "url1", Alert.Risk.High, Alert.Reliability.Warning, "param1", "other1");
        second = new Alert("alert2", "url2", Alert.Risk.High, Alert.Reliability.Warning, "param2", "other2");
        third = new Alert("alert3", "url3", Alert.Risk.High, Alert.Reliability.Warning, "param3", "other3");

        steps = new AppScanningSteps();
    }
View Full Code Here

Examples of pivot.wtk.Alert

                                body = (Component)wtkxSerializer.readObject("pivot/tutorials/alert.wtkx");
                            } catch(Exception exception) {
                                System.out.println(exception);
                            }

                            Alert alert = new Alert(MessageType.QUESTION, "Please select your favorite icon:",
                                options, body);
                            alert.setTitle("Select Icon");
                            alert.setSelectedOption(0);
                            alert.getDecorators().update(0, new ReflectionDecorator());

                            alert.open(window);
                        } else {
                            String message = (String)userData.get("message");
                            Alert.alert(MessageType.decode(messageType), message, window);
                        }
                    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.event.Alert

  public JSONObject setAlertAsRead(HttpSession session, JSONObject json) {
    Long alertId = json.getLong("alertId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      Alert a = requestManager.getAlertById(alertId);
      if (a.getAlertUser().equals(user)) {
        a.setAlertRead(true);
        requestManager.saveAlert(a);
      }
      else {
        JSONUtils.SimpleJSONError("You do not have the rights to set this alert as read");
      }
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.