ODataJson
import io.skipcheck.tm1.client.odata.ODataJson;OData 4.0 JSON control information names, and helpers for writing them.
Members
CONTEXT static | The context URL. |
ETAG static | An entity's ETag, for optimistic concurrency (If-Match). |
TYPE static | The (derived) type of an entity, e.g. |
ID static | An entity's ID. |
NEXT_LINK static | The next page of a partial collection. |
DELTA_LINK static | The link for changes since this response, with change tracking. |
COUNT static | The total number of items, with $count=true. |
BIND_SUFFIX static | The suffix binding a navigation property to existing entities in a request. |
bind static | A single-valued binding, for a request body. |
bind static | A collection-valued binding. |
CONTEXT
staticString CONTEXTThe context URL.
ETAG
staticString ETAGAn entity's ETag, for optimistic concurrency (If-Match).
TYPE
staticString TYPEThe (derived) type of an entity, e.g. #ibm.tm1.api.v1.MDXView.
ID
staticString IDAn entity's ID.
NEXT_LINK
staticString NEXT_LINKThe next page of a partial collection.
DELTA_LINK
staticString DELTA_LINKThe link for changes since this response, with change tracking.
COUNT
staticString COUNTThe total number of items, with $count=true.
BIND_SUFFIX
staticString BIND_SUFFIXThe suffix binding a navigation property to existing entities in a request.
bind
staticstatic Map<String,Object> bind(String navigation, ODataPath target) A single-valued binding, for a request body:
"Subset@odata.bind": "Dimensions('d')/Hierarchies('h')/Subsets('s')".
Parameters
navigation- the navigation property's name
target- the entity to bind to
Returns
- a one-entry map, to merge into the request body
bind
staticstatic Map<String,Object> bind(String navigation, List<ODataPath> targets) A collection-valued binding:
"Dimensions@odata.bind": ["Dimensions('a')", ...]. In OData 4.0, which TM1
speaks, this is the only way to link to existing entities.
Parameters
navigation- the navigation property's name
targets- the entities to bind to
Returns
- a one-entry map, to merge into the request body
Also in the Javadoc.