oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Ramirez (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OODT-68) Add Number of Product Hits to ProductPage
Date Wed, 08 Dec 2010 16:46:00 GMT

    [ https://issues.apache.org/jira/browse/OODT-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969366#action_12969366

Paul Ramirez commented on OODT-68:

Having the total number of products available after a query is useful information just to
display back to the end user. I don't believe this can be currently calculated from a product
page as that information is abstracted away. Would the interface be changed by adding this
information as a member variable to the ProductPage? Does that type of information belong
in the ProductPage? 

What is total number of results being used for? I can see the use case for informational purpose
but is there anything else? If for informational purposes only then there is a way to do that
now. If however the answer is that this number is used in some other calculation lets figure
that out and put that case out here for discussion. 

> Add Number of Product Hits to ProductPage
> -----------------------------------------
>                 Key: OODT-68
>                 URL: https://issues.apache.org/jira/browse/OODT-68
>             Project: OODT
>          Issue Type: Improvement
>          Components: file manager
>    Affects Versions: 0.1-incubating
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.2
> - By adding get number of hits the method setTotalPages(int) is no longer needed; getTotalPages
will calculate its return value based on page size and total hits
> - This also allows the number of products to be determined by just getting the first
page, instead of getting last page which internally requires DataSourceCatalog to get first
page and last page

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message