Package co.arago.hiro.client.rest
Class GraphAPI.CreateEntityCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<T,R>
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf<GraphAPI.CreateEntityCommand,HiroVertexMessage>
-
- co.arago.hiro.client.rest.GraphAPI.CreateEntityCommand
-
- Enclosing class:
- GraphAPI
public class GraphAPI.CreateEntityCommand extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<GraphAPI.CreateEntityCommand,HiroVertexMessage>
create vertex entity using ogit/_type.If defined in OGIT for entity type one may set in content ogit/isPermanent = true to make entity immutable
API POST /api/graph/[version]/new/{ogit/_type}
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
body
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCreateEntityCommand(java.lang.String ogitType)protectedCreateEntityCommand(java.util.Map<java.lang.String,java.lang.Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiroVertexMessageexecute()protected GraphAPI.CreateEntityCommandself()-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
setBody, setJsonBodyFromMap, setJsonBodyFromMessage
-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Constructor Detail
-
CreateEntityCommand
protected CreateEntityCommand(java.lang.String ogitType)
- Parameters:
ogitType- ogit/_type of the vertex.
-
CreateEntityCommand
protected CreateEntityCommand(java.util.Map<java.lang.String,java.lang.Object> attributes)
- Parameters:
attributes- The complete entity data. Map 'attributes' needs to contain a key "ogit/_type" with a non-blank value.
-
-
Method Detail
-
self
protected GraphAPI.CreateEntityCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.CreateEntityCommand,HiroVertexMessage>
-
execute
public HiroVertexMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.CreateEntityCommand,HiroVertexMessage>- Returns:
HiroVertexMessageThe Json Response- 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.
-
-