Package com.google.enterprise.connector.spi

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


  @Override
  public int getDocbaseCount() throws RepositoryException {
    try {
      return docbaseMap.getDocbaseCount();
    } catch (DfException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here


  @Override
  public String getDocbaseName(int i) throws RepositoryException {
    try {
      return docbaseMap.getDocbaseName(i);
    } catch (DfException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

          }
        }
      }
    } catch (IllegalArgumentException e) {
      LOGGER.severe("Invalid Checkpoint: " + checkpoint);
      throw new RepositoryException("Invalid Checkpoint: " + checkpoint, e);
    } catch (JSONException e) {
      LOGGER.severe("Invalid Checkpoint: " + checkpoint);
      throw new RepositoryException("Invalid Checkpoint: " + checkpoint, e);
    } catch (ParseException e) {
      LOGGER.severe("Invalid Checkpoint: " + checkpoint);
      throw new RepositoryException("Invalid Checkpoint: " + checkpoint, e);
    }

    oldAclId = aclId;
    if (insertIndex != -1) {
      oldInsertId = getInsertId();
View Full Code Here

      String result = jo.toString();
      LOGGER.fine("Created Checkpoint: " + result);
      return result;
    } catch (JSONException e) {
      LOGGER.severe("JSON problem creating Checkpoint: " + e.toString());
      throw new RepositoryException("JSON problem creating Checkpoint", e);
    }
  }
View Full Code Here

      testWhereClause(query, sess, rootType, includedTypes, candidate);
      isFound = isFound || candidate.equals(whereClause);
    }

    if (!isFound) {
      throw new RepositoryException("[whereClauseNotUsed]");
    }

    if (whereClause != null)
      configData.put(WHERECLAUSE, whereClause);
  }
View Full Code Here

    ICollection collec = query.execute(sess, IQuery.EXECUTE_READ_QUERY);
    try {
      if (!collec.next()) {
        // TODO: The query is in the logs, but no indication of which
        // WHERE clause failed appears in the ConfigureResponse.
        throw new RepositoryException("[additionalTooRestrictive] " + dql);
      }
    } finally {
      if (collec.getState() != ICollection.DF_CLOSED_STATE) {
        collec.close();
      }
View Full Code Here

    }
  }

  private void testWebtopUrl(String url) throws RepositoryException {
    if (url == null || url.length() == 0) {
      throw new RepositoryException("[webtop_display_url_error]");
    }
    logger.config("test connection to the webtop server: " + url);
    try {
      urlValidator.validate(url);
    } catch (UrlValidatorException e) {
      throw new RepositoryException(
          "[status] Http request returned a " + e.getStatusCode()
          + " status");
    } catch (GeneralSecurityException e) {
      throw new RepositoryException("[HttpException]", e);
    } catch (IllegalArgumentException e) {
      // TODO(jl1615): There's no resource bundle entry for this one,
      // unlike HttpException and IOException.
      throw new RepositoryException("[IllegalArgumentException]", e);
    } catch (IOException e) {
      throw new RepositoryException("[IOException]", e);
    }
  }
View Full Code Here

    } catch (InstantiationException e) {
      Throwable cause = e.getCause();
      if (cause instanceof RepositoryException)
        throw (RepositoryException) cause;
      else
        throw new RepositoryException(e);
    } catch (Throwable e) {
      throw new RepositoryException(e);
    }
    return cl;
  }
View Full Code Here

  protected MockDmCollection(QueryResult mjQueryResult)
      throws RepositoryException {
    try {
      collection = mjQueryResult.getNodes();
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

      }

      Property tmp = currentNode.getProperty(colName);
      return tmp.getString();
    } catch (PathNotFoundException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
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.