Package com.google.enterprise.connector.spi

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


  public boolean isRegularFile() throws RepositoryException {
    try {
      return delegate.isFile();
    } catch (IOException e) {
      detectGeneralErrors(e);
      throw new RepositoryDocumentException(e);
    }
  }
View Full Code Here


    try {
      long lastModified = delegate.lastModified();
      return (lastModified > 0L) ? (lastModified >= time) : true;
    } catch (IOException e) {
      detectGeneralErrors(e);
      throw new RepositoryDocumentException(
          "Failed to get last modified time for " + getPath(), e);
    }
  }
View Full Code Here

public class FnId implements IId {
  private final Id id;

  public FnId(String sid) throws RepositoryDocumentException {
    if (Strings.isNullOrEmpty(sid)) {
      throw new RepositoryDocumentException("ID is null or empty");
    }
    this.id = new Id(sid);
  }
View Full Code Here

    this.id = new Id(sid);
  }

  public FnId(Id id) throws RepositoryDocumentException {
    if (id == null) {
      throw new RepositoryDocumentException("ID is null");
    }
    this.id = id;
  }
View Full Code Here

  @Override
  public Date getModifyDate() throws RepositoryDocumentException {
    try {
      return versionSeries.get_CurrentVersion().get_DateCheckedIn();
    } catch (Exception e) {
      throw new RepositoryDocumentException(
          "Failed to retrieve the last modified or checked-in date.", e);
    }
  }
View Full Code Here

            modifiedDate);
      } else {
        modifiedDate = new Date();
      }
    } catch (Exception e) {
      throw new RepositoryDocumentException(e);
    }
    return modifiedDate;
  }
View Full Code Here

              "{0} property [PropertyStringList] contains NULL value",
              propertyName);
        }
      }
    } else {
      throw new RepositoryDocumentException("Invalid data type: "
          + propertyName + " property is not a String type");
    }
  }
View Full Code Here

              "{0} property [PropertyIdList] contains NULL value",
              propertyName);
        }
      }
    } else {
      throw new RepositoryDocumentException("Invalid data type: "
          + propertyName + " property is not a PropertyId type");
    }
  }
View Full Code Here

              "{0} property [PropertyInteger32List] contains NULL value",
              propertyName);
        }
      }
    } else {
      throw new RepositoryDocumentException("Invalid data type: "
          + propertyName + " property is not an Integer32 or Long type");
    }
  }
View Full Code Here

              "{0} property [PropertyFloat64List] contains NULL value",
              propertyName);
        }
      }
    } else {
      throw new RepositoryDocumentException("Invalid data type: "
          + propertyName + " property is not a Double type");
    }
  }
View Full Code Here

TOP

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

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.