com.gentics.contentnode.rest.model.response
Class TemplateUsageListResponse

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.GenericResponse
      extended by com.gentics.contentnode.rest.model.response.TemplateListResponse
          extended by com.gentics.contentnode.rest.model.response.TemplateUsageListResponse

public class TemplateUsageListResponse
extends TemplateListResponse

Response for a page usage response (templates).


Constructor Summary
TemplateUsageListResponse()
          Empty constructor
TemplateUsageListResponse(Message message, ResponseInfo responseInfo, List<Template> templates, int total, int withoutPermission)
          Create a new instance
 
Method Summary
 int getTotal()
          Get the total number of templates
 int getWithoutPermission()
          Get the number of templates without permission
 void setTotal(int total)
          Set the total number of templates
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - message
responseInfo - response info
templates - templates
total - total number of templates
withoutPermission - 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


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.