Package com.google.enterprise.connector.util.filter

Examples of com.google.enterprise.connector.util.filter.DocumentFilterChain


    }

    DocPusher push = null;
    try {
      push = new DocPusher(new GsaFeedConnection(null, "gogol", 19900, -1),
          "dctm", new FileSizeLimitInfo(), new DocumentFilterChain());

    } catch (MalformedURLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here


        conn = LivelinkConnectorFactory.getConnector("connector.");
        sess = (LivelinkSession) conn.login();
        client = sess.getFactory().createClient();
        pusher = new DocPusher(
            new GsaFeedConnection(null, feedServer, feedPort, -1),
            "livelink", new FileSizeLimitInfo(), new DocumentFilterChain());

        // Iinitialize the Context for DocPusher.take.
        // FIXME: This code is duplicated in LivelinkQueryTraverserTest..
        String cmDir = System.getProperty("connector-manager.dir");
        if (cmDir == null)
View Full Code Here

    this.coordinatorMap = coordinatorMap;
  }
 
  /** {@inheritDoc} */
  public DocumentFilterFactory getDocumentFilterFactory() {
    return (globalFilterFactory == null) ? new DocumentFilterChain()
                                         : globalFilterFactory;
  }
View Full Code Here

        if (connectorFilterFactory != null) {
          if (globalFilterFactory == null) {
            return connectorFilterFactory;
          } else {
            // Put the connector's filters before the global filters.
            return new DocumentFilterChain(Lists.newArrayList(
                connectorFilterFactory, globalFilterFactory));
          }
        }
      } catch (ConnectorNotFoundException e) {
        LOGGER.log(Level.FINE, "Connector not found: {0}", connectorName);
View Full Code Here

    @SuppressWarnings("unchecked") Collection<DocumentFilterChain> chains =
        beanFactory.getBeansOfType(DocumentFilterChain.class).values();
    if (chains == null || chains.size() == 0) {
      // No chains defined, so I'll make one.  But the order of the filters
      // should be considered random.
      return new DocumentFilterChain(Lists.newArrayList(filters));
    } else if (chains.size() == 1) {
      // If there is just one, return it.
      return chains.iterator().next();
    } else {
      // More than one filter chain is defined???  I will allow it, but...
      return new DocumentFilterChain(Lists.newArrayList(chains));
    }
  }
View Full Code Here

    fsli.setMaxDocumentSize(1024 * 1024);

    dataSource = "junit";

    // Set up an empty filter document chain.
    dfc = new DocumentFilterChain();

    // A distinct contentUrlPrefix.
    setContentUrlPrefix("http://contentUrlPrefix");

    // We're comparing date strings here, so we need a fixed time zone.
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.util.filter.DocumentFilterChain

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.