Package co.arago.hiro.client.rest
Class GraphAPI.GetHistoryCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetHistoryCommand,DefaultHiroItemListMessage>
-
- co.arago.hiro.client.rest.GraphAPI.GetHistoryCommand
-
- Enclosing class:
- GraphAPI
public class GraphAPI.GetHistoryCommand extends AuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetHistoryCommand,DefaultHiroItemListMessage>
get the history of an entity (vertex / edge)API GET /api/graph/[version]/{ogit/_id}/history
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGetHistoryCommand(java.lang.String ogitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultHiroItemListMessageexecute()protected GraphAPI.GetHistoryCommandself()GraphAPI.GetHistoryCommandsetFrom(long from)GraphAPI.GetHistoryCommandsetIncludeDeleted(boolean includeDeleted)GraphAPI.GetHistoryCommandsetLimit(java.lang.Integer limit)GraphAPI.GetHistoryCommandsetListMeta(boolean listMeta)GraphAPI.GetHistoryCommandsetOffset(java.lang.Integer offset)GraphAPI.GetHistoryCommandsetTo(long to)GraphAPI.GetHistoryCommandsetType(java.lang.String type)GraphAPI.GetHistoryCommandsetVersion(java.lang.Integer version)GraphAPI.GetHistoryCommandsetVid(java.lang.String vid)-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setIncludeDeleted
public GraphAPI.GetHistoryCommand setIncludeDeleted(boolean includeDeleted)
- Parameters:
includeDeleted- allow getting if ogit/_is-deleted=true- Returns:
- this
-
setFrom
public GraphAPI.GetHistoryCommand setFrom(long from)
- Parameters:
from- timestamp in ms where to start returning entries- Returns:
- this
-
setTo
public GraphAPI.GetHistoryCommand setTo(long to)
- Parameters:
to- timestamp in ms where to end returning entries (default: now)- Returns:
- this
-
setLimit
public GraphAPI.GetHistoryCommand setLimit(java.lang.Integer limit)
- Parameters:
limit- limit of entries to return- Returns:
- this
-
setOffset
public GraphAPI.GetHistoryCommand setOffset(java.lang.Integer offset)
- Parameters:
offset- offset where to start returning entries- Returns:
- this
-
setListMeta
public GraphAPI.GetHistoryCommand setListMeta(boolean listMeta)
- Parameters:
listMeta- return list type attributes with metadata- Returns:
- this
-
setType
public GraphAPI.GetHistoryCommand setType(java.lang.String type)
- Parameters:
type- response format:- full - full event
- element - only event body
- diff - diff to previous event
- Returns:
- this
-
setVersion
public GraphAPI.GetHistoryCommand setVersion(java.lang.Integer version)
- Parameters:
version- get entry with specific ogit/_v value- Returns:
- this
-
setVid
public GraphAPI.GetHistoryCommand setVid(java.lang.String vid)
- Parameters:
vid- get specific version of Entity matching ogit/_v-id- Returns:
- this
-
self
protected GraphAPI.GetHistoryCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetHistoryCommand,DefaultHiroItemListMessage>
-
execute
public DefaultHiroItemListMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetHistoryCommand,DefaultHiroItemListMessage>- Returns:
- A
DefaultHiroItemListMessagewith the Json result data. - Throws:
HiroException- When the call returns a http status error.java.io.IOException- When the call got an IO error.java.lang.InterruptedException- When the call gets interrupted.
-
-