Package io.cumul.sdk
Class Cumulio
java.lang.Object
io.cumul.sdk.Cumulio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectorg.json.JSONObjectassociate(String resource, String id, String associationRole, String associationId, com.google.common.collect.ImmutableMap properties)org.json.JSONObjectassociate(String resource, String id, String associationRole, String associationId, org.json.JSONObject properties)org.json.JSONObjectorg.json.JSONObjectcreate(String resource, com.google.common.collect.ImmutableMap properties, com.google.common.collect.ImmutableList associations)org.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectdissociate(String resource, String id, String associationRole, String associationId)org.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectquery(com.google.common.collect.ImmutableMap filter)org.json.JSONObjectquery(org.json.JSONObject filter)org.json.JSONObjectorg.json.JSONObject
-
Constructor Details
-
Cumulio
- Parameters:
key- String, your Cumul.io API Keytoken- String, your Cumul.io API Token
-
Cumulio
- Parameters:
key- String, your Cumul.io API Keytoken- String, your Cumul.io API Tokenapi_host- String, Cumul.io API endpoint
-
-
Method Details
-
create
public org.json.JSONObject create(String resource, org.json.JSONObject properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'properties- JSONObject of resource properties- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'create' call could not be succesfully completed
-
create
public org.json.JSONObject create(String resource, com.google.common.collect.ImmutableMap properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'properties- JSONObject of resource properties- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'create' call could not be succesfully completed
-
create
public org.json.JSONObject create(String resource, com.google.common.collect.ImmutableMap properties, com.google.common.collect.ImmutableList associations) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'properties- ImmutableMap of resource propertiesassociations- ImmutableList of associations- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'create' call could not be succesfully completed
-
create
public org.json.JSONObject create(String resource, org.json.JSONObject properties, org.json.JSONArray associations) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'properties- JSONObject of resource propertiesassociations- JSONArray of associations- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'create' call could not be succesfully completed
-
get
public org.json.JSONObject get(String resource, com.google.common.collect.ImmutableMap filter) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'filter- ImmutableMap of filters- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'get' call could not be succesfully completed
-
get
- Parameters:
resource- String, the resource type E.g.'securable'filter- JSONObject of filters- Returns:
- JSONObject response if successful
- Throws:
IOException- In case the 'get' call could not be succesfully completed
-
delete
- Parameters:
resource- String, the resource type E.g.'securable'id- String id of resouce to be deleted- Returns:
- Empty Response
- Throws:
IOException- In case the 'delete' call could not be succesfully completed
-
delete
public org.json.JSONObject delete(String resource, String id, com.google.common.collect.ImmutableMap properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String id of resource to be deletedproperties- ImmutableMap properties of resource to be deleted- Returns:
- Empty response
- Throws:
IOException- In case the 'delete' call could not be succesfully completed
-
delete
public org.json.JSONObject delete(String resource, String id, org.json.JSONObject properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String id of resource to be deletedproperties- JSONObject properties of resource to be deleted- Returns:
- Empty response
- Throws:
IOException- In case the 'delete' call could not be succesfully completed
-
update
public org.json.JSONObject update(String resource, String id, com.google.common.collect.ImmutableMap properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String id of resource to be updatedproperties- ImmutableMap properties of resource to be updated- Returns:
- JSONObject response
- Throws:
IOException- In case the 'update' call could not be succesfully completed
-
update
public org.json.JSONObject update(String resource, String id, org.json.JSONObject properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String id of resource to be updatedproperties- JSONObject properties of resource to be updated- Returns:
- JSONObject response
- Throws:
IOException- In case the 'update' call could not be succesfully completed
-
associate
public org.json.JSONObject associate(String resource, String id, String associationRole, String associationId) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String, id of resourceassociationRole- StringassociationId- String- Returns:
- JSONObject
- Throws:
IOException- In case the 'associate' call could not be succesfully completed
-
associate
public org.json.JSONObject associate(String resource, String id, String associationRole, String associationId, com.google.common.collect.ImmutableMap properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String, id of resourceassociationRole- StringassociationId- Stringproperties- ImmutableMap of properties- Returns:
- JSONObject
- Throws:
IOException- In case the 'associate' call could not be succesfully completed
-
associate
public org.json.JSONObject associate(String resource, String id, String associationRole, String associationId, org.json.JSONObject properties) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String, id of resourceassociationRole- StringassociationId- Stringproperties- JSONObject of properties- Returns:
- JSONObject
- Throws:
IOException- In case the 'associate' call could not be succesfully completed
-
dissociate
public org.json.JSONObject dissociate(String resource, String id, String associationRole, String associationId) throws IOException- Parameters:
resource- String, the resource type E.g.'securable'id- String, id of resourceassociationRole- StringassociationId- String- Returns:
- JSONObject
- Throws:
IOException- In case the 'dissociate' call could not be succesfully completed
-
query
- Parameters:
filter-- Returns:
- Throws:
IOException- In case the 'query' call could not be succesfully completed
-
query
- Parameters:
filter-- Returns:
- Throws:
IOException- In case the 'query' call could not be succesfully completed
-