public class PagerToPageResponseHelper extends Object
| Constructor and Description |
|---|
PagerToPageResponseHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <H,M> PageResponse<M> |
fromPager(com.atlassian.user.search.page.Pager<H> pager,
LimitedRequest limitedRequest,
com.google.common.base.Function<H,M> transfromer)
Helper to build page responses from atlassian user Pagers
|
public static <H,M> PageResponse<M> fromPager(com.atlassian.user.search.page.Pager<H> pager, LimitedRequest limitedRequest, com.google.common.base.Function<H,M> transfromer) throws com.atlassian.user.search.page.PagerException
H - the type of the source object, generally a hibernate objectM - the type of the model object to producepager - the atlassian user pager which is the datasourcelimitedRequest - the page request to fetchtransfromer - the transforming function to apply to convert from the data in the page to the requested modelcom.atlassian.user.search.page.PagerExceptionCopyright © 2003–2018 Atlassian. All rights reserved.