Package com.google.enterprise.connector.sharepoint.generated.alerts

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

TOP

Related Classes of com.google.enterprise.connector.sharepoint.generated.alerts.AlertInfo

Copyright © 2018 www.massapicom. 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.