Salome HOME
Search actions have been improved. Searching by dates has been implemented.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / dto / StudySearchFilterDTO.java
diff --git a/Workspace/Siman-Common/src/org/splat/service/dto/StudySearchFilterDTO.java b/Workspace/Siman-Common/src/org/splat/service/dto/StudySearchFilterDTO.java
new file mode 100644 (file)
index 0000000..93d7ef4
--- /dev/null
@@ -0,0 +1,100 @@
+/*****************************************************************************
+ * Company         OPEN CASCADE
+ * Application     SIMAN
+ * File            $Id$ 
+ * Creation date   05.03.2013
+ * @author         $Author$
+ * @version        $Revision$
+ * @copyright      OPEN CASCADE 2012
+ *****************************************************************************/
+
+package org.splat.service.dto; 
+
+import java.util.Date;
+
+/**
+ * Study search criteria.
+ *
+ * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
+ */
+public class StudySearchFilterDTO extends SearchFilterDTO {
+
+       /**
+        * "ANY": match any status.
+        */
+       public final static String ANY_STATE = "ANY";
+       /**
+        * "In-Work", "In-Draft", "In-Check"...
+        */
+       private String _state = ANY_STATE;
+       /**
+        * Search studies updated after this date.
+        */
+       private Date _updatedAfter;
+       /**
+        * Search studies updated before this date.
+        */
+       private Date _updatedBefore;
+
+       // ==============================================================================================================================
+       // Getters
+       // ==============================================================================================================================
+       
+       /**
+        * Get progress state criteria.
+        * 
+        * @return study progress state to search
+        */
+       public String getState() {
+               return _state;
+       }
+
+       /**
+        * Set progress state criteria.
+        * 
+        * @param value
+        *            the progress state to search
+        */
+       public void setState(final String value) {
+               this._state = value;
+       }
+
+       /**
+        * Get the updatedAfter.
+        * 
+        * @return the updatedAfter
+        */
+       public Date getUpdatedAfter() {
+               return _updatedAfter;
+       }
+
+       /**
+        * Get the updatedBefore.
+        * 
+        * @return the updatedBefore
+        */
+       public Date getUpdatedBefore() {
+               return _updatedBefore;
+       }
+
+       /**
+        * Set the updatedAfter.
+        * 
+        * @param updatedAfter
+        *            the updatedAfter to set
+        */
+       public void setUpdatedAfter(final Date updatedAfter) {
+               _updatedAfter = updatedAfter;
+       }
+
+       /**
+        * Set the updatedBefore.
+        * 
+        * @param updatedBefore
+        *            the updatedBefore to set
+        */
+       public void setUpdatedBefore(final Date updatedBefore) {
+               _updatedBefore = updatedBefore;
+       }
+       
+}