Package com.google.enterprise.connector.spi

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


    @Override
    public Property findProperty(String name) throws RepositoryException {
      if (SpiConstants.PROPNAME_DOCID.equals(name)) {
        return source.findProperty(name);
      }
      throw new SkippedDocumentException("Document was an ACL document, which "
          + "is unsupported on this GSA");
    }
View Full Code Here


          + "is unsupported on this GSA");
    }

    @Override
    public Set<String> getPropertyNames() throws RepositoryException {
      throw new SkippedDocumentException("Document was an ACL document, which "
          + "is unsupported on this GSA");
    }
View Full Code Here

    Property prop = source.findProperty(name);
    if (propertyName.equals(name)) {
      if (pattern == null) {
        // If there is no pattern, then check presence/absence of the property.
        if ((prop == null) ^ skipOnMatch) {
          throw new SkippedDocumentException("Skipping document based upon "
              + ((prop == null) ? "absence" : "presence") + " of property "
              + propertyName);
        }
      } else if (prop != null) {
        Set<String> propNames = source.getPropertyNames();
View Full Code Here

        // Use matcher.matches() or matcher.find()?  I choose the latter
        // because you can get the behaviour of the former using \A and \Z
        // in the pattern.
        if (pattern.matcher(Strings.nullToEmpty(value.toString())).find()
            ^ !skipOnMatch) {
          throw new SkippedDocumentException("Skipping document based upon "
              + "property " + propertyName + " value: " + value.toString());
        }
        if (!isPublished) {
          value = Value.getStringValue("");
        }
View Full Code Here

        if (supportLevel == 0)
          return;

        // Is this MimeType excluded?  If so, skip the whole document.
        if (supportLevel < 0)
          throw new SkippedDocumentException("Excluded by content type: " + mt);

        // Is the content too large?
        if (size > traversalContext.maxDocumentSize())
          return;
      } else {
View Full Code Here

TOP

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

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.