Revision caddd4f3
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorQuery.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
24 | 24 |
* @version 1.0 |
25 | 25 |
*/ |
26 | 26 |
public class BulkEditorQuery { |
27 |
|
|
28 |
private String searchString; |
|
29 |
private Comparator<?> comparator; |
|
30 |
private IIdentifiableEntityServiceConfigurator searchConfigurator; |
|
27 |
|
|
28 |
private final String searchString;
|
|
29 |
private final Comparator<?> comparator;
|
|
30 |
private final IIdentifiableEntityServiceConfigurator searchConfigurator;
|
|
31 | 31 |
|
32 | 32 |
public BulkEditorQuery (String searchString, Comparator comparator) { |
33 | 33 |
this.searchString = searchString; |
... | ... | |
38 | 38 |
searchConfigurator.setTitleSearchString(searchString); |
39 | 39 |
searchConfigurator.setMatchMode(null); |
40 | 40 |
searchConfigurator.setPropertyPaths(propertyPath); |
41 |
|
|
41 |
|
|
42 | 42 |
if(searchString != null && searchString.trim().equals("*")){ |
43 | 43 |
searchConfigurator.setPageSize(1000); |
44 | 44 |
} |
45 |
|
|
45 |
|
|
46 | 46 |
} |
47 | 47 |
|
48 |
/* (non-Javadoc) |
|
49 |
* @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getComparator() |
|
50 |
*/ |
|
51 | 48 |
public Comparator getComparator() { |
52 | 49 |
return comparator; |
53 | 50 |
} |
54 | 51 |
|
55 |
/* (non-Javadoc) |
|
56 |
* @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getSearchString() |
|
57 |
*/ |
|
58 | 52 |
public String getSearchString() { |
59 | 53 |
return searchString; |
60 | 54 |
} |
61 | 55 |
|
62 |
/* (non-Javadoc) |
|
63 |
* @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getSearchConfigurator() |
|
64 |
*/ |
|
65 | 56 |
public IIdentifiableEntityServiceConfigurator getSearchConfigurator() { |
66 | 57 |
return searchConfigurator; |
67 | 58 |
} |
Also available in: Unified diff
Trim code