Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.SocialUserProfileDocument


        return updatedDoc;
      }
      String userAccount = updatedDoc.getUserKey().toString();
      if (!Strings.isNullOrEmpty(userAccount)) {
        try {
          SocialUserProfileDocument updatedProfile =
              service.getProfileByName(userAccount);
          if (updatedProfile != null) {
            batchCount++;
            return updatedProfile;
          }
View Full Code Here


    assertNotNull(docList);
    Document doc;
    while ((doc = docList.nextDocument()) != null) {
      assertTrue(doc.getClass().toString(),
          doc instanceof SocialUserProfileDocument);
      SocialUserProfileDocument socialDoc = (SocialUserProfileDocument) doc;
      // I'm using getUserContent to simplify the comparisons.
      // MockUserProfileGenerator happens to return bare usernames here.
      names.add(socialDoc.getUserContent().toString());

      Property propDocId = doc.findProperty(SpiConstants.PROPNAME_DOCID);
      assertNotNull(propDocId);
      String docid = propDocId.nextValue().toString();
      assertTrue(docid, docid.startsWith("social"));
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.SocialUserProfileDocument

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.