public abstract class ResourceNameDisambiguatingPagedListDataModel<T> extends PagedListDataModel<org.rhq.core.domain.resource.composite.DisambiguationReport<T>>
PagedListDataModel that automatically
performs the disambiguation of the resource names contained in the pages of fetched data.
This class implements the PagedListDataModel.fetchPage(PageControl) method and defers
the actual loading of the data to a new fetchDataForPage(PageControl) method. The result
of that call is supplied to the ResourceManagerLocal.disambiguate(java.util.List, IntExtractor, DisambiguationUpdateStrategy)
method and the disambiguated results are then returned from the fetchPage(PageControl) method.
| Constructor and Description |
|---|
ResourceNameDisambiguatingPagedListDataModel(PageControlView view,
String beanName,
boolean alwaysIncludeParents) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.rhq.core.domain.util.PageList<T> |
fetchDataForPage(org.rhq.core.domain.util.PageControl pc)
This method is to be implemented by inheritors and is called to fetch the actual data
that contain the resources to disambiguate.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.composite.DisambiguationReport<T>> |
fetchPage(org.rhq.core.domain.util.PageControl pc)
Method which must be implemented in cooperation with the managed bean class to fetch data on demand.
|
protected abstract IntExtractor<T> |
getResourceIdExtractor() |
getDataPage, getDefaultPageControl, getPageControl, getPageControlView, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, setPageControl, setRowIndex, setWrappedDatapublic ResourceNameDisambiguatingPagedListDataModel(PageControlView view, String beanName, boolean alwaysIncludeParents)
view - beanName - alwaysIncludeParents - whether the disambiguation should always include the parent
names even if they wouldn't be needed to make the resource names unique.public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.composite.DisambiguationReport<T>> fetchPage(org.rhq.core.domain.util.PageControl pc)
PagedListDataModelfetchPage in class PagedListDataModel<org.rhq.core.domain.resource.composite.DisambiguationReport<T>>pc - information such as the first row of data to be fetched, the number of rows of data to be fetched and
sorting dataprotected abstract org.rhq.core.domain.util.PageList<T> fetchDataForPage(org.rhq.core.domain.util.PageControl pc)
pc - protected abstract IntExtractor<T> getResourceIdExtractor()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.