Examples of GetUserProfileByIndexResult


Examples of com.google.enterprise.connector.sharepoint.generated.sp2003.userprofileservice.GetUserProfileByIndexResult

  public void setTimeout(final int timeout) {
  }

  @Override
  public GetUserProfileByIndexResult getUserProfileByIndex(int index) {
    return new GetUserProfileByIndexResult();
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.sp2003.userprofileservice.GetUserProfileByIndexResult

   *
   * @return if the endpoint being used is an SPS site
   * @throws SharepointException
   */
  public boolean isSPS() throws SharepointException {
    final GetUserProfileByIndexResult result = getUserProfileByIndex(0);
    return result != null;
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.sp2003.userprofileservice.GetUserProfileByIndexResult

    final Set<String> personalSitesSet = new TreeSet<String>();
    final Collator collator = Util.getCollator();

    int index = 0;
    while (index >= 0) {
      final GetUserProfileByIndexResult result = getUserProfileByIndex(index);

      if ((result == null) || (result.getUserProfile() == null)) {
        break;
      }

      final PropertyData[] data = result.getUserProfile();
      if (data == null) {
        break;
      }

      for (PropertyData element : data) {
        final String name = element.getName();
        if (collator.equals(personalSpaceTag, name)) {
          final String propVal = element.getValue();// e.g.
          // /personal/administrator/
          if (propVal == null) {
            continue;
          }
          String strURL = Util.getWebApp(sharepointClientContext.getSiteURL())
              + propVal;

          if (strURL.endsWith(SPConstants.SLASH)) {
            strURL = strURL.substring(0, strURL.lastIndexOf(SPConstants.SLASH));
          }
          if (sharepointClientContext.isIncludedUrl(strURL, LOGGER)) {
            personalSitesSet.add(strURL);
            LOGGER.log(Level.CONFIG, "Personal Site: " + strURL);
          }
        }
      }
      final String next = result.getNextValue();
      index = Integer.parseInt(next);
    }
    if (personalSitesSet.size() > 0) {
      LOGGER.info("Discovered " + personalSitesSet.size()
          + " personal sites to crawl.");
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.sp2010.userprofileservice.GetUserProfileByIndexResult

    // Create a sparse map of indexes: 2, 4, 6, etc. As with SharePoint,
    // asking for a missing entry returns the next higher one. We skip
    // index 0 just to be mean.
    int arrayIndex = getArrayIndex(index);

    GetUserProfileByIndexResult profile = new GetUserProfileByIndexResult();
    profile.setUserProfile(getProfileData(arrayIndex));
    profile.setNextValue(Integer.toString(getNextValue(arrayIndex)));
    return profile;
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.userprofileservice.GetUserProfileByIndexResult

  public void setTimeout(final int timeout) {
  }

  @Override
  public GetUserProfileByIndexResult getUserProfileByIndex(int index) {
    return new GetUserProfileByIndexResult();
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.userprofileservice.GetUserProfileByIndexResult

    final boolean[] isSPS = new boolean[1];
    Util.makeWSRequest(sharepointClientContext, userProfileWS,
        new Util.RequestExecutor<GetUserProfileByIndexResult>() {
      public GetUserProfileByIndexResult onRequest(final BaseWS ws)
          throws Throwable {
        GetUserProfileByIndexResult result =
            ((UserProfile2007WS) ws).getUserProfileByIndex(0);
        isSPS[0] = true;
        return result;
      }
     
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.userprofileservice.GetUserProfileByIndexResult

    // getting next profile and so on]
    // [End Loop]

    int index = 0;
    while (index >= 0) {
      final GetUserProfileByIndexResult result = getUserProfileByIndex(index);

      if ((result == null) || (result.getUserProfile() == null)) {
        break;
      }

      final PropertyData[] data = result.getUserProfile();
      if (data == null) {
        break;
      }

      String space = null;
      for (PropertyData element : data) {
        try {
          final String name = element.getName();
          if (collator.equals(personalSpaceTag, name)) {
            final ValueData[] vd = element.getValues();
            if ((vd == null) || (vd.length < 1)) {
              continue;
            }
            space = (String) vd[0].getValue();
            String strMySiteBaseURL = sharepointClientContext.getMySiteBaseURL();
            if (strMySiteBaseURL.endsWith(SPConstants.SLASH)) {
              strMySiteBaseURL = strMySiteBaseURL.substring(0, strMySiteBaseURL.lastIndexOf(SPConstants.SLASH));
            }
            String strURL = strMySiteBaseURL + space;
            if (strURL.endsWith(SPConstants.SLASH)) {
              strURL = strURL.substring(0, strURL.lastIndexOf(SPConstants.SLASH));
            }
            if (sharepointClientContext.isIncludedUrl(strURL, LOGGER)) {
              lstAllPersonalSites.add(strURL);
              LOGGER.log(Level.CONFIG, "Personal Site: " + strURL);
            }
          }
        } catch (final Exception e) {
          LOGGER.log(Level.WARNING, e.getMessage(), e);
          continue;
        }
      }
      final String next = result.getNextValue();
      index = Integer.parseInt(next);
    }

    if (lstAllPersonalSites.size() > 0) {
      LOGGER.info("Discovered " + lstAllPersonalSites.size()
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.generated.userprofileservice.GetUserProfileByIndexResult

   */
  public Set<String> getMyLinks() throws SharepointException {
    final Set<String> myLinksSet = new TreeSet<String>();
    int index = 0;
    while (index >= 0) {
      final GetUserProfileByIndexResult result = getUserProfileByIndex(index);

      if ((result == null) || (result.getUserProfile() == null)) {
        break;
      }

      final QuickLinkData[] links = result.getQuickLinks();

      if (links == null) {
        break;
      }
      String url = null;

      for (QuickLinkData element : links) {
        url = element.getUrl();
        if (sharepointClientContext.isIncludedUrl(url, LOGGER)) {
          myLinksSet.add(url);
        }
      }

      final String next = result.getNextValue();
      index = Integer.parseInt(next);
    }

    if (myLinksSet.size() > 0) {
      LOGGER.info(myLinksSet.size() + " MyLinks found.");
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.