|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.sentinel.client.bean.PagedBeanCollection<B>
B
- The bean type (e.g., IdentityBean)public class PagedBeanCollection<B extends SentinelBean>
A class to contain the results of a "list" operation on Sentinel data items.
Nested Class Summary | |
---|---|
static class |
PagedBeanCollection.DeltaCounts
|
Constructor Summary | |
---|---|
PagedBeanCollection(BeanTransporter<B> _pageSource)
Construct an instance with the passed BeanTransporter as the source which will be used to get the next or previous pages. |
Method Summary | |
---|---|
void |
addBean(B bean)
Add a bean to this page. |
Collection<B> |
getBeans()
Get the Collection of beans in the page. |
PagedBeanCollection.DeltaCounts |
getDeltaCounts()
Get the delta counts (if any) supplied with the page data. |
String |
getNextPageURL()
Get the URL (if any) of the next page of data. |
String |
getPreviousPageURL()
Get the URL (if any) of the previous page of data. |
boolean |
hasNextPage()
Return true if there is a next potential next page of items addressed by a URL. |
boolean |
hasPreviousPage()
Return true if there is a next potential previous page of items addressed by a URL. |
void |
nextPage(OnBeanPageLoad<B> handler)
Get the next page of data items. |
void |
previousPage(OnBeanPageLoad<B> handler)
Get the previous page of data items. |
void |
setDeltaCounts(int createdCount,
int deletedCount,
int modifiedCount)
Set the delta counts for this page. |
void |
setNextPageURL(String url)
Set the next page URL. |
void |
setPreviousPageURL(String url)
Set the previous page URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagedBeanCollection(BeanTransporter<B> _pageSource)
_pageSource
- BeanTransporter implementation.Method Detail |
---|
public void setDeltaCounts(int createdCount, int deletedCount, int modifiedCount)
createdCount
- deletedCount
- modifiedCount
- public PagedBeanCollection.DeltaCounts getDeltaCounts()
public String getNextPageURL()
public void setNextPageURL(String url)
url
- The URL of the next page of data.public String getPreviousPageURL()
public void setPreviousPageURL(String url)
url
- The URL of the previous page of data.public Collection<B> getBeans()
public void addBean(B bean)
bean
- The bean to add.public boolean hasNextPage()
public boolean hasPreviousPage()
public void nextPage(OnBeanPageLoad<B> handler)
handler
- The handler to which is reported the GET results. If the URL is not set, an empty
page is reported.public void previousPage(OnBeanPageLoad<B> handler)
handler
- The handler to which is reported the GET results. If the URL is not set, an empty
page is reported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |