T
- type of the objects contained in the listpublic abstract class AbstractListResponse<T> extends StagingResponse<String>
Constructor and Description |
---|
AbstractListResponse()
Empty constructor needed by JAXB
|
AbstractListResponse(Message message,
ResponseInfo responseInfo)
Create an instance with message and response info
|
Modifier and Type | Method and Description |
---|---|
boolean |
getHasMoreItems()
True if more items are available to get (if paging was used)
|
List<T> |
getItems()
Items in the list
|
int |
getNumItems()
Get total number of items available
|
Map<Integer,Set<Permission>> |
getPerms()
User permissions on the returned items, if applicable and requested
|
void |
setHasMoreItems(boolean hasMoreItems)
Set whether more items are available
|
void |
setItems(List<T> items)
Set the list of items
|
void |
setNumItems(int numItems)
Set total number of items available
|
void |
setPerms(Map<Integer,Set<Permission>> perms)
Set user permissions
|
getStagingStatus, setStagingStatus
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
public AbstractListResponse()
public AbstractListResponse(Message message, ResponseInfo responseInfo)
message
- messageresponseInfo
- response infopublic void setItems(List<T> items)
items
- list of itemspublic boolean getHasMoreItems()
public void setHasMoreItems(boolean hasMoreItems)
hasMoreItems
- true for more itemspublic int getNumItems()
public void setNumItems(int numItems)
numItems
- total number of itemspublic Map<Integer,Set<Permission>> getPerms()
public void setPerms(Map<Integer,Set<Permission>> perms)
perms
- permissionsCopyright © 2024 Gentics Software. All rights reserved.