Package com.google.enterprise.connector.spi

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


    @Override
    public IClient getLocalClient() {
      return new MockDmClient() {
        @Override
        public IDocbaseMap getDocbaseMap() throws RepositoryException {
          throw new RepositoryException(
              new RuntimeException(getMessage()));
        }
      };
    }
View Full Code Here


      JSONArray dates = jsonObj.getJSONArray("lastModified");
      String insertDate = (dates.isNull(0)) ? "" : dates.getString(0);
      return (Strings.isNullOrEmpty(aclId) && Strings.isNullOrEmpty(insertId)
          && Strings.isNullOrEmpty(insertDate));
    } catch (JSONException e) {
      throw new RepositoryException("Invalid Checkpoint: " + checkpoint, e);
    }
  }
View Full Code Here

    if (i == 0) {
      return DmInitialize.DM_DOCBASE;
    } else if (i < count) {
      return "docbase_" + String.valueOf(i);
    } else {
      throw new RepositoryException(
          new RuntimeException("Invalid docbase map index."));
    }
  }
View Full Code Here

      db.recycle();
      notesDocManager = new NotesDocumentManager(this);
    } catch (Exception e) {
      LOGGER.log(Level.SEVERE, CLASS_NAME, e);
      throw new RepositoryException("NotesConnectorSession error", e);
    } finally {
      closeNotesSession(ns);
    }

    // If we could not validate our config then let the connector
    // manager know session creation has failed.
    if (!configValidated) {
      LOGGER.logp(Level.SEVERE, CLASS_NAME, METHOD,
          "!!!!!   Invalid Notes Connector System Configuration. !!!!!");
      throw new RepositoryException("Invalid system setup document.");
    }
    LOGGER.exiting(CLASS_NAME, METHOD);
  }
View Full Code Here

      // Init the thread and try to login to validate credentials are correct
      connector.getSessionFactory().getNotesThread().sinitThread();
      ns = connector.getSessionFactory().createSessionWithFullAccess(password);
    } catch (Exception e) {
      LOGGER.log(Level.SEVERE, CLASS_NAME, e);
      throw new RepositoryException("Failed to create Notes Session", e);
    } finally {
      LOGGER.exiting(CLASS_NAME, METHOD);
    }
    return ns;
  }
View Full Code Here

      logger.log(Level.FINE, "Lookup user: {0}", username);
      User user = Factory.User.fetchInstance(
          ((FnConnection) conn).getConnection(), username, null);
      return new FnUser(user);
    } catch (Exception e) {
      throw new RepositoryException(username + " username is not found", e);
    }
  }
View Full Code Here

    try {
      myObjects = search.fetchObjects(sqlObject, myPageSize, myFilter,
          continuable);
    } catch (Exception e) {
      throw new RepositoryException(e);
    }
    Iterator it = myObjects.iterator();
    while (it.hasNext()) {
      objectList.add(new FnBaseObject((IndependentObject) it.next()));
    }
View Full Code Here

    try {
      new UrlValidator().validate(workplaceServerUrl);
      LOGGER.log(Level.INFO, "Connection to Workplace URL is Successful");
    } catch (UrlValidatorException e) {
      LOGGER.log(Level.WARNING, resource.getString("workplace_url_error"));
      throw new RepositoryException(
              resource.getString("workplace_url_error"));
    } catch (Throwable t) {
      LOGGER.log(Level.WARNING, resource.getString("workplace_url_error"));
      throw new RepositoryException(
              resource.getString("workplace_url_error"));
    }
  }
View Full Code Here

  private IObjectFactory getFileObjectFactory(String objectFactoryName)
      throws RepositoryException {
    try {
      return (IObjectFactory) Class.forName(objectFactoryName).newInstance();
    } catch (InstantiationException e) {
      throw new RepositoryException("Unable to instantiate object factory: "
          + objectFactoryName, e);
    } catch (IllegalAccessException e) {
      throw new RepositoryException("Access denied to object factory class: "
          + objectFactoryName, e);
    } catch (ClassNotFoundException e) {
      throw new RepositoryException("Class not found: " + objectFactoryName, e);
    }
  }
View Full Code Here

    try {
      String obj = System.getProperty("test.docids",
          System.getProperty("test.docid", "BAD"));
      return LivelinkConnector.sanitizeListOfIntegers(obj);
    } catch (Exception e) {
      throw new RepositoryException("Please specify a list of start " +
          "nodes using the test.docids property: " +
          "-Dtest.docids=\"12345,12346\"");
    }
  }
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.