|
From: <vh...@us...> - 2003-06-25 21:05:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/query
In directory sc8-pr-cvs1:/tmp/cvs-serv18052/modules/core/src/com/babeldoc/core/journal/query
Modified Files:
Tag: branch_1_0
JournalQuery.java QueryOption.java
Log Message:
Add a way to query journal on ticket's STATUS
Index: JournalQuery.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/query/JournalQuery.java,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -C2 -d -r1.2 -r1.2.4.1
*** JournalQuery.java 15 Mar 2003 19:22:16 -0000 1.2
--- JournalQuery.java 25 Jun 2003 21:05:02 -0000 1.2.4.1
***************
*** 44,47 ****
--- 44,48 ----
private QueryOption[] queryOptions;
private JournalOperation[] journalOperations;
+ private String status;
/**
***************
*** 124,127 ****
--- 125,132 ----
}
+ public String getStatus(){
+ return status;
+ }
+
/**
* Set the enddate. If a null is passed, the enddate is set to the
***************
*** 183,194 ****
/**
! * private int startIndex;
! private int numResults;
! private Date startDate;
! private Date endDate;
! private QueryOption[] queryOptions;
! private JournalOperation[] journalOperations;
!
*/
public String toString() {
return new ToStringBuilder(this).
--- 188,197 ----
/**
! * @param string
*/
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
public String toString() {
return new ToStringBuilder(this).
Index: QueryOption.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/query/QueryOption.java,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -C2 -d -r1.2 -r1.2.4.1
*** QueryOption.java 15 Mar 2003 19:22:16 -0000 1.2
--- QueryOption.java 25 Jun 2003 21:05:02 -0000 1.2.4.1
***************
*** 37,40 ****
--- 37,41 ----
public final static QueryOption oldestFirst = new QueryOption(0);
public final static QueryOption newestFirst = new QueryOption(1);
+ public final static QueryOption failedOnly = new QueryOption(2);
/**
***************
*** 43,46 ****
--- 44,48 ----
public final static String OLDEST_FIRST = "oldestFirst";
public final static String NEWEST_FIRST = "newestFirst";
+ public final static String FAILED_ONLY = "failedOnly";
/**
***************
*** 76,79 ****
--- 78,83 ----
} else if (qopt.equals(NEWEST_FIRST)) {
return newestFirst;
+ } else if (qopt.equals(FAILED_ONLY)) {
+ return failedOnly;
} else {
return null;
***************
*** 94,97 ****
--- 98,104 ----
case 1:
return NEWEST_FIRST;
+
+ case 2:
+ return FAILED_ONLY;
default:
|