Packages

trait ApplicationFacade extends ServiceFacadeWithDatabase with ServiceFacade[ApplicationFacade]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApplicationFacade
  2. ServiceFacade
  3. ServiceFacadeWithDatabase
  4. ServiceFacadeBase
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val environment: String
    Definition Classes
    ServiceFacadeBase
  2. abstract def getAuditLog(outputStream: OutputStream, from: LocalDateTime = LocalDateTime.MIN, to: LocalDateTime = LocalDateTime.MAX, locale: String = getLogDefaultLocale, maxDecimals: Int = getLogDefaultMaxDecimals): Unit

    Gets the audit log for a specific time period.

    Gets the audit log for a specific time period. The audit log has information on all API request made by all (non-service) users. The data set is described by AuditLogEntry.

    outputStream

    The stream data is written to.

    from

    The lower bound on the audit log entries.

    to

    The upper bound on the audit log entries.

    locale

    The locale to use when formatting numbers, i.e. 'da'.

    maxDecimals

    The maximum number of decimals to include when formatting numbers.

  3. abstract def getCacheStatistics: Array[CacheStatistics]
    Definition Classes
    ServiceFacadeBase
  4. abstract def getCluster(id: String): ClusterInfo

    Gets the most recent version of a specific cluster.

    Gets the most recent version of a specific cluster.

    id

    The unique id of the cluster.

  5. abstract def getClusters(includeDeleted: Boolean = false): Array[ClusterInfo]

    Gets the most recent version of each cluster.

    Gets the most recent version of each cluster.

    includeDeleted

    Whether to include deleted clusters.

  6. abstract def getClusters: Array[ClusterInfo]

    Gets the most recent version of each cluster.

  7. abstract def getConfigParameter(id: String): ConfigParameterInfo

    Gets the most recent version of a specific config parameter.

    Gets the most recent version of a specific config parameter.

    id

    The unique id of the config parameter.

  8. abstract def getConfigParameters(serviceClass: Option[String] = None, serviceName: Option[String] = None, includeDeleted: Boolean = false): Array[ConfigParameterInfo]

    Gets the most recent version of each config parameter with optional filters.

    Gets the most recent version of each config parameter with optional filters.

    serviceClass

    The simple name of the service interface or None for any interface.

    serviceName

    The service name of the service instance or None for any instance.

    includeDeleted

    Whether to include deleted config parameters.

  9. abstract def getCurrentUser: ServiceUserInfo

    Gets the most recent version of the current user.

  10. abstract def getDatabase(outputStream: OutputStream): Unit
    Definition Classes
    ServiceFacadeWithDatabase
  11. abstract def getDatabasePath: String
    Definition Classes
    ServiceFacadeWithDatabase
  12. abstract def getEnvironment(id: String): ServiceEnvironmentInfo

    Gets the most recent version of a specific environment.

    Gets the most recent version of a specific environment.

    id

    The unique id of the environment.

  13. abstract def getEnvironments(includeDeleted: Boolean = false): Array[ServiceEnvironmentInfo]

    Gets the most recent version of each environment.

    Gets the most recent version of each environment.

    includeDeleted

    Whether to include deleted environments.

  14. abstract def getEnvironments: Array[ServiceEnvironmentInfo]

    Gets the most recent version of each environment.

  15. abstract def getEventLog(outputStream: OutputStream, from: LocalDateTime = LocalDateTime.MIN, to: LocalDateTime = LocalDateTime.MAX, locale: String = getLogDefaultLocale, maxDecimals: Int = getLogDefaultMaxDecimals): Unit

    Gets the event log for a specific time period.

    Gets the event log for a specific time period. The event log has information on all log events triggered from application code, including all exceptions thrown. The data set is described by EventLogEntry.

    outputStream

    The stream data is written to.

    from

    The lower bound on the audit log entries.

    to

    The upper bound on the audit log entries.

    locale

    The locale to use when formatting numbers, i.e. 'da'.

    maxDecimals

    The maximum number of decimals to include when formatting numbers.

  16. abstract def getFile(path: String, outputStream: OutputStream): Unit
    Definition Classes
    ServiceFacadeBase
  17. abstract def getLink(id: String): LinkInfo

    Gets the most recent version of a specific link.

    Gets the most recent version of a specific link.

    id

    The unique id of the link.

  18. abstract def getLinks: Array[LinkInfo]

    Gets the most recent version of each active link.

  19. abstract def getLogForClusterState(machineId: String): String

    Get the log information on a specific cluster.

    Get the log information on a specific cluster.

    machineId

    The unique id of the cluster.

  20. abstract def getLogForMachineState(machineId: String): String

    Get the log information on a specific machine.

    Get the log information on a specific machine.

    machineId

    The unique id of the machine.

  21. abstract def getLogLevel: String
    Definition Classes
    ServiceFacadeBase
  22. abstract def getMachine(id: String): MachineInfo

    Gets the most recent version of a specific machine.

    Gets the most recent version of a specific machine.

    id

    The unique id of the machine.

  23. abstract def getMachines(includeDeleted: Boolean = false): Array[MachineInfo]

    Gets the most recent version of each machine.

    Gets the most recent version of each machine.

    includeDeleted

    Whether to include deleted machines.

  24. abstract def getMachines: Array[MachineInfo]

    Gets the most recent version of each machine.

  25. abstract def getPerformanceMetrics: PerformanceMetrics
    Definition Classes
    ServiceFacadeBase
  26. abstract def getServiceLocation(id: String, name: String, version: String, timeout: Int = defaultServiceWaitTimeout, expiration: Int = defaultServiceExpiration): Option[ServiceLocationInfo]

    Gets connection information for a specific service, if available.

    Gets connection information for a specific service, if available.

    id

    The simple type name of the service API interface, e.g. 'ApplicationFacade'.

    name

    The name of service instance.

    version

    The version of the service to request.

    timeout

    The maximum amount of seconds to wait for connection information.

    expiration

    The maximum age in seconds to accept for connection information.

  27. abstract def getServiceLocations: Array[ServiceLocationInfo]

    Gets all available information on services that are, or have been, connected to the application service.

  28. abstract def getStateForCluster(id: String): ClusterStateInfo

    Get the state information on a specific cluster.

    Get the state information on a specific cluster.

    id

    The unique id of the cluster.

  29. abstract def getStateForMachine(id: String): MachineStateInfo

    Get the state information on a specific machine.

    Get the state information on a specific machine.

    id

    The unique id of the machine.

  30. abstract def getUser(id: String): ServiceUserInfo

    Gets the most recent version of a specific user.

    Gets the most recent version of a specific user.

    id

    The unique id of the user.

  31. abstract def getUserActivity: Array[ServiceUserActivity]

    Gets basic activity information for all users that have been active since the service was started.

  32. abstract def getUserGroup(id: String): ServiceUserGroupInfo

    Gets the most recent version of a specific user group.

    Gets the most recent version of a specific user group.

    id

    The unique id of the user group.

  33. abstract def getUserGroups(includeDeleted: Boolean = false): Array[ServiceUserGroupInfo]

    Gets the most recent version of each user group.

    Gets the most recent version of each user group.

    includeDeleted

    Whether to include deleted user groups

  34. abstract def getUserGroups: Array[ServiceUserGroupInfo]

    Gets the most recent version of each user group.

  35. abstract def getUsers(includeDeleted: Boolean = false): Array[ServiceUserInfo]

    Gets the most recent version of each user.

    Gets the most recent version of each user.

    includeDeleted

    Whether to include deleted users.

  36. abstract def getUsers: Array[ServiceUserInfo]

    Gets the most recent version of each user.

  37. abstract def getVersion: String
    Definition Classes
    ServiceFacadeBase
  38. abstract def getVersionForCluster(id: String, version: UUID): ClusterInfo

    Gets a specific version of a specific cluster.

    Gets a specific version of a specific cluster.

    id

    The unique id of the cluster.

    version

    The UUID for the version.

  39. abstract def getVersionForConfigParameter(id: String, version: UUID): ConfigParameterInfo

    Gets a specific version of a specific config parameter.

    Gets a specific version of a specific config parameter.

    id

    The unique id of the config parameter.

    version

    The UUID for the version.

  40. abstract def getVersionForEnvironment(id: String, version: UUID): ServiceEnvironmentInfo

    Gets a specific version of a specific environment.

    Gets a specific version of a specific environment.

    id

    The unique id of the environment.

    version

    The UUID for the version.

  41. abstract def getVersionForMachine(id: String, version: UUID): MachineInfo

    Gets a specific version of a specific machine.

    Gets a specific version of a specific machine.

    id

    The unique id of the machine.

    version

    The UUID for the version.

  42. abstract def getVersionForUser(id: String, version: UUID): ServiceUserInfo

    Gets a specific version of a specific user.

    Gets a specific version of a specific user.

    id

    The unique id of the user.

    version

    The UUID for the version.

  43. abstract def getVersionForUserGroup(id: String, version: UUID): ServiceUserGroupInfo

    Gets a specific version of a specific user group.

    Gets a specific version of a specific user group.

    id

    The unique id of the user group.

    version

    The UUID for the version.

  44. abstract def getVersionsForCluster(id: String): Array[ClusterInfo]

    Gets all versions of a specific cluster.

    Gets all versions of a specific cluster.

    id

    The unique id of the cluster.

  45. abstract def getVersionsForConfigParameter(id: String): Array[ConfigParameterInfo]

    Gets all versions of a specific config parameter.

    Gets all versions of a specific config parameter.

    id

    The unique id of the config parameter.

  46. abstract def getVersionsForEnvironment(id: String): Array[ServiceEnvironmentInfo]

    Gets all versions of a specific environment.

    Gets all versions of a specific environment.

    id

    The unique id of the environment.

  47. abstract def getVersionsForMachine(id: String): Array[MachineInfo]

    Gets all versions of a specific machine.

    Gets all versions of a specific machine.

    id

    The unique id of the machine.

  48. abstract def getVersionsForUser(id: String): Array[ServiceUserInfo]

    Gets all versions of a specific user.

    Gets all versions of a specific user.

    id

    The unique id of the user.

  49. abstract def getVersionsForUserGroup(id: String): Array[ServiceUserGroupInfo]

    Gets all versions of a specific user group.

    Gets all versions of a specific user group.

    id

    The unique id of the user group.

  50. abstract def isReady: Boolean
    Definition Classes
    ServiceFacadeBase
  51. abstract def postAuditLog(entries: Array[AuditLogEntry]): Unit

    Append a collection of entries to the audit log.

    Append a collection of entries to the audit log.

    entries

    The collection of entries.

  52. abstract def postAwsCliCommand(region: String, scope: String, command: String): String
  53. abstract def postAzureCliCommand(command: String): String
  54. abstract def postBugReport(bugReport: BugReport): Unit

    Submit a bug report from a user to the system administrator.

    Submit a bug report from a user to the system administrator.

    bugReport

    Information on the bug report to send.

  55. abstract def postCachePurge(id: Option[String]): Unit
    Definition Classes
    ServiceFacadeBase
  56. abstract def postCluster(content: ClusterContent): Unit

    Creates a new version of a cluster with the specific content.

    Creates a new version of a cluster with the specific content.

    content

    The content of the new version.

  57. abstract def postConfigParameter(content: ConfigParameterContent): Unit

    Creates a new version of a config parameter with the specific content.

    Creates a new version of a config parameter with the specific content.

    content

    The content of the new version.

  58. abstract def postDatabaseBackup(encryptionEnabled: Option[Boolean], encryptionMasterKeyIdentifier: Option[String], outputRepository: String = EnvironmentVariables.output_repository): Unit
    Definition Classes
    ServiceFacadeWithDatabase
  59. abstract def postDeleteForCluster(id: String): Unit

    Marks a specific cluster as deleted.

    Marks a specific cluster as deleted. Technically a copy of the most recent version is created with the deletion time set.

    id

    The unique id of the cluster.

  60. abstract def postDeleteForConfigParameter(id: String): Unit

    Marks a specific config parameter as deleted.

    Marks a specific config parameter as deleted. Technically a copy of the most recent version is created with the deletion time set.

    id

    The unique id of the config parameter.

  61. abstract def postDeleteForEnvironment(id: String): Unit

    Marks a specific environment as deleted.

    Marks a specific environment as deleted. Technically a copy of the most recent version is created with the deletion time set. Only environments without result data can be deleted. Deleting an environment will eventually delete the databases and associated with that environment.

    id

    The unique id of the environment.

  62. abstract def postDeleteForLink(id: String): Unit

    Marks a specific link as deleted.

    Marks a specific link as deleted. Technically a copy of the most recent version is created with the deletion time set. The associated user is deleted alongside the link.

    id

    The unique id of the link.

  63. abstract def postDeleteForMachine(id: String): Unit

    Marks a specific machine as deleted.

    Marks a specific machine as deleted. Technically a copy of the most recent version is created with the deletion time set.

    id

    The unique id of the machine.

  64. abstract def postDeleteForUser(id: String): Unit

    Marks a specific user as deleted.

    Marks a specific user as deleted. Technically a copy of the most recent version is created with the deletion time set.

    id

    The unique id of the user.

  65. abstract def postDeleteForUserGroup(id: String): Unit

    Marks a specific user group as deleted.

    Marks a specific user group as deleted. Technically a copy of the most recent version is created with the deletion time set.

    id

    The unique id of the user group.

  66. abstract def postEmail(email: OutgoingEmail, environment: String): Array[EmailReceipt]

    Send an email using connection information in a given environment.

    Send an email using connection information in a given environment. Note that EnvironmentVariables.DATASOLVR_OUTGOING_MAIL_ENVIRONMENT takes precedence over the given environment.

    email

    Information on the email to send.

    environment

    The given environment.

  67. abstract def postEnvironment(content: ServiceEnvironmentContent): Unit

    Creates a new version of a environment with the specific content.

    Creates a new version of a environment with the specific content.

    content

    The content of the new version.

  68. abstract def postEnvironmentBackup(id: String, encryptionEnabled: Option[Boolean], encryptionMasterKeyIdentifier: Option[String], outputRepository: Option[String]): Unit

    Creates a new backup of the database for each service used by the environment.

    Creates a new backup of the database for each service used by the environment.

    id

    The unique ID of the environment

    encryptionEnabled

    An optional value indicating whether to encrypt the backup. If left blank, the system default will be used

    encryptionMasterKeyIdentifier

    An optional identifier for a master key to use for encrypting the backup. Must be specified if encryptionEnabled is set to true

    outputRepository

    An optional URI for an alternate output repository where to store the backup

  69. abstract def postErrorReport(errorReport: ErrorReport): Unit

    Submit an internal error report to the system administrator.

    Submit an internal error report to the system administrator.

    errorReport

    Information on the error report to send.

  70. abstract def postEventLog(entries: Array[EventLogEntry]): Unit

    Append a collection of entries to the event log.

    Append a collection of entries to the event log.

    entries

    The collection of entries.

  71. abstract def postFlushLog(): Unit

    Flush the audit and event log buffers to persistent storage.

    Flush the audit and event log buffers to persistent storage. This is done automatically on a periodic basis, but can be triggered manually if one needs to restart the service without dropping the buffers.

  72. abstract def postForgotPassword(email: String): Unit

    Sends an email with password reset information to the user matching a specific email address.

    Sends an email with password reset information to the user matching a specific email address. If the email address does not match any user nothing is done. This requires EnvironmentVariables.auth_password_reset_url to be configured.

    email

    The specific email address.

  73. abstract def postInstanceProtectionForCluster(instanceId: String, protect: Boolean): Unit

    Sets whether a specific AWS instance managed by a cluster is protected from termination.

    Sets whether a specific AWS instance managed by a cluster is protected from termination. For internal use only. Used to prevent auto scaling from terminating busy instances.

    instanceId

    The AWS id of the instance.

    protect

    Whether the instance should be protected or not.

  74. abstract def postLdapQuery(query: LdapQuery): Array[LdapEntry]
  75. abstract def postLink(link: LinkContent): LinkInfo

    Creates a new link with the specified content.

    Creates a new link with the specified content.

    link

    The content of the link.

  76. abstract def postLinkLogin(id: String): LinkLoginResult

    Obtains an authentication token for the user associated with the given link id, as well as a url that the user should be redirected to.

    Obtains an authentication token for the user associated with the given link id, as well as a url that the user should be redirected to.

    id

    The unique id of the link.

  77. abstract def postLogin(credentials: Login): LoginResult

    Obtains an authentication token for given user credentials.

    Obtains an authentication token for given user credentials. If TOTP is enabled this will initially return a TOTP challenge.

    credentials

    The username and password.

  78. abstract def postLogout(user: String): Unit

    Logout a specific user.

    Logout a specific user. This invalidate all authentication tokens associated with the user.

    user

    The specific user.

  79. abstract def postLogoutSelf(uuid: UUID): Unit

    Invalidate all authentication tokens associated with the user associated with a specific authentication token.

    Invalidate all authentication tokens associated with the user associated with a specific authentication token.

    uuid

    The specific token to use.

  80. abstract def postMachine(content: MachineContent): Unit

    Creates a new version of a machine with the specific content.

    Creates a new version of a machine with the specific content.

    content

    The content of the new version.

  81. abstract def postResendSignUpSelf(): Unit

    Runs the sign up script for the authenticated user.

    Runs the sign up script for the authenticated user. This would be used to resend the verification email.

  82. abstract def postResetTotpSecret(userId: String): Unit

    Reset the TOTP secret for a specific user.

    Reset the TOTP secret for a specific user. Use this if a user no longer has access to their TOTP device.

    userId

    The unique id of the user.

  83. abstract def postRestart: Unit
    Definition Classes
    ServiceFacadeBase
  84. abstract def postServiceLocation(id: String, name: String, buildInfo: BuildLabels, hostname: String, port: Int, startTime: LocalDateTime): Unit

    Update the information on a service with given id and name.

    Update the information on a service with given id and name.

    id

    The simple type name of the service API interface, e.g. 'ApplicationFacade'.

    name

    The name of service instance.

    buildInfo

    The build information for the service instance.

    hostname

    The DNS name or IP address where the service is located.

    port

    The port on which the service can be reached.

    startTime

    The time when the service was started.

  85. abstract def postSignUp(credentials: Login): Unit

    Register a user for sign up with given credentials.

    Register a user for sign up with given credentials. This stores the user in an unauthorized state and runs the sign up script configured in EnvironmentVariables.sign_up_script_id.

    credentials

    The credentials for the user signing up.

  86. abstract def postStartForCluster(id: String): Unit

    Starts a specific cluster.

    Starts a specific cluster. Starting a cluster means that it will actively monitor instance requests.

    id

    The unique id of the cluster

  87. abstract def postStartForMachine(id: String, stopAfter: Option[LocalDateTime]): Unit

    Starts a specific machine.

    Starts a specific machine. Depending on the machine configuration this may or may not start the underlying AWS instance.

    id

    The unique id of the machine.

    stopAfter

    A date after which to automatically stop the machine.

  88. abstract def postStopForCluster(id: String): Unit

    Stop a specific cluster.

    Stop a specific cluster. Stopping a cluster disables all monitoring of cluster instances. It does not stop those instances.

    id

    The unique id of the cluster

  89. abstract def postStopForMachine(id: String): Unit

    Stops a specific machine.

    Stops a specific machine. This will always stop the underlying AWS instance.

    id

    The unique id of the machine.

  90. abstract def postToken(token: UUID): Option[AuthorizationInfo]

    Gets the authorization information associated with a specific authentication token, if available.

    Gets the authorization information associated with a specific authentication token, if available.

    token

    The specific authentication token.

  91. abstract def postUser(content: ServiceUserContent): Unit

    Creates a new version of a user with the specific content.

    Creates a new version of a user with the specific content.

    content

    The content of the new version.

  92. abstract def postUserGroup(content: ServiceUserGroupContent): Unit

    Creates a new version of a user group with the specific content.

    Creates a new version of a user group with the specific content.

    content

    The content of the new version.

  93. abstract def postVacuumDatabase: Unit
    Definition Classes
    ServiceFacadeWithDatabase
  94. abstract def postVerifyEmail(email: String, token: UUID): Unit

    Verify an email address for a given verification token.

    Verify an email address for a given verification token. This is matched against the value stored in UserOptions.EMAIL_VERIFICATION_TOKEN.

    email

    The email address to verify.

    token

    The given email verification token.

  95. abstract def setLogLevel(level: String): Unit
    Definition Classes
    ServiceFacadeBase
  96. abstract def withTimeout(seconds: Int): ApplicationFacade
    Definition Classes
    ServiceFacade
  97. abstract def withToken(token: UUID): ApplicationFacade
    Definition Classes
    ServiceFacade

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. val getLogDefaultLocale: String

    The default value for locale used in getAuditLog and getEventLog.

    The default value for locale used in getAuditLog and getEventLog. The value is equal to EnvironmentVariables.DATASOLVR_DEFAULT_OUTPUT_LOCALE.

  10. val getLogDefaultMaxDecimals: Int

    The default value for maxDecimals used in getAuditLog and getEventLog.

    The default value for maxDecimals used in getAuditLog and getEventLog. The value is equal to EnvironmentVariables.DATASOLVR_DEFAULT_MAX_DECIMALS.

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. def waitIsReady(timeoutSeconds: Int, pollIntervalSeconds: Int): Unit
    Definition Classes
    ServiceFacadeBase

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ServiceFacadeBase

Inherited from AnyRef

Inherited from Any

Ungrouped