[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-1984) support queries

Matt Wringe (JIRA) jira-events at lists.jboss.org
Fri Aug 5 17:02:42 EDT 2011


    [ https://issues.jboss.org/browse/GTNPORTAL-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619218#comment-12619218 ] 

Matt Wringe commented on GTNPORTAL-1984:
----------------------------------------

int size() should return the size of the IterableIdentifiableCollection returned, not the size of everything.

if I call getAll(), IterableIdentifiableCollection.size() should tell me how many elements are in the returned collection
if I call getAllWhere(query), IterableIdentifiableCollection.size() should tell me how many elements have been returned in the collection.

if I call getAllWhere and the query specifies it wants the results paginated, size() should still tell me how many elements are in the returned collection (it should equal the limit value, except for the last page where it could be less). But there still needs to be away to determine if there is a previous or next page to be retrieved. You might need something like a PaginatedIterableIdentifiableCollection.

For the rest api, I need to determine if prev or next links need to be added.

> support queries
> ---------------
>
>                 Key: GTNPORTAL-1984
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1984
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Java API
>            Reporter: Matt Wringe
>            Assignee: Chris Laprun
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list