3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.bulkeditor
;
13 import java
.util
.Comparator
;
15 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
16 import eu
.etaxonomy
.cdm
.api
.service
.config
.impl
.IdentifiableServiceConfiguratorImpl
;
20 * @created Dec 14, 2010
23 public class BulkEditorQuery
{
25 private String searchString
;
26 private Comparator comparator
;
27 private IIdentifiableEntityServiceConfigurator searchConfigurator
;
29 public BulkEditorQuery (String searchString
, Comparator comparator
) {
30 this.searchString
= searchString
;
31 this.comparator
= comparator
;
33 searchConfigurator
= IdentifiableServiceConfiguratorImpl
.NewInstance();
34 searchConfigurator
.setTitleSearchString(searchString
);
36 if(searchString
!= null && searchString
.trim().equals("*")){
37 searchConfigurator
.setPageSize(1000);
43 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getComparator()
45 public Comparator
getComparator() {
50 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getSearchString()
52 public String
getSearchString() {
57 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery#getSearchConfigurator()
59 public IIdentifiableEntityServiceConfigurator
getSearchConfigurator() {
60 return searchConfigurator
;