Package com.google.enterprise.connector.spi

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


    }

    try {
      val = currentNode.getProperty(attrName).getValue();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (PathNotFoundException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
    return new MockDmValue(val);
  }
View Full Code Here


    }

    try {
      val = currentNode.getProperty(colName).getDate();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (PathNotFoundException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
    return new MockDmTime(val.getTime());
  }
View Full Code Here

  @Override
  public String asString() throws RepositoryException {
    try {
      return value.getString();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public boolean asBoolean() throws RepositoryException {
    try {
      return value.getBoolean();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public double asDouble() throws RepositoryException {
    try {
      return value.getLong();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public long asInteger() throws RepositoryException {
    try {
      return value.getLong();
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public ITime asTime() throws RepositoryException {
    try {
      return new MockDmTime(value.getDate().getTime());
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public IId asId() throws RepositoryException {
    try {
      return new MockDmId(value.getString());
    } catch (ValueFormatException e) {
      throw new RepositoryException(e);
    } catch (IllegalStateException e) {
      throw new RepositoryException(e);
    } catch (javax.jcr.RepositoryException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

      count++;
      if (delayMillis > 0) {
        try {
          Thread.sleep(delayMillis);
        } catch (InterruptedException e) {
          throw new RepositoryException(e);
        }
      }
      return ((checkpoint.getInsertIndex() == -1
                && checkpoint.getAclId() == null)
             || (checkpoint.getInsertIndex() != -1
View Full Code Here

      return "mimicking getLocalClient failure";
    }

    @Override
    public IClient getLocalClient() throws RepositoryException {
      throw new RepositoryException(
          new RuntimeException(getMessage()));
    }
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.