Examples of GssGetAclForUrlsResult


Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssGetAclForUrlsResult

    }
   
    // errorFetchingAcls is defined as an array instead of
    // simple boolean object since needs to be used with inline class.
    final Throwable[] errorFetchingAcls = new Throwable[1];
    GssGetAclForUrlsResult aclResult =
        Util.makeWSRequest(sharepointClientContext, aclWS,
        new Util.RequestExecutor<GssGetAclForUrlsResult>() {
      public GssGetAclForUrlsResult onRequest(final BaseWS ws)
          throws Throwable {
        return ((AclWS) ws).getAclForUrlsUsingInheritance(urls,
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssGetAclForUrlsResult

   * @param urlToDocMap Document map to update
   */
  private void fetchAclForDocumentsWithExcludedParents(String[] urls,
      Map<String, SPDocument> urlToDocMap, WebState webState)
      throws SharepointException {
    GssGetAclForUrlsResult wsResult = getAclForUrls(urls, false, false);
    if (wsResult != null) {
      processWsResponse(wsResult, urlToDocMap, webState);
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssGetAclForUrlsResult

  /**
   * To process documents with large ACLs
   */
  private void fetchAclForSPDocument(String documentUrl,
      SPDocument document, WebState webState) throws SharepointException {
    GssGetAclForUrlsResult wsResult =
        getAclForUrls(new String[] { documentUrl },
                 supportsInheritedAcls, !supportsInheritedAcls);
    if (wsResult != null) {
      Map<String, SPDocument> docMapToPass = Maps.newHashMap();
      docMapToPass.put(documentUrl, document);
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssGetAclForUrlsResult

        allUrlsForAcl[i++] = document.getUrl();
      }
      LOGGER.log(Level.CONFIG, "Getting ACL for #" + urlToDocMap.size()
          + " entities crawled from site [ " + webState.getWebUrl()
          + " ]. Document list : " + resultSet.toString());
      GssGetAclForUrlsResult wsResult = getAclForUrls(allUrlsForAcl,
          supportsInheritedAcls, !supportsInheritedAcls);
      processWsResponse(wsResult, urlToDocMap, webState);
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssGetAclForUrlsResult

   * Construct SPDocument object for representing Web application policy
   * ACL information
   */
  public SPDocument getWebApplicationPolicy(WebState webState,
      String strFeedType) {
    GssGetAclForUrlsResult result = Util.makeWSRequest(
        sharepointClientContext, aclWS,
        new Util.RequestExecutor<GssGetAclForUrlsResult>() {
      public GssGetAclForUrlsResult onRequest(final BaseWS ws)
          throws Throwable {
        return ((AclWS) ws).getAclForWebApplicationPolicy();
      }

      public void onError(final Throwable e) {
        LOGGER.log(Level.WARNING,
            "Call to getAclForWebApplicationPolicy failed.", e);
      }
    });

    FeedType feedType = FeedType.getFeedType(strFeedType);
    SPDocument webAppPolicy = null;
    if (result == null) {
      return webAppPolicy;
    }
    String siteCollectionUrlToUse;
    if (sharepointClientContext.isIncludedUrl(result.getSiteCollectionUrl())) {
      siteCollectionUrlToUse = result.getSiteCollectionUrl();
    } else {
      LOGGER.log(Level.INFO,
          "Changing web app policy URL to connector URL ["
          + sharepointClientContext.getSiteURL() + "] as policy URL [ "
          + result.getSiteCollectionUrl() + " ] is not included.");
      siteCollectionUrlToUse = sharepointClientContext.getSiteURL();
    }
    String docID = siteCollectionUrlToUse;
    if (feedType == FeedType.CONTENT_FEED) {
      docID = docID + "|{" + result.getSiteCollectionGuid().toUpperCase() +"}";
    }
    // TODO Set SPType and Last Modified correctly.
    webAppPolicy = new SPDocument(docID, siteCollectionUrlToUse,
        Calendar.getInstance(), SPConstants.NO_AUTHOR, SPConstants.NO_OBJTYPE,
        siteCollectionUrlToUse, feedType, SPType.SP2007);
    webAppPolicy.setDocumentType(DocumentType.ACL);
    Map<String, SPDocument> urlToDocMap = Maps.newHashMap();
    urlToDocMap.put(result.getSiteCollectionUrl(), webAppPolicy);
    try {
      processWsResponse(result, urlToDocMap, webState);
    } catch (SharepointException ex) {
      LOGGER.log(Level.WARNING,
          "Error processing ACL response for web application policy", ex);
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.