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

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


      LOGGER.log(Level.FINE, "entry already exists in user data store for the group name ["
          + param.getValue(GROUP_NAME)
          + "], and user name ["
          + param.getValue(USER_NAME) + "]");
    } catch (Throwable e) {
      throw new SharepointException("Failed to add the record for parameter [ "
          + param.getValue(GROUP_NAME) + "], user name ["
          + param.getValue(USER_NAME) + "]", e);
    }
    return count;
  }
View Full Code Here


    globalState.startRecrawl();

    if (null == nextWeb) {
      nextWeb = updateGlobalState(globalState, sharepointClientContext.getSiteURL());
      if (null == nextWeb) {
        throw new SharepointException(
            "Starting WebState for the current traversal can not be determined.");
      }
      if (null != webCrawlInfoFetcher) {
        nextWeb.setWebCrawlInfo(webCrawlInfoFetcher.getCurrentWebCrawlInfo());
      }
View Full Code Here

      try {
        stub = (ListsSoap_BindingStub) listsService.getListsSoap();
      } catch (final ServiceException e) {
        LOGGER.log(Level.WARNING, "Unable to get the list stub", e);
        throw new SharepointException("Unable to get the list stub");
      }
  }
View Full Code Here

        MessageFormat.format(queryTemplate, null, groupBuffer.toString());

    try {
      return executeGroupMembershipQuery(queryText, rowMapper, 1);
    } catch (Throwable t) {
      throw new SharepointException("Query execution failed while getting "
          + "the membership info of a given user and AD groups.", t);
    }
  }
View Full Code Here

        namedParams[count++] = query.createParameter(membership.getNamespace());
      }
      break;

    default:
      throw new SharepointException("Query Not Supported!! ");
    }
    return namedParams;
  }
View Full Code Here

  private WebState(final ClientFactory clientFactory,
      String webId, String webURL, String title,
      String lastCrawledAt, DateTime insertionTime, SPType spType)
      throws SharepointException {
    if (null == webId || null == webURL || null == spType) {
      throw new SharepointException("webID [ " + webId + "] / webUrl [ "
          + webURL + "] / spType [ " + spType + " ] can not be null. ");
    }
    this.clientFactory = clientFactory;
    this.webId = webId;
    this.webUrl = webURL;
View Full Code Here

    spType = spContext.checkSharePointType(spURL);
    if (null == spType) {
      LOGGER.log(Level.WARNING, "Unknown SharePoint version [ " + spType
          + " ] URL [ " + spURL + " ]. WebState creation failed. ");
      spContext.logExcludedURL("[ " + spURL + " ] Unknown SharePoint version. ");
      throw new SharepointException("Unknown SharePoint version.");
    }

    webId = webUrl = spURL;
    spContext.setSiteURL(webUrl);
    final WebsHelper webs = new WebsHelper(spContext);
    title = webs.getWebTitle(webUrl, spType);
    if (FeedType.CONTENT_FEED == spContext.getFeedType()
        && SPType.SP2003 == spType) {
      LOGGER.warning("excluding "
              + spURL
              + " because it is a SP2003 site and the feedType being used is content. Content feed is not supported on SP2003. ");
      spContext.logExcludedURL("[ "
              + spURL
              + " ] it is a SP2003 site and the feedType being used is content. Content feed is not supported on SP2003. ");
      throw new SharepointException(
          "Unsupported SharePoint version for content feed being used.");
    }
  }
View Full Code Here

   */
  public SiteDiscoveryHelper(
      final SharepointClientContext inSharepointClientContext, String siteUrl)
      throws SharepointException {
    if (null == inSharepointClientContext) {
      throw new SharepointException("SharePointClient context cannot be null.");
    }
    sharepointClientContext = inSharepointClientContext;
    if (null == siteUrl) {
      siteUrl = sharepointClientContext.getSiteURL();
    }
View Full Code Here

   */
  public BulkAuthorizationHelper(
      final SharepointClientContext inSharepointClientContext)
      throws SharepointException {
    if (null == inSharepointClientContext) {
      throw new SharepointException("SharePointClient context cannot be null ");
    }

    sharepointClientContext = inSharepointClientContext;
    bulkAuthWS = sharepointClientContext.getClientFactory()
        .getBulkAuthorizationWS(sharepointClientContext);
View Full Code Here

   * @throws SharepointException
   */
  public WebsHelper(final SharepointClientContext inSharepointClientContext)
      throws SharepointException {
    if (null == inSharepointClientContext) {
      throw new SharepointException("SharePointClient context cannot be null.");
    }
    sharepointClientContext = inSharepointClientContext;
    websWS = sharepointClientContext.getClientFactory().getWebsWS(
        sharepointClientContext);

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.