Package com.google.enterprise.connector.filenet4

Examples of com.google.enterprise.connector.filenet4.Traverser


  public static IBaseObject newBaseObject(String guid, String timeStr,
      boolean isReleasedVersion, AccessPermissionList perms)
          throws ParseException, RepositoryException {
    Date createdTime = dateFormatter.parse(timeStr);
    return new MockBaseObject(new FnId(guid), new FnId(guid), createdTime,
        false, isReleasedVersion, perms);
  }
View Full Code Here


      "{00000000-0000-0000-0000-000000000000}";

  @Before
  public void setUp() throws RepositoryException {
    now = new Date();
    doc = new FileDeleteDocument(new FnId(ZEROS_ID), now);
  }
View Full Code Here

  }

  @Override
  public IBaseObject getObject(String type, String id)
      throws RepositoryDocumentException {
    return getObject(type, new FnId(id));
  }
View Full Code Here

  private IBaseObject createObject(String guid, String timeStr,
      boolean isDeletionEvent, boolean isReleasedVersion)
          throws ParseException, RepositoryDocumentException {
    Date createdTime = dateFormatter.parse(timeStr);
    Id id = new Id(guid);
    return new MockBaseObject(new FnId(id), new FnId(id),
        createdTime, isDeletionEvent, isReleasedVersion);
  }
View Full Code Here

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

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

    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

          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

  private Map<IId, IBaseObject> getObjectMap(String[][] entries,
      List<AccessPermission>... perms) throws Exception {
    Map<IId, IBaseObject> data = new HashMap<IId, IBaseObject>();
    for (String[] entry : entries) {
      data.put(new FnId(entry[0]),
          TestObjectFactory.newBaseObject(entry[0], entry[1], true,
              TestObjectFactory.newPermissionList(perms)));
    }
    return data;
  }
View Full Code Here

  @Test
  public void initializedCheckpoint() throws RepositoryException {
    String expectedId = "{AAAAAAAA-0000-0000-0000-000000000000}";
    Checkpoint cp = new Checkpoint();
    cp.setTimeAndUuid(JsonField.LAST_MODIFIED_TIME, new Date(),
        JsonField.UUID, new FnId(expectedId));
    assertEquals(expectedId, cp.getString(JsonField.UUID));
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.filenet4.Traverser

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.