Class TemplateListResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.TemplateListResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TemplateUsageListResponse
Response for a template list request
- Author:
- norbert
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorTemplateListResponse
(Message message, ResponseInfo responseInfo) -
Method Summary
Modifier and TypeMethodDescriptionGet total number of items presentGet the list of templatesTrue if more items are available (paging)void
setHasMoreItems
(Boolean hasMoreItems) Set true when more items are availablevoid
setNumItems
(Integer numItems) Set the total number of items presentvoid
setTemplates
(List<Template> templates) Set the list of templatesMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
TemplateListResponse
public TemplateListResponse()Empty constructor -
TemplateListResponse
-
-
Method Details
-
getTemplates
Get the list of templates- Returns:
- list of templates
-
isHasMoreItems
True if more items are available (paging)- Returns:
- true if more items are present
-
getNumItems
Get total number of items present- Returns:
- total number of items present
-
setTemplates
Set the list of templates- Parameters:
templates
- list of templates
-
setHasMoreItems
Set true when more items are available- Parameters:
hasMoreItems
- true if more items are available
-
setNumItems
Set the total number of items present- Parameters:
numItems
- total number of items present
-