You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oodt.apache.org by GitBox <gi...@apache.org> on 2021/08/17 15:01:48 UTC

[GitHub] [oodt] NGimhana commented on a change in pull request #126: Improve UI/UX of File Manager Components in React.js OPSUI

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-unsubscribe@oodt.apache.org

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