Salome HOME
Study search is fixed. Unit test for study search is fixed.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / dto / StudySearchFilterDTO.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   05.03.2013
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012
9  *****************************************************************************/
10
11 package org.splat.service.dto; 
12
13 import java.util.Date;
14
15 /**
16  * Study search criteria.
17  *
18  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
19  */
20 public class StudySearchFilterDTO extends SearchFilterDTO {
21
22         /**
23          * "ANY": match any status.
24          */
25         public final static String ANY_STATE = "ANY";
26         /**
27          * "In-Work", "In-Draft", "In-Check"...
28          */
29         private String _state = ANY_STATE;
30         /**
31          * Search studies updated after this date.
32          */
33         private Date _updatedAfter;
34         /**
35          * Search studies updated before this date.
36          */
37         private Date _updatedBefore;
38
39         // ==============================================================================================================================
40         // Getters
41         // ==============================================================================================================================
42         
43         /**
44          * Get progress state criteria.
45          * 
46          * @return study progress state to search
47          */
48         public String getState() {
49                 return _state;
50         }
51
52         /**
53          * Set progress state criteria.
54          * 
55          * @param value
56          *            the progress state to search
57          */
58         public void setState(final String value) {
59                 this._state = value;
60         }
61
62         /**
63          * Get the updatedAfter.
64          * 
65          * @return the updatedAfter
66          */
67         public Date getUpdatedAfter() {
68                 return _updatedAfter;
69         }
70
71         /**
72          * Get the updatedBefore.
73          * 
74          * @return the updatedBefore
75          */
76         public Date getUpdatedBefore() {
77                 return _updatedBefore;
78         }
79
80         /**
81          * Set the updatedAfter.
82          * 
83          * @param updatedAfter
84          *            the updatedAfter to set
85          */
86         public void setUpdatedAfter(final Date updatedAfter) {
87                 _updatedAfter = updatedAfter;
88         }
89
90         /**
91          * Set the updatedBefore.
92          * 
93          * @param updatedBefore
94          *            the updatedBefore to set
95          */
96         public void setUpdatedBefore(final Date updatedBefore) {
97                 _updatedBefore = updatedBefore;
98         }
99 }