Record Class Tm1Properties

java.lang.Object
java.lang.Record
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1Properties
Record Components:
address - the server's address, such as http://tm1:8010; the service root is derived with the TM1 11 dialect. Set this or base-url.
baseUrl - the REST API's service root itself, such as http://tm1:8010/api/v1/; takes precedence over address
user - the user to log in as
password - the password, or none for an empty one
namespace - the CAM namespace, for CAM security (TM1 security mode 5); with it, the client logs in with CAMNamespace rather than Basic
cognosUrl - the Cognos dispatcher TM1 is pointed at, such as http://cognos:9300; with it and namespace, the client logs on to Cognos for a CAM passport at each login, so only Cognos sees the password
sessionContext - the label TM1 shows for the sessions in Sessions and Threads; spring.application.name unless set
timeouts - timeouts by kind of work
ssl - the SSL bundle for HTTPS
pool - the per-identity session pool

@ConfigurationProperties("tm1") public record Tm1Properties(@Nullable String address, @Nullable String baseUrl, @Nullable String user, @Nullable String password, @Nullable String namespace, @Nullable String cognosUrl, @Nullable String sessionContext, Tm1Properties.Timeouts timeouts, Tm1Properties.Ssl ssl, Tm1Properties.Pool pool) extends Record
The tm1.* properties: the server named default, the one a plain Tm1Client injection gets. Each tm1.servers.<name>.* has the same properties (Tm1ServersProperties). The starter binds these itself when it creates the server's beans; there's no bean of this type.
# src/main/resources/application.yml
tm1:
  # Where TM1 is: the server's address, as for tm1-server on this computer
  address: http://localhost:8010
  # Who to log in as: tm1-server's default admin, with no password
  user: admin
  password: ""
  # With Cognos (CAM) security, also name the CAM namespace:
  # namespace: LDAP
  • Constructor Details

    • Tm1Properties

      public Tm1Properties(@Nullable String address, @Nullable String baseUrl, @Nullable String user, @Nullable String password, @Nullable String namespace, @Nullable String cognosUrl, @Nullable String sessionContext, @DefaultValue Tm1Properties.Timeouts timeouts, @DefaultValue Tm1Properties.Ssl ssl, @DefaultValue Tm1Properties.Pool pool)
      Creates an instance of a Tm1Properties record class.
      Parameters:
      address - the value for the address record component
      baseUrl - the value for the baseUrl record component
      user - the value for the user record component
      password - the value for the password record component
      namespace - the value for the namespace record component
      cognosUrl - the value for the cognosUrl record component
      sessionContext - the value for the sessionContext record component
      timeouts - the value for the timeouts record component
      ssl - the value for the ssl record component
      pool - the value for the pool record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • address

      public @Nullable String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • baseUrl

      public @Nullable String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • user

      public @Nullable String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • password

      public @Nullable String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • namespace

      public @Nullable String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • cognosUrl

      public @Nullable String cognosUrl()
      Returns the value of the cognosUrl record component.
      Returns:
      the value of the cognosUrl record component
    • sessionContext

      public @Nullable String sessionContext()
      Returns the value of the sessionContext record component.
      Returns:
      the value of the sessionContext record component
    • timeouts

      public Tm1Properties.Timeouts timeouts()
      Returns the value of the timeouts record component.
      Returns:
      the value of the timeouts record component
    • ssl

      public Tm1Properties.Ssl ssl()
      Returns the value of the ssl record component.
      Returns:
      the value of the ssl record component
    • pool

      public Tm1Properties.Pool pool()
      Returns the value of the pool record component.
      Returns:
      the value of the pool record component