You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/12/30 07:01:30 UTC
svn commit: r1053803 - in /oodt/trunk: CHANGES.txt
filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java
Author: mattmann
Date: Thu Dec 30 06:01:29 2010
New Revision: 1053803
URL: http://svn.apache.org/viewvc?rev=1053803&view=rev
Log:
- fix for OODT-68 Add Number of Product Hits to ProductPage
Modified:
oodt/trunk/CHANGES.txt
oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java
Modified: oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/oodt/trunk/CHANGES.txt?rev=1053803&r1=1053802&r2=1053803&view=diff
==============================================================================
--- oodt/trunk/CHANGES.txt (original)
+++ oodt/trunk/CHANGES.txt Thu Dec 30 06:01:29 2010
@@ -4,6 +4,8 @@ Apache OODT Change Log
Release 0.2 (Current Development)
--------------------------------------------
+* OODT-68 Add Number of Product Hits to ProductPage (bfoster, mattmann)
+
* OODT-107 Typo identified in filemgr-client usage statement (Rishi Verma via mattmann)
* OODT-58 update file manager to use Tika for mime-type detection (mattmann)
Modified: oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java?rev=1053803&r1=1053802&r2=1053803&view=diff
==============================================================================
--- oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java (original)
+++ oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/ProductPage.java Thu Dec 30 06:01:29 2010
@@ -44,6 +44,10 @@ public class ProductPage {
/* the list of produdcts associated with this page */
private List<Product> pageProducts = null;
+
+ /* the computed number of total hits for the query */
+ private long numOfHits;
+
/**
* <p>
@@ -148,6 +152,21 @@ public class ProductPage {
return pageNum == 1;
}
+
+ /**
+ * @return the numOfHits
+ */
+ public long getNumOfHits() {
+ return numOfHits;
+ }
+
+ /**
+ * @param numOfHits the numOfHits to set
+ */
+ public void setNumOfHits(long numOfHits) {
+ this.numOfHits = numOfHits;
+ }
+
/**
*
* @return A blank, unpopulated {@link ProductPage}.
@@ -159,5 +178,5 @@ public class ProductPage {
blank.setPageSize(0);
return blank;
}
-
+
}