Interface Tm1Dialect


public interface Tm1Dialect
How to reach a kind of TM1 deployment: structural differences such as the REST API's root path. Only TM1 11 on-premises (V11) is implemented. The interface exists so TM1 12 (Planning Analytics Engine) and Planning Analytics Cloud, which have different roots and authentication, can be added without a redesign.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Tm1Dialect
    TM1 11 on-premises: the REST API is at http(s)://host:port/api/v1/.
  • Method Summary

    Modifier and Type
    Method
    Description
    The deployment kind, for logs and messages.
    The REST API's service root for a server's address.
  • Field Details

    • V11

      static final Tm1Dialect V11
      TM1 11 on-premises: the REST API is at http(s)://host:port/api/v1/.
  • Method Details

    • name

      String name()
      The deployment kind, for logs and messages.
      Returns:
      the name, such as TM1 11
    • serviceRoot

      String serviceRoot(String address)
      The REST API's service root for a server's address.
      Parameters:
      address - where the server is, such as http://tm1:8010; a full service root is accepted too
      Returns:
      the service root, ending in /
      Throws:
      IllegalArgumentException - if address isn't an address of this kind