Package com.google.enterprise.connector.spi

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


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


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

      }
    } else if (prop instanceof PropertyBinaryList) {
      logger.log(Level.FINEST, "Binary MultiValued Metadata is currently not "
          + "supported. Binary MultiValued metadata will not be fed to GSA");
    } else {
      throw new RepositoryDocumentException("Invalid data type: "
          + propertyName + " property is not a Binary type");
    }
  }
View Full Code Here

        return new FnBaseObject(obj);
      }
    } catch (Exception e) {
      logger.log(Level.WARNING,
          "Unable to get VersionSeries or Document object", e);
      throw new RepositoryDocumentException(e);
    }
  }
View Full Code Here

        return new FnBaseObject(obj);
      }
    } catch (Exception e) {
      logger.log(Level.WARNING,
          "Unable to fetch VersionSeries or Document object", e);
      throw new RepositoryDocumentException(e);
    }
  }
View Full Code Here

  public DatabaseType get_DatabaseType() throws RepositoryException {
    try {
      return objectStore.get_DatabaseType();
    } catch (Exception e) {
      logger.log(Level.WARNING, "Unable to get database type", e);
      throw new RepositoryDocumentException(e);
    }
  }
View Full Code Here

      logger.log(Level.WARNING, "Error while trying to get the property "
          + name
          + " of the file "
          + ((DeletionEvent) this.object).get_Id()
          + " " + e.getMessage());
      RepositoryDocumentException re = new RepositoryDocumentException(e);
      throw re;
    }
    return null;
  }
View Full Code Here

          + "case when DataSize < 0 then 0 else DataSize end as GoogleDataSize "
          + "from WebNodes b)";
      ClientValue node = traversalClient.ListNodes("DataID = " + docid,
                                                   view, SELECT_LIST);
      if (node == null || node.size() == 0) {
        throw new RepositoryDocumentException("Not found: " + docid);
      }
      doc = new AgingDocument(objid);
      // Collect the recarray-based properties.
      for (int i = 0; i < FIELDS.length; i++) {
        if (FIELDS[i].propertyNames.length > 0) {
          ClientValue value = node.toValue(0, FIELDS[i].fieldName);
          if (value.isDefined()) {
            doc.addProperty(FIELDS[i], value);
          }
        }
      }
      documentCache.put(objid, doc);
      return doc;
    } catch (RepositoryDocumentException rde) {
      throw rde;
    } catch (RepositoryException re) {
      if (isDocumentError()) {
        throw new RepositoryDocumentException(
            "Failed to access document content for docid " + docid, re);
      } else {
        throw re;
      }
    }
View Full Code Here

      return contentHandler.getInputStream(0, objid, 0, dataSize);
    } catch (RepositoryDocumentException rde) {
      throw rde;
    } catch (RepositoryException re) {
      if (isDocumentError()) {
        throw new RepositoryDocumentException(
            "Failed to access document content for docid " + docid, re);
      } else {
        throw re;
      }
    }
View Full Code Here

  private int getObjectId(String docid) throws RepositoryException {
    try {
      return Integer.parseInt(docid);
    } catch (NumberFormatException nfe) {
      LOGGER.warning("Invalid docid: " + docid);
      throw new RepositoryDocumentException("Invalid docid: " + docid, nfe);
    }
  }
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.