Server

class Server : ConnectionWrapper

Describes a connection to a SAS Visual Analytics server.

Since

8.30

Types

Link copied to clipboard
sealed class Result

Describes the result of a report subscribe operation.

Properties

Link copied to clipboard
open override val allowsGuestMode: Boolean

Indicates whether the server allows guest mode (true) or not (not true).

Link copied to clipboard
open override val description: String?

An optional description of the connection.

Link copied to clipboard
open override val esriEnabled: Boolean
Link copied to clipboard
open override var esriPassword: String?

Fetched asynchronously with fetchEsriCreds.

Link copied to clipboard
open override val esriSupported: Boolean
Link copied to clipboard
open override var esriUserId: String?

Fetched asynchronously with fetchEsriCreds.

Link copied to clipboard
open override val hostName: String

The host name or IP address of the server.

Link copied to clipboard
open override val password: String?

The password to use when creating the connection, or null if the connection uses guest mode or has already been created.

Link copied to clipboard
open override val port: Int

The port used in the connection.

Link copied to clipboard

All subscribed reports on this server.

Link copied to clipboard
open override val useGuestMode: Boolean

Indicates whether the connection uses guest mode (true) or a userId/password (not true).

Link copied to clipboard
open override var userAvatar: String?

Fetched asynchronously with fetchUserAvatar.

Link copied to clipboard
open override val userDisplayName: String?
Link copied to clipboard
open override val userId: String?

The user ID to use when creating the connection, or null if the connection uses guest mode.

Link copied to clipboard
open override val useSsl: Boolean

Indicates whether the connection uses HTTPS (true) or HTTP (not true).

Link copied to clipboard
open override val useStdAuth: Boolean

Whether to use standard (user ID/password) authentication instead of web authentication even if the latter is supported by this connection. This may require special configuration on the server.

Link copied to clipboard
val uuid: String?

Functions

Link copied to clipboard
suspend fun fetchEsriCreds(timeout: Duration? = null): Boolean

Populate esriUserId and esriPassword.

Link copied to clipboard
suspend fun fetchUserAvatar(timeout: Duration? = null): Boolean

Populate userAvatar.

Link copied to clipboard
fun subscribe(descriptors: List<ReportDescriptor>, updateIfSubscribed: Boolean, onSubscribeComplete: (Server.Result) -> Unit? = null)

Subscribe to the given reports.

Link copied to clipboard
fun unsubscribe(report: Report)

Unsubscribe from the given report.