NGimhana commented on a change in pull request #126:
URL: https://github.com/apache/oodt/pull/126#discussion_r690453909



##########
File path: 
webapp/fmprod/src/main/java/org/apache/oodt/cas/product/jaxrs/services/FileManagerJaxrsServiceV2.java
##########
@@ -181,38 +148,29 @@ public int getTotalNumOfProducts() throws 
WebApplicationException {
   })
   public ProductPageResource getNextPage(
       @QueryParam("productTypeName") String productTypeName,
+      @QueryParam("productStructureName") String productStructureName,
+      @QueryParam("productTransferStatus") String productTransferStatus,
+      @QueryParam("productName") String productName,
       @QueryParam("currentProductPage") int currentProductPage)
       throws WebApplicationException {
 
     try {
       FileManagerClient client = getContextClient();
+      Query query = new Query();
 
-      // Get the first ProductPage
-      ProductPage firstpage = 
client.getFirstPage(client.getProductTypeByName(productTypeName));
-
-      if (currentProductPage == 1) {
-        return getProductPageResource(client,firstpage);
+      if (productStructureName != null) {

Review comment:
       Use `StringUtils.isEmpty()`for null check. Change other places also.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@oodt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to