Added comments
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / config / IdentifiableServiceConfiguratorBase.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10
11 package eu.etaxonomy.cdm.api.service.config;
12
13 import eu.etaxonomy.cdm.persistence.query.MatchMode;
14
15 /**
16 * @author a.babadshanjan
17 * @created 03.03.2009
18 * @version 1.0
19 */
20 public class IdentifiableServiceConfiguratorBase {
21
22 private String titleSearchString = null;
23 protected MatchMode matchMode = MatchMode.EXACT;
24 private Integer pageSize = null;
25 private Integer pageNumber = null;
26
27 public static IdentifiableServiceConfiguratorBase NewInstance() {
28 return new IdentifiableServiceConfiguratorBase();
29 }
30
31 public String getTitleSearchString() {
32 return titleSearchString;
33 }
34
35 public void setTitleSearchString(String titleSearchString) {
36 this.titleSearchString = titleSearchString;
37 }
38
39 /**
40 * @return the pageSize
41 */
42 public Integer getPageSize() {
43 return pageSize;
44 }
45
46 /**
47 * Sets the number of results that should be shown on current page
48 *
49 * @param pageSize the pageSize to set
50 */
51 public void setPageSize(Integer pageSize) {
52 this.pageSize = pageSize;
53 }
54
55 /**
56 * @return the pageNumber
57 */
58 public Integer getPageNumber() {
59 return pageNumber;
60 }
61
62 /**
63 * Sets the number of the page the first result should come from, starting
64 * with 0 as the first page.
65 *
66 * @param pageNumber the pageNumber to set
67 */
68 public void setPageNumber(Integer pageNumber) {
69 this.pageNumber = pageNumber;
70 }
71
72 public MatchMode getMatchMode() {
73 return matchMode;
74 }
75
76 public void setMatchMode(MatchMode matchMode) {
77 this.matchMode = matchMode;
78 }
79 }