Package com.google.enterprise.connector.sharepoint.spiimpl

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException


    try {
      stub = (UserProfileChangeServiceSoap_BindingStub)
          service.getUserProfileChangeServiceSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to create the userprofile stub.");
    }
  }
View Full Code Here


    }

    try {
      sqlQueries = ResourceBundle.getBundle(basename, locale);
    } catch (Exception e) {
      throw new SharepointException(
          "Could not load sqlQueries.properties for locale [ " + locale + " ] ");
    }

    for (Query query : Query.values()) {
      registerQuery(query);
View Full Code Here

    try {
      stub = (SiteDataSoap_BindingStub) servInterface.getSiteDataSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, "Unable to get sitedata stub ", e);
      throw new SharepointException("Unable to get sitedata stub");
    }
  }
View Full Code Here

    try {
      stub = (BulkAuthorizationSoap_BindingStub)
          service.getBulkAuthorizationSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, "Unable to get bulk authZ soap stub ", e);
      throw new SharepointException("Unable to get bulk authZ soap stub");
    }
  }
View Full Code Here

    try {
      stub = (WebsSoap_BindingStub) service.getWebsSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to create webs stub");
    }
  }
View Full Code Here

    LOGGER.config("inInternalName[" + inPrimaryKey + "], inType[" + inType
        + "], inLastMod[" + inLastMod + "], inBaseTemplate[" + inBaseTemplate
        + "], inUrl[" + inUrl + "]");

    if (null == inPrimaryKey || null == inType) {
      throw new SharepointException("primary key [ " + inPrimaryKey
          + " ] / type [ " + inType + "] can not be null.");
    }
    key = inPrimaryKey;
    listTitle = inTitle;
    type = inType;
View Full Code Here

        new Protocol("https", socketFactory, SPConstants.SSL_DEFAULT_PORT));

    this.clientFactory = clientFactory;
    kdcServer = inKdcHost;
    if (sharepointUrl == null) {
      throw new SharepointException("sharepoint URL is null");
    }
    if (inUsername == null) {
      throw new SharepointException("Username is null.");
    }
    if (inPassword == null) {
      throw new SharepointException("Password is null.");
    }
    if (inGoogleConnectorWorkDir == null) {
      throw new SharepointException("Working Directory is null.");
    }
    if (inFeedType == null) {
      throw new SharepointException("Feed Type is null.");
    }

    sharepointUrl = sharepointUrl.trim();

    if (sharepointUrl.endsWith(SPConstants.SLASH)) {
      sharepointUrl = sharepointUrl.substring(0, sharepointUrl.lastIndexOf(SPConstants.SLASH));
    }
    // Why to construct a SharePoint URL with default port as 80.
    try {
      final URL url = new URL(sharepointUrl);
      int port = url.getPort();
      if (-1 == port) {
        port = url.getDefaultPort();
      }
      siteURL = url.getProtocol() + SPConstants.URL_SEP + url.getHost()
          + SPConstants.COLON + port + url.getPath();
    } catch (final MalformedURLException e) {
      throw new SharepointException("Failed to construct sharepoint URL...", e);
    }

    if ((inDomain == null) || inDomain.trim().equals("")) {
      LOGGER.log(Level.CONFIG, "Trying to get domain information from username specified [ "
          + inUsername
View Full Code Here

        port = url.getDefaultPort();
      }
      siteURL = url.getProtocol() + SPConstants.URL_SEP + url.getHost()
          + SPConstants.COLON + port + url.getPath();
    } catch (final MalformedURLException e) {
      throw new SharepointException("Failed to construct sharepoint URL...", e);
    }
  }
View Full Code Here

    try {
      stub = (AlertsSoap_BindingStub) alertsService.getAlertsSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to create SPAlertsWS stub.");
    }
  }
View Full Code Here

    final SiteDiscovery gspSiteDiscovery = loc;
    try {
      stub = (SiteDiscoverySoap_BindingStub) gspSiteDiscovery.getSiteDiscoverySoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to get the GSSiteDiscovery stub");
    }
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

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.