SearchDocumentRequest.java

  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. import com.hack23.cia.service.api.action.common.AbstractRequest;


  21. /**
  22.  * The Class SearchDocumentRequest.
  23.  */
  24. public final class SearchDocumentRequest extends AbstractRequest {

  25.     /** The Constant serialVersionUID. */
  26.     private static final long serialVersionUID = 1L;

  27.     /** The session id. */
  28.     private String sessionId;

  29.     /** The search expression. */
  30.     private String searchExpression;

  31.     /** The max results. */
  32.     private Integer maxResults;

  33.     /**
  34.      * Instantiates a new search document request.
  35.      */
  36.     public SearchDocumentRequest() {
  37.         super();
  38.     }

  39.     /**
  40.      * Gets the session id.
  41.      *
  42.      * @return the session id
  43.      */
  44.     public String getSessionId() {
  45.         return sessionId;
  46.     }

  47.     /**
  48.      * Sets the session id.
  49.      *
  50.      * @param sessionId
  51.      *            the new session id
  52.      */
  53.     public void setSessionId(final String sessionId) {
  54.         this.sessionId = sessionId;
  55.     }

  56.     /**
  57.      * Gets the search expression.
  58.      *
  59.      * @return the search expression
  60.      */
  61.     public String getSearchExpression() {
  62.         return searchExpression;
  63.     }

  64.     /**
  65.      * Sets the search expression.
  66.      *
  67.      * @param searchExpression
  68.      *            the new search expression
  69.      */
  70.     public void setSearchExpression(final String searchExpression) {
  71.         this.searchExpression = searchExpression;
  72.     }

  73.     /**
  74.      * Gets the max results.
  75.      *
  76.      * @return the max results
  77.      */
  78.     public Integer getMaxResults() {
  79.         return maxResults;
  80.     }

  81.     /**
  82.      * Sets the max results.
  83.      *
  84.      * @param maxResults
  85.      *            the new max results
  86.      */
  87.     public void setMaxResults(final Integer maxResults) {
  88.         this.maxResults = maxResults;
  89.     }

  90. }