View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.api.action.user;
20  
21  import com.hack23.cia.service.api.action.common.AbstractRequest;
22  
23  
24  /**
25   * The Class SearchDocumentRequest.
26   */
27  public final class SearchDocumentRequest extends AbstractRequest {
28  
29  	/** The Constant serialVersionUID. */
30  	private static final long serialVersionUID = 1L;
31  
32      /** The session id. */
33      private String sessionId;
34  
35      /** The search expression. */
36      private String searchExpression;
37  
38      /** The max results. */
39      private Integer maxResults;
40  
41  	/**
42  	 * Instantiates a new search document request.
43  	 */
44  	public SearchDocumentRequest() {
45  		super();
46  	}
47  
48  	/**
49  	 * Gets the session id.
50  	 *
51  	 * @return the session id
52  	 */
53  	public String getSessionId() {
54  		return sessionId;
55  	}
56  
57  	/**
58  	 * Sets the session id.
59  	 *
60  	 * @param sessionId
61  	 *            the new session id
62  	 */
63  	public void setSessionId(final String sessionId) {
64  		this.sessionId = sessionId;
65  	}
66  
67  	/**
68  	 * Gets the search expression.
69  	 *
70  	 * @return the search expression
71  	 */
72  	public String getSearchExpression() {
73  		return searchExpression;
74  	}
75  
76  	/**
77  	 * Sets the search expression.
78  	 *
79  	 * @param searchExpression
80  	 *            the new search expression
81  	 */
82  	public void setSearchExpression(final String searchExpression) {
83  		this.searchExpression = searchExpression;
84  	}
85  
86  	/**
87  	 * Gets the max results.
88  	 *
89  	 * @return the max results
90  	 */
91  	public Integer getMaxResults() {
92  		return maxResults;
93  	}
94  
95  	/**
96  	 * Sets the max results.
97  	 *
98  	 * @param maxResults
99  	 *            the new max results
100 	 */
101 	public void setMaxResults(final Integer maxResults) {
102 		this.maxResults = maxResults;
103 	}
104 
105 }