public interface IPagingCookie
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_NEXT
move the cookie forward
|
static int |
ACTION_PREVIOUS
move the cookie backward
|
static int |
ACTION_REFRESH
repeat the same search
|
static String |
ASCENDING |
static String |
DESCENDING |
Modifier and Type | Method and Description |
---|---|
int |
getEnd()
The index of the last item in the current page.
|
String |
getOrder()
The order by which the list is sorted: #ASCENDING or #DESCENDING.
|
boolean |
getOrderAtoZ()
Returns true if the list is ordered ascending (a-z or 1-10).
|
int |
getPageCount()
The total number of pages in the list.
|
int |
getPageIndex()
The index of the current page.
|
int |
getPageSize()
The maximum number of items in the current page.
|
String |
getQueryString()
Query which produced the list or null.
|
IURI |
getResourceID()
The resource providing the list.
|
String |
getSort()
The sort key by which the list is sorted (ex: 'name').
|
int |
getStart()
The index of the first item in the current page.
|
int |
getTotal()
The total number of items in the list.
|
IThingID |
getUserID()
User for whom the list was populated or null.
|
String |
getView()
The name of the view used to identify the paging cookie
(ie 'children' or 'containers').
|
boolean |
hasNext()
True if the list can page forward.
|
boolean |
hasPrevious()
True if the list can page back.
|
void |
pageBackward()
Pages the cookie backward.
|
void |
pageForward()
Pages the cookie forward.
|
void |
release()
Clears the state of this in preperation for re-use or disposal.
|
void |
setEnd(int end)
The index of the last item in the current page.
|
void |
setOrder(String order)
The order by which the list is sorted: #ASCENDING or #DESCENDING.
|
void |
setPageIndex(int pageIndex)
The index of the current page.
|
void |
setPageSize(int pageSize)
The maximum number of items in the current page.
|
void |
setQueryString(String query)
Query which produced the list or null.
|
void |
setResourceID(IURI targetID)
The resource providing the list.
|
void |
setSort(String sortKey)
The sort key by which the list is sorted (ex: 'name').
|
void |
setStart(int start)
The index of the first item in the current page.
|
void |
setTotal(int total)
The total number of items in the list.
|
void |
setUserID(IThingID userID)
User for whom the list was populated or null.
|
void |
setView(String view)
The name of the view used to identify the paging cookie
(ie 'children' or 'containers').
|
static final String ASCENDING
static final String DESCENDING
static final int ACTION_NEXT
static final int ACTION_PREVIOUS
static final int ACTION_REFRESH
boolean hasPrevious()
boolean hasNext()
int getStart()
void setStart(int start)
start
- The index of the first item in the current page.int getEnd()
void setEnd(int end)
end
- The index of the of the last item in the current page.int getTotal()
void setTotal(int total)
total
- The total number of items in the list.int getPageSize()
void setPageSize(int pageSize)
pageSize
- The maximum number of items in the current page.int getPageIndex()
void setPageIndex(int pageIndex)
pageIndex
- The index of the current page.int getPageCount()
String getSort()
void setSort(String sortKey)
sortKey
- The sort key by which the list is sorted (ex: 'name').String getOrder()
void setOrder(String order)
order
- The order by which the list is sorted: #ASCENDING or #DESCENDING.boolean getOrderAtoZ()
IURI getResourceID()
void setResourceID(IURI targetID)
targetID
- Id of the resource providing the list or null.String getView()
void setView(String view)
view
- Name of view or null.IThingID getUserID()
void setUserID(IThingID userID)
userID
- User for whom the list was populated or null.String getQueryString()
void setQueryString(String query)
query
- Query which produced the list or null.void pageForward() throws PortalException
PortalException
- if the cookie cannot page forward.void pageBackward() throws PortalException
PortalException
- if the cookie cannot page backward.void release()