01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.search.filters;
19:
20: import de.finix.contelligent.CallData;
21: import de.finix.contelligent.ComponentPath;
22: import de.finix.contelligent.search.engine.CrawlerFilter;
23: import de.finix.contelligent.search.engine.FilterException;
24: import de.finix.contelligent.xml.elements.IndexBuilderFilterElement;
25:
26: /**
27: * a filter that returns always true
28: */
29: public class TRUE implements CrawlerFilter {
30:
31: /**
32: *
33: */
34: public TRUE() {
35: }
36:
37: /*
38: * (non-Javadoc)
39: *
40: * @see de.finix.contelligent.search.engine.CrawlerFilter#filter(de.finix.contelligent.Component,
41: * de.finix.contelligent.xml.elements.IndexBuilderFilterElement)
42: */
43: public boolean filter(ComponentPath component,
44: IndexBuilderFilterElement configuration, CallData callData)
45: throws FilterException {
46: return true;
47: }
48:
49: public boolean supportsNestedFilters() {
50: return false;
51: }
52: }
|