public class PagerToPageResponseHelper extends Object
Constructor and Description |
---|
PagerToPageResponseHelper() |
Modifier and Type | Method and Description |
---|---|
static <H,M> PageResponse<M> |
createFromPager(com.atlassian.user.search.page.Pager<H> pager,
LimitedRequest limitedRequest,
Function<H,M> transformer)
Helper to build page responses from atlassian user Pagers
|
static <H,M> PageResponse<M> |
fromPager(com.atlassian.user.search.page.Pager<H> pager,
LimitedRequest limitedRequest,
com.google.common.base.Function<H,M> transfromer)
Deprecated.
since 7.0.1. Use
createFromPager(Pager, LimitedRequest, Function) |
@Deprecated 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
createFromPager(Pager, LimitedRequest, Function)
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.PagerException
public static <H,M> PageResponse<M> createFromPager(com.atlassian.user.search.page.Pager<H> pager, LimitedRequest limitedRequest, Function<H,M> transformer) 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 fetchtransformer
- the transforming function to apply to convert from the data in the page to the requested modelcom.atlassian.user.search.page.PagerException
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences