Package com.google.enterprise.connector.sharepoint.client

Examples of com.google.enterprise.connector.sharepoint.client.UserProfileChangeHelper


  public List<SharePointSocialUserProfileDocument> getUpdatedDocuments(
      SharePointSocialCheckpoint checkpoint) throws SharepointException {
    List<SharePointSocialUserProfileDocument> updatedDocuments =
        new ArrayList<SharePointSocialUserProfileDocument>();
    SharepointClientContext spContext =  ctxt.getSpClientContext();
    UserProfileChangeHelper userProfileChange =
        new UserProfileChangeHelper(spContext);
    try {
      Map<String, ActionType> updatedProfiles =
          userProfileChange.getChangedUserProfiles(checkpoint);
      if (updatedProfiles != null && updatedProfiles.size() > 0) {
        LOGGER.info("Number of Changed User Profiles = "
            + updatedProfiles.size());
        for (String updatedUserProfile : updatedProfiles.keySet()) {
          ActionType action = updatedProfiles.get(updatedUserProfile);
View Full Code Here


  }

  public String getCurrentChangeTokenOnSharePoint()
      throws SharepointException {
    SharepointClientContext spContext =  ctxt.getSpClientContext();
    UserProfileChangeHelper userProfileChange =
        new UserProfileChangeHelper(spContext);
    if (userProfileChange != null) {
      try {
        // If no updates then last change token and
        // current change token is same
        return userProfileChange.getCurrentChangeToken();
      } catch (Exception e) {
        LOGGER.log(Level.WARNING, e.getMessage(), e);
        // In case of error. Return null to ensure connector attempts
        // to get updates with existing Change Token
        return null;
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.client.UserProfileChangeHelper

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.