Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.RepositoryException


  @Override
  public String getDescription() throws RepositoryException {
    try {
      return idfType.getDescription();
    } catch (DfException de) {
      throw new RepositoryException(de);
    }
  }
View Full Code Here


    } catch (DfAuthenticationException e) {
      throw new RepositoryLoginException(e);
    } catch (DfPrincipalException e) {
      throw new RepositoryLoginException(e);
    } catch (DfServiceException e) {
      throw new RepositoryException(e);
    } catch (DfException e) {
      throw new RepositoryException(e);
    }
    return new DmSession(dfSession);
  }
View Full Code Here

    } catch (DfAuthenticationException e) {
      throw new RepositoryLoginException(e);
    } catch (DfPrincipalException e) {
      throw new RepositoryLoginException(e);
    } catch (DfServiceException e) {
      throw new RepositoryException(e);
    } catch (NoClassDefFoundError e) {
      throw new RepositoryException(e);
    }
    return new DmSession(dfSession);
  }
View Full Code Here

  @Override
  public IClient getLocalClient() throws RepositoryException {
    try {
      return new DmClient(idfClientX.getLocalClient());
    } catch (DfException e) {
      throw new RepositoryException(e);
    } catch (Error e) {
      // DFC 5.3 sometimes throws exceptions wrapped in an Error here.
      Throwable cause = e.getCause();
      if (cause != null)
        throw new RepositoryException(cause);
      else
        throw e;
    }
  }
View Full Code Here

  public void setFileEx(String fileName, String formatName)
      throws RepositoryException {
    try {
      idfDocument.setFileEx(fileName, formatName, 0, null);
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
  }
View Full Code Here

  public void setObjectName(String name) throws RepositoryException {
    try {
      idfDocument.setObjectName(name);
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
  }
View Full Code Here

  public void setContentType(String contentType) throws RepositoryException {
    try {
      idfDocument.setContentType(contentType);
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
  }
View Full Code Here

  public void save() throws RepositoryException {
    try {
      idfDocument.save();
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
  }
View Full Code Here

  public void destroyAllVersions() throws RepositoryException {
    try {
      idfDocument.destroyAllVersions();
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
  }
View Full Code Here

    IDfCollection dfCollection;
    try {
      dfCollection = idfQuery.execute(idfSession, queryType);
    } catch (DfException de) {
      throw new RepositoryException(de);
    }
    return new DmCollection(dfCollection);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.RepositoryException

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.