Class TemplateUsageListResponse
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.GenericResponse
-
- com.gentics.contentnode.rest.model.response.TemplateListResponse
-
- com.gentics.contentnode.rest.model.response.TemplateUsageListResponse
-
- All Implemented Interfaces:
Serializable
public class TemplateUsageListResponse extends TemplateListResponse
Response for a page usage response (templates).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateUsageListResponse()
Empty constructorTemplateUsageListResponse(Message message, ResponseInfo responseInfo, List<Template> templates, int total, int withoutPermission)
Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTotal()
Get the total number of templatesint
getWithoutPermission()
Get the number of templates without permissionvoid
setTotal(int total)
Set the total number of templatesvoid
setWithoutPermission(int withoutPermission)
Set the number of templates without permission-
Methods inherited from class com.gentics.contentnode.rest.model.response.TemplateListResponse
getNumItems, getTemplates, isHasMoreItems, setHasMoreItems, setNumItems, setTemplates
-
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
-
-
-
Constructor Detail
-
TemplateUsageListResponse
public TemplateUsageListResponse()
Empty constructor
-
TemplateUsageListResponse
public TemplateUsageListResponse(Message message, ResponseInfo responseInfo, List<Template> templates, int total, int withoutPermission)
Create a new instance- Parameters:
message
- messageresponseInfo
- response infotemplates
- templatestotal
- total number of templateswithoutPermission
- number of templates without permission
-
-
Method Detail
-
getWithoutPermission
public int getWithoutPermission()
Get the number of templates without permission- Returns:
- number of templates without permission
-
getTotal
public int getTotal()
Get the total number of templates- Returns:
- total number of templates
-
setWithoutPermission
public void setWithoutPermission(int withoutPermission)
Set the number of templates without permission- Parameters:
withoutPermission
- number of templates without permission
-
setTotal
public void setTotal(int total)
Set the total number of templates- Parameters:
total
- total number of templates
-
-