Package com.google.enterprise.connector.sharepoint.generated.sp2003.userprofileservice

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


   *
   * @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

    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

      LOGGER.log(Level.CONFIG, "Endpoint set to: " + endpoint);

      final UserProfileServiceLocator loc = new UserProfileServiceLocator();
      loc.setUserProfileServiceSoapEndpointAddress(endpoint);

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

      sharepointClientContext = inSharepointClientContext;
      endpoint = Util.encodeURL(sharepointClientContext.getSiteURL())
          + SPConstants.USERPROFILEENDPOINT;
      LOGGER.log(Level.CONFIG, "Endpoint set to: " + endpoint);

      final UserProfileServiceLocator loc = new UserProfileServiceLocator();
      loc.setUserProfileServiceSoapEndpointAddress(endpoint);

      final UserProfileService service = loc;
      try {
        stub = (UserProfileServiceSoap_BindingStub) service.getUserProfileServiceSoap();
      } catch (final ServiceException e) {
View Full Code Here

    // 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

TOP

Related Classes of com.google.enterprise.connector.sharepoint.generated.sp2003.userprofileservice.GetUserProfileByIndexResult

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.