Class AbstractListResponse<T>
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.StagingResponse<String>
com.gentics.contentnode.rest.model.response.AbstractListResponse<T>
- Type Parameters:
T
- type of the objects contained in the list
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActionLogEntryList
,ActionLogTypeList
,ActionModelList
,ConstructCategoryListResponse
,ConstructList
,ContentRepositoryFragmentEntryListResponse
,ContentRepositoryFragmentListResponse
,ContentRepositoryListResponse
,DatasourceEntryListResponse
,DirtQueueEntryList
,DirtQueueSummaryResponse
,ErrorLogEntryList
,ExecutionListResponse
,FeatureList
,FeatureModelList
,FileListResponse
,FolderListResponse
,GenericItemList
,GroupList
,ImageListResponse
,ItemVersionListResponse
,JobsResponse
,LanguageList
,MarkupLanguageListResponse
,NodeList
,ObjectPropertyCategoryListResponse
,ObjectPropertyListResponse
,PackageDependencyList
,PackageListResponse
,PagedConstructInPackageListResponse
,PagedConstructListResponse
,PagedContentRepositoryFragmentInPackageListResponse
,PagedContentRepositoryInPackageListResponse
,PagedDatasourceInPackageListResponse
,PagedDatasourceListResponse
,PagedFolderListResponse
,PagedObjectPropertyInPackageListResponse
,PagedObjectPropertyListResponse
,PagedTemplateInPackageListResponse
,PagedTemplateListResponse
,PageListResponse
,RoleListResponse
,ScheduleListResponse
,SyncItemList
,TagList
,TagmapEntryConsistencyResponse
,TagmapEntryListResponse
,TagStatusResponse
,TaskListResponse
,TemplateInNodeResponse
,TypePermissionList
,UILanguagesResponse
,UserList
Abstract list response
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructor needed by JAXBAbstractListResponse
(Message message, ResponseInfo responseInfo) Create an instance with message and response info -
Method Summary
Modifier and TypeMethodDescriptionboolean
True if more items are available to get (if paging was used)getItems()
Items in the listint
Get total number of items availablegetPerms()
User permissions on the returned items, if applicable and requestedvoid
setHasMoreItems
(boolean hasMoreItems) Set whether more items are availablevoid
Set the list of itemsvoid
setNumItems
(int numItems) Set total number of items availablevoid
setPerms
(Map<Integer, Set<Permission>> perms) Set user permissionsMethods inherited from class com.gentics.contentnode.rest.model.response.StagingResponse
getStagingStatus, setStagingStatus
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
AbstractListResponse
public AbstractListResponse()Empty constructor needed by JAXB -
AbstractListResponse
Create an instance with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Details
-
getItems
Items in the list- Returns:
- list of items
-
setItems
Set the list of items- Parameters:
items
- list of items
-
getHasMoreItems
public boolean getHasMoreItems()True if more items are available to get (if paging was used)- Returns:
- true for more items
-
setHasMoreItems
public void setHasMoreItems(boolean hasMoreItems) Set whether more items are available- Parameters:
hasMoreItems
- true for more items
-
getNumItems
public int getNumItems()Get total number of items available- Returns:
- total number of items available
-
setNumItems
public void setNumItems(int numItems) Set total number of items available- Parameters:
numItems
- total number of items
-
getPerms
User permissions on the returned items, if applicable and requested- Returns:
- map of permissions
-
setPerms
Set user permissions- Parameters:
perms
- permissions
-