public class Cumulio extends Object
| Constructor and Description |
|---|
Cumulio(String key,
String token) |
Cumulio(String key,
String token,
String api_host) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
associate(String resource,
String id,
String associationRole,
String associationId) |
org.json.JSONObject |
associate(String resource,
String id,
String associationRole,
String associationId,
com.google.common.collect.ImmutableMap properties) |
org.json.JSONObject |
associate(String resource,
String id,
String associationRole,
String associationId,
org.json.JSONObject properties) |
org.json.JSONObject |
create(String resource,
com.google.common.collect.ImmutableMap properties) |
org.json.JSONObject |
create(String resource,
com.google.common.collect.ImmutableMap properties,
com.google.common.collect.ImmutableList associations) |
org.json.JSONObject |
create(String resource,
org.json.JSONObject properties) |
org.json.JSONObject |
create(String resource,
org.json.JSONObject properties,
org.json.JSONArray associations) |
org.json.JSONObject |
delete(String resource,
String id) |
org.json.JSONObject |
delete(String resource,
String id,
com.google.common.collect.ImmutableMap properties) |
org.json.JSONObject |
delete(String resource,
String id,
org.json.JSONObject properties) |
org.json.JSONObject |
dissociate(String resource,
String id,
String associationRole,
String associationId) |
org.json.JSONObject |
get(String resource,
com.google.common.collect.ImmutableMap filter) |
org.json.JSONObject |
get(String resource,
org.json.JSONObject filter) |
org.json.JSONObject |
query(com.google.common.collect.ImmutableMap filter) |
org.json.JSONObject |
query(org.json.JSONObject filter) |
org.json.JSONObject |
update(String resource,
String id,
com.google.common.collect.ImmutableMap properties) |
org.json.JSONObject |
update(String resource,
String id,
org.json.JSONObject properties) |
public Cumulio(String key, String token)
key - String, your Cumul.io API Keytoken - String, your Cumul.io API Tokenpublic org.json.JSONObject create(String resource, org.json.JSONObject properties) throws IOException
resource - String, the resource type E.g.'securable'properties - JSONObject of resource propertiesIOException - In case the 'create' call could not be succesfully completedpublic org.json.JSONObject create(String resource, com.google.common.collect.ImmutableMap properties) throws IOException
resource - String, the resource type E.g.'securable'properties - JSONObject of resource propertiesIOException - In case the 'create' call could not be succesfully completedpublic org.json.JSONObject create(String resource, com.google.common.collect.ImmutableMap properties, com.google.common.collect.ImmutableList associations) throws IOException
resource - String, the resource type E.g.'securable'properties - ImmutableMap of resource propertiesassociations - ImmutableList of associationsIOException - In case the 'create' call could not be succesfully completedpublic org.json.JSONObject create(String resource, org.json.JSONObject properties, org.json.JSONArray associations) throws IOException
resource - String, the resource type E.g.'securable'properties - JSONObject of resource propertiesassociations - JSONArray of associationsIOException - In case the 'create' call could not be succesfully completedpublic org.json.JSONObject get(String resource, com.google.common.collect.ImmutableMap filter) throws IOException
resource - String, the resource type E.g.'securable'filter - ImmutableMap of filtersIOException - In case the 'get' call could not be succesfully completedpublic org.json.JSONObject get(String resource, org.json.JSONObject filter) throws IOException
resource - String, the resource type E.g.'securable'filter - JSONObject of filtersIOException - In case the 'get' call could not be succesfully completedpublic org.json.JSONObject delete(String resource, String id) throws IOException
resource - String, the resource type E.g.'securable'id - String id of resouce to be deletedIOException - In case the 'delete' call could not be succesfully completedpublic org.json.JSONObject delete(String resource, String id, com.google.common.collect.ImmutableMap properties) throws IOException
resource - String, the resource type E.g.'securable'id - String id of resource to be deletedproperties - ImmutableMap properties of resource to be deletedIOException - In case the 'delete' call could not be succesfully completedpublic org.json.JSONObject delete(String resource, String id, org.json.JSONObject properties) throws IOException
resource - String, the resource type E.g.'securable'id - String id of resource to be deletedproperties - JSONObject properties of resource to be deletedIOException - In case the 'delete' call could not be succesfully completedpublic org.json.JSONObject update(String resource, String id, com.google.common.collect.ImmutableMap properties) throws IOException
resource - String, the resource type E.g.'securable'id - String id of resource to be updatedproperties - ImmutableMap properties of resource to be updatedIOException - In case the 'update' call could not be succesfully completedpublic org.json.JSONObject update(String resource, String id, org.json.JSONObject properties) throws IOException
resource - String, the resource type E.g.'securable'id - String id of resource to be updatedproperties - JSONObject properties of resource to be updatedIOException - In case the 'update' call could not be succesfully completedpublic org.json.JSONObject associate(String resource, String id, String associationRole, String associationId) throws IOException
resource - String, the resource type E.g.'securable'id - String, id of resourceassociationRole - StringassociationId - StringIOException - In case the 'associate' call could not be succesfully completedpublic org.json.JSONObject associate(String resource, String id, String associationRole, String associationId, com.google.common.collect.ImmutableMap properties) throws IOException
resource - String, the resource type E.g.'securable'id - String, id of resourceassociationRole - StringassociationId - Stringproperties - ImmutableMap of propertiesIOException - In case the 'associate' call could not be succesfully completedpublic org.json.JSONObject associate(String resource, String id, String associationRole, String associationId, org.json.JSONObject properties) throws IOException
resource - String, the resource type E.g.'securable'id - String, id of resourceassociationRole - StringassociationId - Stringproperties - JSONObject of propertiesIOException - In case the 'associate' call could not be succesfully completedpublic org.json.JSONObject dissociate(String resource, String id, String associationRole, String associationId) throws IOException
resource - String, the resource type E.g.'securable'id - String, id of resourceassociationRole - StringassociationId - StringIOException - In case the 'dissociate' call could not be succesfully completedpublic org.json.JSONObject query(org.json.JSONObject filter)
throws IOException
filter - IOException - In case the 'query' call could not be succesfully completedpublic org.json.JSONObject query(com.google.common.collect.ImmutableMap filter)
throws IOException
filter - IOException - In case the 'query' call could not be succesfully completedCopyright © 2023. All rights reserved.