Package com.authlete.common.dto
Class ServiceListResponse
- java.lang.Object
 - 
- com.authlete.common.dto.ServiceListResponse
 
 
- 
- All Implemented Interfaces:
 Serializable
public class ServiceListResponse extends Object implements Serializable
Response from Authlete's/service/get/listAPI.- Since:
 - Authlete 1.1
 - Author:
 - Takahiko Kawasaki
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ServiceListResponse() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEnd()Get the end index (exclusive) for the result set of the query.Service[]getServices()Get the list of services.intgetStart()Get the start index (inclusive) for the result set of the query.intgetTotalCount()Get the total count of services.ServiceListResponsesetEnd(int end)Set the end index (exclusive) for the result set of the query.ServiceListResponsesetServices(Service[] services)Set the list of services that match the query conditions.ServiceListResponsesetStart(int start)Set the start index (inclusive) for the result set of the query.ServiceListResponsesetTotalCount(int count)Set the total count of services. 
 - 
 
- 
- 
Method Detail
- 
getStart
public int getStart()
Get the start index (inclusive) for the result set of the query. It is the value contained in the original request (= the value of'start'parameter), or the default value (0) if the original request did not contain the parameter.- Returns:
 - The start index for the result set of the query.
 
 
- 
setStart
public ServiceListResponse setStart(int start)
Set the start index (inclusive) for the result set of the query.- Parameters:
 start- The start index for the result set of the query.- Returns:
 thisobject.
 
- 
getEnd
public int getEnd()
Get the end index (exclusive) for the result set of the query. It is the value contained in the original request (= the value of'end'parameter), or the default value used by Authlete server if the original request did not contain the parameter.- Returns:
 - The end index for the result set of the query.
 
 
- 
setEnd
public ServiceListResponse setEnd(int end)
Set the end index (exclusive) for the result set of the query.- Parameters:
 end- The end index for the result set of the query.- Returns:
 thisobject.
 
- 
getTotalCount
public int getTotalCount()
Get the total count of services.- Returns:
 - The total count of services.
 
 
- 
setTotalCount
public ServiceListResponse setTotalCount(int count)
Set the total count of services.- Parameters:
 count- The total count of services.- Returns:
 thisobject.
 
- 
getServices
public Service[] getServices()
Get the list of services.- Returns:
 - List of services, or 
nullwhen no service matched the query conditions. 
 
- 
setServices
public ServiceListResponse setServices(Service[] services)
Set the list of services that match the query conditions.- Parameters:
 services- List of services, ornullwhen no service matched the query conditions.- Returns:
 thisobject.
 
 - 
 
 -