Examples of replaceItemValue()


Examples of com.google.enterprise.connector.notes.client.NotesDocument.replaceItemValue()

      if (systemDoc == null) {
        LOGGER.logp(Level.SEVERE, CLASS_NAME, METHOD,
            "System configuration document not found.");
        return;
      }
      systemDoc.replaceItemValue(NCCONST.SITM_LASTCACHEUPDATE, now);
      systemDoc.save(true);
      LOGGER.logp(Level.INFO, CLASS_NAME, METHOD,
          "Directory Cache last update time set to " + now.toString());
    } catch (RepositoryException e) {
      LOGGER.log(Level.SEVERE, CLASS_NAME, e);
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.replaceItemValue()

    LOGGER.entering(CLASS_NAME, METHOD);
    LOGGER.logp(Level.FINER, CLASS_NAME, METHOD,
        "Send deletion request to GSA for " + googleDocId);
    NotesDocument DeleteReq = cdb.createDocument();
    DeleteReq.appendItemValue(NCCONST.ITMFORM, NCCONST.FORMCRAWLREQUEST);
    DeleteReq.replaceItemValue(NCCONST.ITM_ACTION, ActionType.DELETE.toString());
    DeleteReq.replaceItemValue(NCCONST.ITM_DOCID, googleDocId);
    DeleteReq.replaceItemValue(NCCONST.NCITM_STATE, NCCONST.STATEFETCHED);
    DeleteReq.save(true);
    DeleteReq.recycle();
    LOGGER.exiting(CLASS_NAME, METHOD);
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.replaceItemValue()

    LOGGER.logp(Level.FINER, CLASS_NAME, METHOD,
        "Send deletion request to GSA for " + googleDocId);
    NotesDocument DeleteReq = cdb.createDocument();
    DeleteReq.appendItemValue(NCCONST.ITMFORM, NCCONST.FORMCRAWLREQUEST);
    DeleteReq.replaceItemValue(NCCONST.ITM_ACTION, ActionType.DELETE.toString());
    DeleteReq.replaceItemValue(NCCONST.ITM_DOCID, googleDocId);
    DeleteReq.replaceItemValue(NCCONST.NCITM_STATE, NCCONST.STATEFETCHED);
    DeleteReq.save(true);
    DeleteReq.recycle();
    LOGGER.exiting(CLASS_NAME, METHOD);
  }
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.replaceItemValue()

        "Send deletion request to GSA for " + googleDocId);
    NotesDocument DeleteReq = cdb.createDocument();
    DeleteReq.appendItemValue(NCCONST.ITMFORM, NCCONST.FORMCRAWLREQUEST);
    DeleteReq.replaceItemValue(NCCONST.ITM_ACTION, ActionType.DELETE.toString());
    DeleteReq.replaceItemValue(NCCONST.ITM_DOCID, googleDocId);
    DeleteReq.replaceItemValue(NCCONST.NCITM_STATE, NCCONST.STATEFETCHED);
    DeleteReq.save(true);
    DeleteReq.recycle();
    LOGGER.exiting(CLASS_NAME, METHOD);
  }
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

      assertNotNull("user has no groups", userGroups.get(id));

      // Change the result of the user selection formula. Call
      // checkUserDeletions and verify that the user was removed
      // from the user cache.
      doc.replaceItemValue(
          "evaluate_" + connectorSession.getUserSelectionFormula(),
          new NotesItemMock("name",
              "evaluate_" + connectorSession.getUserSelectionFormula(),
              "type", NotesItem.TEXT, "values", 0.0));
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

      getGroupData();
      getUserData();
      assertUserDoesNotExist("anakin");
      assertNull("user still has groups", userGroups.get(id));
    } finally {
      doc.replaceItemValue(
          "evaluate_" + connectorSession.getUserSelectionFormula(),
          new NotesItemMock("name",
              "evaluate_" + connectorSession.getUserSelectionFormula(),
              "type", NotesItem.TEXT, "values", 1.0));
    }
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

    try {
      assertUserExists("kenobi");
      assertUserDoesNotExist("ben");

      // Change the user name.
      doc.replaceItemValue(
          "evaluate_" + connectorSession.getUserNameFormula(),
          new NotesItemMock("name",
            "evaluate_" + connectorSession.getUserNameFormula(),
            "type", NotesItem.TEXT, "values", "ben"));
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

    return crawlDoc;
  }

  private NotesDocumentMock getAttachmentDoc() throws Exception {
    NotesDocumentMock crawlDoc = getCrawlDoc(false);
    crawlDoc.replaceItemValue(NCCONST.ITM_DOCID,
        String.format(NCCONST.SITM_ATTACHMENTDOCID,
        "http://host:42/replicaid/0/unid", "attachmentUnid"));
    crawlDoc.replaceItemValue(NCCONST.ITM_DISPLAYURL,
        String.format(NCCONST.SITM_ATTACHMENTDISPLAYURL,
        "http://host:42/replicaid/0/unid", "filename.doc"));
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

  private NotesDocumentMock getAttachmentDoc() throws Exception {
    NotesDocumentMock crawlDoc = getCrawlDoc(false);
    crawlDoc.replaceItemValue(NCCONST.ITM_DOCID,
        String.format(NCCONST.SITM_ATTACHMENTDOCID,
        "http://host:42/replicaid/0/unid", "attachmentUnid"));
    crawlDoc.replaceItemValue(NCCONST.ITM_DISPLAYURL,
        String.format(NCCONST.SITM_ATTACHMENTDISPLAYURL,
        "http://host:42/replicaid/0/unid", "filename.doc"));
    return crawlDoc;
  }
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.mock.NotesDocumentMock.replaceItemValue()

        crawlDoc.getItemValueString(NCCONST.NCITM_DOCAUTHORREADERS));

    item = new NotesItemMock("name", "readers",
        "type", NotesItem.TEXT, "values", "reader 1", "reader 2");
    item.setReaders(true);
    srcDoc.replaceItemValue("readers", item);
    crawlerThread.getDocumentReaderNames(crawlDoc, srcDoc);
    assertEquals("reader 1;reader 2",
        crawlDoc.getFirstItem(NCCONST.NCITM_DOCAUTHORREADERS).getText(100));

    item = new NotesItemMock("name", "authors", "type", NotesItem.TEXT,
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.