Record Class Tm1Properties
java.lang.Object
java.lang.Record
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1Properties
- Record Components:
address- the server's address, such ashttp://tm1:8010; the service root is derived with the TM1 11 dialect. Set this orbase-url.baseUrl- the REST API's service root itself, such ashttp://tm1:8010/api/v1/; takes precedence overaddressuser- the user to log in aspassword- the password, or none for an empty onenamespace- the CAM namespace, for CAM security (TM1 security mode 5); with it, the client logs in withCAMNamespacerather than BasiccognosUrl- the Cognos dispatcher TM1 is pointed at, such ashttp://cognos:9300; with it andnamespace, the client logs on to Cognos for a CAM passport at each login, so only Cognos sees the passwordsessionContext- the label TM1 shows for the sessions inSessionsandThreads;spring.application.nameunless settimeouts- timeouts by kind of workssl- the SSL bundle for HTTPSpool- 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordTheTm1SessionPool, one session per identity, for applications acting on behalf of many users.static final recordHTTPS settings.static final recordTimeouts by kind of work; unset ones keep the client's defaults (seeTm1Timeouts). -
Constructor Summary
ConstructorsConstructorDescriptionTm1Properties(@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) Creates an instance of aTm1Propertiesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringaddress()Returns the value of theaddressrecord component.@Nullable StringbaseUrl()Returns the value of thebaseUrlrecord component.@Nullable StringReturns the value of thecognosUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thenamespacerecord component.@Nullable Stringpassword()Returns the value of thepasswordrecord component.pool()Returns the value of thepoolrecord component.@Nullable StringReturns the value of thesessionContextrecord component.ssl()Returns the value of thesslrecord component.timeouts()Returns the value of thetimeoutsrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringuser()Returns the value of theuserrecord component.
-
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 aTm1Propertiesrecord class.- Parameters:
address- the value for theaddressrecord componentbaseUrl- the value for thebaseUrlrecord componentuser- the value for theuserrecord componentpassword- the value for thepasswordrecord componentnamespace- the value for thenamespacerecord componentcognosUrl- the value for thecognosUrlrecord componentsessionContext- the value for thesessionContextrecord componenttimeouts- the value for thetimeoutsrecord componentssl- the value for thesslrecord componentpool- the value for thepoolrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
address
-
baseUrl
-
user
-
password
-
namespace
-
cognosUrl
-
sessionContext
Returns the value of thesessionContextrecord component.- Returns:
- the value of the
sessionContextrecord component
-
timeouts
-
ssl
-
pool
-