Examples of AlertInfo


Examples of com.google.enterprise.connector.sharepoint.generated.alerts.AlertInfo

    if (alertListState == null) {
      LOGGER.warning("Unable to get the alerts. alertListState is null.");
      return lstAllAlerts;
    }

    final AlertInfo alertsInfo = Util.makeWSRequest(sharepointClientContext,
        alertsWS, new Util.RequestExecutor<AlertInfo>() {
      public AlertInfo onRequest(final BaseWS ws) throws Throwable {
        return ((AlertsWS) ws).getAlerts();
      }
     
      public void onError(final Throwable e) {
        LOGGER.log(Level.WARNING, "Unable to get alerts.", e);
      }
    });

    if (alertsInfo != null) {
      try {
        // To keep track of those IDs which are deleted
        final StringBuffer knownAlerts = alertListState.getIDs();
        final StringBuffer currentAlerts = new StringBuffer();

        final Alert[] alerts = alertsInfo.getAlerts();
        if ((alerts == null) || (alerts.length == 0)) {
          alertListState.setExisting(false);
          return lstAllAlerts;
        }
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfo

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    throw new ParseException( "Alert-Info missing '<'" , lexer.getPtr() );
                  }
                  this.lexer.SPorHT();
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfo

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfo

            headerName(TokenTypes.ALERT_INFO);
            int lineCount = 0;
            //Allow only 20 lines in alert-info.
            while ( (lexer.lookAhead(0) != '\n') && (lineCount < 20) ) {
                do {
                  AlertInfo alertInfo = new AlertInfo();
                    alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                    URLParser urlParser;
                    GenericURI uri;
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfo

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
View Full Code Here

Examples of org.efs.openreports.services.info.AlertInfo

        alerts.add(Converter.convertToAlertInfo(userAlert));
      }
      catch (ProviderException e)
      {
        AlertInfo alertInfo = new AlertInfo();
        alertInfo.setMessage(e.toString());
       
        alerts.add(alertInfo);
      }
    } 
   
View Full Code Here

Examples of org.efs.openreports.services.info.AlertInfo

    return userInfo;
  }
 
  public static AlertInfo convertToAlertInfo(ReportUserAlert userAlert)
  {
    AlertInfo alertInfo = new AlertInfo();
    alertInfo = new AlertInfo();
    alertInfo.setAlertName(userAlert.getAlert().getName());
    alertInfo.setCondition(userAlert.getCondition());
    alertInfo.setCount(userAlert.getCount());   
    alertInfo.setTriggered(userAlert.isTriggered());
       
        if (userAlert.getReport() != null)
        {
            alertInfo.setReportName(userAlert.getReport().getName());
        }
   
    return alertInfo;
  }
View Full Code Here

Examples of org.jmanage.core.alert.AlertInfo

    /**
     * Removes the next element from the Map
     * @return next element if any, null otherwise
     */
    public AlertInfo remove(){
        AlertInfo alertInfo = null;
        synchronized(alerts){
            if(alerts.size() > 0){
                String alertId =
                        (String)alerts.keySet().iterator().next();
                alertInfo = (AlertInfo)alerts.remove(alertId);
View Full Code Here

Examples of org.jmanage.core.alert.AlertInfo

        listener = new ObjectNotificationListener(){
            public void handleNotification(ObjectNotification notification,
                                           Object handback) {
                try {
                    NotificationAlertSource.this.handler.handle(
                            new AlertInfo(notification));
                } catch (Exception e) {
                    logger.log(Level.SEVERE, "Error while handling alert", e);
                }
            }
        };
View Full Code Here

Examples of org.jmanage.core.alert.AlertInfo

        EmailDelivery delivery = new EmailDelivery();

        public void run(){
            while(true){
                AlertInfo alertInfo = EmailAlerts.this.remove();
                if(alertInfo != null){
                    // todo: if deliver method can return boolean on success
                    //    we can change this to process all queued alerts
                    delivery.deliver(alertInfo);
                }
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.