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
Response for a page usage response (templates).
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorTemplateUsageListResponse
(Message message, ResponseInfo responseInfo, List<Template> templates, int total, int withoutPermission) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionint
getTotal()
Get the total number of templatesint
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 permissionMethods 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 Details
-
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 Details
-
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
-