Examples of ISysObject


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

  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");

    DctmSysobjectDocument dctmSpm = new DctmSysobjectDocument(
        traversalManager, session, DmInitialize.DM_ID1, null, lastModifDate,
        SpiConstants.ActionType.ADD, null);
View Full Code Here

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

  }

  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,
        SpiConstants.ActionType.ADD, null);
View Full Code Here

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

    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.ISysObject

  }

  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) {
        sessionManager.release(session);
View Full Code Here

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

  }

  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.ISysObject

  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.ISysObject

  }

  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

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

  }

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

    Assert.assertEquals(dctmForm.getMIMEType(), "application/pdf");
  }
View Full Code Here

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

  }

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

    Assert.assertEquals(dctmForm.getMIMEType(), "application/vnd.ms-excel");
  }
View Full Code Here

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

  }

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

    Assert.assertEquals(dctmForm.getMIMEType(), "application/msword");
  }
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.