public class ResultApiPart extends ApiPart<Result> implements ResultQueryApi, ResultApi
Constructor and Description |
---|
ResultApiPart(ParentApiPart parent) |
ResultApiPart(ParentApiPart parent,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
List<LogEntry> |
addLogs(List<LogEntry> logEntries)
Add log entries to an existing result.
|
int |
count()
Count the number of results queried.
|
protected javax.ws.rs.client.WebTarget |
getWebTargetForRequest() |
create, delete, findOrCreate, get, getList, getParent, getSlickClient, getWebTarget, makeRequest, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, findOrCreate, getList
delete, get, update
public ResultApiPart(ParentApiPart parent)
public ResultApiPart(ParentApiPart parent, com.fasterxml.jackson.databind.ObjectMapper mapper)
protected javax.ws.rs.client.WebTarget getWebTargetForRequest() throws SlickError
getWebTargetForRequest
in class ApiPart<Result>
SlickError
public List<LogEntry> addLogs(List<LogEntry> logEntries) throws SlickError
ResultApi
addLogs
in interface ResultApi
logEntries
- The log entries to add to the result.SlickError
- if a problem was encountered while communicating with the serverpublic int count() throws SlickError
ResultQueryApi
count
in interface ResultQueryApi
SlickError
- if there was a problem with communicating with the serverCopyright © 2015. All rights reserved.