Examples of IId


Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

        sessionManager);
  }

  public void testGetPropertyNames() throws RepositoryException {
    ISession session = sessionManager.getSession(DmInitialize.DM_DOCBASE);
    IId id = dctmClientX.getId(DmInitialize.DM_ID1);

    ISysObject object = (ISysObject) session.getObject(id);

    ITime lastModifDate = object.getTime("r_modify_date");
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    assertEquals(8, dctmSpm.getPropertyNames().size());
  }

  public void testFindProperty() throws RepositoryException {
    ISession session = sessionManager.getSession(DmInitialize.DM_DOCBASE);
    IId id = dctmClientX.getId(DmInitialize.DM_ID2);
    ISysObject object = (ISysObject) session.getObject(id);
    ITime lastModifDate = object.getTime("r_modify_date");

    DctmSysobjectDocument dctmSpm = new DctmSysobjectDocument(
        traversalManager, session, DmInitialize.DM_ID2, null, lastModifDate,
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

  /*
   * Fetches the ACL object
   */
  private IAcl fetchAcl(String docId) throws RepositoryDocumentException {
    IId id = traversalManager.getClientX().getId(docId);
    return (IAcl) session.getObject(id);
  }
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    super.setUp();
    clientX = new DmClientX();
  }

  public void testGetId() {
    IId id = clientX.getId("xxxxxxxxxxxxxxxx");
    Assert.assertTrue(id instanceof DmId);
  }
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    session = sessionManager.getSession(docbase);
  }

  public void testGetObject() throws RepositoryException, DfException {
    try {
      IId id = dctmClientX.getId(DmInitialize.DM_ID1);
      IPersistentObject object = session.getObject(id);

      Assert.assertNotNull(object);
      Assert.assertTrue(object instanceof DmSysObject);
    } finally {
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    loginInfo.setUser(DmInitialize.DM_LOGIN_OK1);
    loginInfo.setPassword(DmInitialize.DM_PWD_OK1);
    sessionManager.setIdentity(DmInitialize.DM_DOCBASE, loginInfo);
    try {
      session = sessionManager.newSession(DmInitialize.DM_DOCBASE);
      IId id = dctmClientX.getId(DmInitialize.DM_ID1);
      ISysObject object = (ISysObject) session.getObject(id);
      dctmForm = (DmFormat) object.getFormat();
    } finally {
      if (session != null) {
        sessionManager.release(session);
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    session = sessionManager.getSession(DmInitialize.DM_DOCBASE);
  }

  public void testGetObject() throws RepositoryException, DfException {
    try {
      IId id = dctmClientX.getId(DmInitialize.DM_ID1);
      ISysObject object = (ISysObject) session.getObject(id);
      Assert.assertNotNull(object);
      Assert.assertTrue(object instanceof DmSysObject);
    } finally {
      if (session != null) {
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    session = sessionManager.getSession(docbase);
  }

  public void testCanIndexExcel() throws DfException, RepositoryException {
    String idString = getAnExistingExcelObjectId(session);
    IId id = dctmClientX.getId(idString);
    ISysObject object = (ISysObject) session.getObject(id);
    IFormat dctmForm = (DmFormat) object.getFormat();

    Assert.assertNotNull(dctmForm);
    Assert.assertTrue(dctmForm.canIndex());
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

  }

  public void testCanIndexAccess() throws DfException, RepositoryException {
    String idString = getAnExistingAccessObjectId(session);

    IId id = dctmClientX.getId(idString);
    ISysObject object = (ISysObject) session.getObject(id);
    IFormat dctmForm = (DmFormat) object.getFormat();

    Assert.assertNotNull(dctmForm);
    Assert.assertFalse(dctmForm.canIndex());
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IId

    Assert.assertFalse(dctmForm.canIndex());
  }

  public void testCanIndexPDF() throws DfException, RepositoryException {
    String idString = getAnExistingPDFObjectId(session);
    IId id = dctmClientX.getId(idString);
    ISysObject object = (ISysObject) session.getObject(id);
    IFormat dctmForm = (DmFormat) object.getFormat();

    Assert.assertNotNull(dctmForm);
    Assert.assertTrue(dctmForm.canIndex());
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.