Examples of IBaseObject


Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

  }

  @Override
  public IBaseObject fetchObject(String type, IId id, PropertyFilter filter)
          throws RepositoryDocumentException {
    IBaseObject obj = objects.get(id);
    if (ClassNames.DOCUMENT.equals(type)) {
      return new MockDocument(obj);
    } else if (ClassNames.VERSION_SERIES.equals(type)) {
      return new MockVersionSeries(obj);
    } else {
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

          actionProp.nextValue().toString());

      String id =
          doc.findProperty(SpiConstants.PROPNAME_DOCID).nextValue().toString();
      if (ActionType.ADD.equals(actionType)) {
        IBaseObject object = os.getObject(null, id);
        assertFalse(object instanceof FileDeletionObject);
        assertTrue(checkpointContains(docList.checkpoint(),
            doc.findProperty(SpiConstants.PROPNAME_LASTMODIFIED),
            JsonField.LAST_MODIFIED_TIME));
        isAddTested = true;
      } else if (ActionType.DELETE.equals(actionType)) {
        IBaseObject object = os.getObject(null, id);
        if (object.isDeletionEvent()) {
          assertTrue(checkpointContains(docList.checkpoint(),
              doc.findProperty(SpiConstants.PROPNAME_LASTMODIFIED),
              JsonField.LAST_DELETION_EVENT_TIME));
          isDeletionEventTested = true;
        } else {
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

      String[] entries, boolean releasedVersion)
          throws ParseException, RepositoryDocumentException {
    Map<IId, IBaseObject> objectMap = new HashMap<IId, IBaseObject>();
    Calendar cal = Calendar.getInstance();
    for (String entry : entries) {
      IBaseObject object = createObject(entry, Value.calendarToIso8601(cal),
          false, releasedVersion);
      objectMap.put(new FnId(entry), new FileDeletionObject(object));
    }
    return objectMap;
  }
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

  private Map<IId, IBaseObject> generateCustomDeletion(String[][] entries,
      boolean releasedVersion)
          throws ParseException, RepositoryDocumentException {
    Map<IId, IBaseObject> objectMap = new HashMap<IId, IBaseObject>();
    for (String[] line : entries) {
      IBaseObject object =
          createObject(line[0], line[1], false, releasedVersion);
      objectMap.put(new FnId(line[0]), new FileDeletionObject(object));
    }
    return objectMap;
  }
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

        + "and ContentSize IS NOT NULL  AND (ISCLASS(d, Document) "
        + "OR ISCLASS(d, WorkflowDefinition))  ORDER BY DateLastModified,Id");
    assertEquals(1, test.getSize());
    Iterator<? extends IBaseObject> it = test.getIterator();
    while (it.hasNext()) {
      IBaseObject ibo = it.next();
      assertEquals("{" + TestConnection.docId1 + "}", ibo.get_Id().toString());
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IBaseObject

  public Document nextDocument() throws RepositoryException {
    logger.entering("FileDocumentList", "nextDocument()");

    fileDocument = null;
    if (objects.hasNext()) {
      IBaseObject object = objects.next();
      if (object.isDeletionEvent()) {
        fileDocumentToDeleteDate = object.getModifyDate();
        docIdToDelete = object.get_Id();
        if (object.isReleasedVersion()) {
          fileDocument = createDeleteDocument(object);
        } else {
          throw new SkippedDocumentException("Skip a deletion event [ID: "
              + docIdToDelete + "] of an unreleased document.");
        }
      } else if (object instanceof FileDeletionObject) {
        fileDocumentToDeleteDocsDate = object.getModifyDate();
        docIdToDeleteDocs = object.get_Id();
        if (object.isReleasedVersion()) {
          fileDocument = createDeleteDocument(object);
        } else {
          throw new SkippedDocumentException("Skip custom deletion [ID: "
              + docIdToDeleteDocs + "] because document is not a released "
              + "version.");
        }
      } else {
        fileDocumentDate = object.getModifyDate();
        docId = object.get_Id();
        fileDocument = createAddDocument(object);
      }
    } else {
      logger.finest("Processing ACL document");
      fileDocument = acls.pollFirst();
View Full Code Here

Examples of gov.nysenate.openleg.model.IBaseObject

        this.id = id;
    }

    @Override
    public void fillRequest() throws ApiRequestException {
        IBaseObject so = Application.getLucene().getSenateObject(id, type);

        if(so == null) {
            throw new ApiRequestException(TextFormatter.append("couldn't find id: ", id, " of type: ", type));
        }
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.