Class ODataJson

java.lang.Object
io.skipcheck.tm1.client.odata.ODataJson

public final class ODataJson extends Object
OData 4.0 JSON control information names, and helpers for writing them.
  • Field Details

  • Method Details

    • bind

      public static 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

      public static 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