Package com.documentum.fc.client

Examples of com.documentum.fc.client.IDfSession


  }

  @Override
  public ISession getSession(String docbase) throws RepositoryLoginException,
      RepositoryException {
    IDfSession dfSession = null;
    try {
      dfSession = dfSessionManager.getSession(docbase);
      if (logger.isLoggable(Level.FINER)) {
        IDfLoginInfo idfLoginInfo = dfSessionManager.getIdentity(docbase);
        logger.finer("Session for user: " + idfLoginInfo.getUser()
            + ": " + dfSession + " (id=" + dfSession.getSessionId() + ')');
      }
    } catch (DfIdentityException e) {
      throw new RepositoryLoginException(e);
    } catch (DfAuthenticationException e) {
      throw new RepositoryLoginException(e);
View Full Code Here


  }

  @Override
  public ISession newSession(String docbase) throws RepositoryLoginException,
      RepositoryException {
    IDfSession dfSession = null;
    try {
      dfSession = dfSessionManager.newSession(docbase);
    } catch (DfIdentityException e) {
      throw new RepositoryLoginException(e);
    } catch (DfAuthenticationException e) {
View Full Code Here

    return new DmSession(dfSession);
  }

  @Override
  public void release(ISession session) {
    IDfSession dfSession = ((DmSession) session).getDfSession();
    logger.finest("before session released: " + dfSession);
    dfSessionManager.release(dfSession);
    logger.finest("after session released");
  }
View Full Code Here

    if (!(session instanceof DmSession)) {
      throw new IllegalArgumentException();
    }

    DmSession dmSession = (DmSession) session;
    IDfSession idfSession = dmSession.getDfSession();

    if (logger.isLoggable(Level.FINEST))
      logger.finest("value of IdfQuery " + idfQuery.getDQL());

    IDfCollection dfCollection;
View Full Code Here

  private String getAnExistingExcelObjectId(ISession session)
      throws DfException {
    String idString;
    DmSession dctmSession = (DmSession) session;
    IDfSession dfSession = dctmSession.getDfSession();
    IDfId id = dfSession
        .getIdByQualification("dm_sysobject where a_content_type = 'excel8book'");
    idString = id.toString();

    return idString;
  }
View Full Code Here

  private String getAnExistingPDFObjectId(ISession session)
      throws DfException {
    // move into real DFC to find a docid that's in this docbase
    String idString;
    DmSession dctmSession = (DmSession) session;
    IDfSession dfSession = dctmSession.getDfSession();
    IDfId id = dfSession
        .getIdByQualification("dm_sysobject where a_content_type = 'pdf'");
    idString = id.toString();
    return idString;
  }
View Full Code Here

  private String getAnExistingAccessObjectId(ISession session)
      throws DfException {
    // move into real DFC to find a docid that's in this docbase
    String idString;
    DmSession dctmSession = (DmSession) session;
    IDfSession dfSession = dctmSession.getDfSession();
    IDfId id = dfSession
        .getIdByQualification("dm_sysobject where a_content_type = 'ms_access7'");
    idString = id.toString();

    return idString;
  }
View Full Code Here

  private String getAnExistingWordObjectId(ISession session)
      throws DfException {
    // move into real DFC to find a docid that's in this docbase
    String idString;
    DmSession dctmSession = (DmSession) session;
    IDfSession dfSession = dctmSession.getDfSession();
    IDfId id = dfSession
        .getIdByQualification("dm_sysobject where a_content_type = 'msw8'");
    idString = id.toString();

    return idString;
  }
View Full Code Here

TOP

Related Classes of com.documentum.fc.client.IDfSession

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.