|
From: <vh...@us...> - 2003-06-25 21:07:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/web/src/com/babeldoc/web/context
In directory sc8-pr-cvs1:/tmp/cvs-serv18584/modules/web/src/com/babeldoc/web/context
Modified Files:
Tag: branch_1_0
JournalListingContext.java
Log Message:
Add a way to query journal on ticket's STATUS
Index: JournalListingContext.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/web/src/com/babeldoc/web/context/JournalListingContext.java,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -C2 -d -r1.2 -r1.2.4.1
*** JournalListingContext.java 15 Mar 2003 23:45:37 -0000 1.2
--- JournalListingContext.java 25 Jun 2003 21:07:55 -0000 1.2.4.1
***************
*** 112,115 ****
--- 112,136 ----
/**
+ * get all failed tickets to now.
+ *
+ * @param start the index to start getting tickets
+ * @param number no more than this number of tickets to get
+ * @return
+ */
+ public QueryTicket[] getAllFailedTicketsToNow(int start, int number) {
+ try {
+ QueryOption qopts[] = {QueryOption.newestFirst,QueryOption.failedOnly};
+ JournalQuery jQuery = new JournalQuery(
+ start, number,
+ null, null, qopts, null);
+ jQuery.setStatus("fail");
+ return journal.getTickets(jQuery);
+ } catch (Exception e) {
+ com.babeldoc.core.LogService.getInstance().logError(e);
+ }
+ return null;
+ }
+
+ /**
* get all tickets steps for this ticket
*
|