Package com.tp2020.backend.utils

Types

AuthenticationConfigurationModel
Link copied to clipboard
data class AuthenticationConfigurationModel(adminUserName: String, adminPassword: String)
ConfigurationModel
Link copied to clipboard
data class ConfigurationModel(deploymentConfiguration: DeploymentConfigurationModel, authenticationConfiguration: AuthenticationConfigurationModel, databaseConfiguration: DatabaseConfigurationModel, jwtConfiguration: JwtConfigurationModel, cookieConfiguration: CookieConfigurationModel)
CookieConfigurationModel
Link copied to clipboard
data class CookieConfigurationModel(secure: Boolean, sameSite: SameSite?)
DatabaseConfigurationModel
Link copied to clipboard
data class DatabaseConfigurationModel(driverClassName: String, jdbcUrl: String, username: String, password: String)
DatabaseConnection
Link copied to clipboard
object DatabaseConnection
DeploymentConfigurationModel
Link copied to clipboard
data class DeploymentConfigurationModel(rootPath: String)
ErrorResponse
Link copied to clipboard
data class ErrorResponse(type: ErrorResponse.Type, message: String)
InsertOrUpdate
Link copied to clipboard
class InsertOrUpdate<Key : Any>(keys: Array<out Column<*>>, table: Table, isIgnore: Boolean) : InsertStatement<Key>
JwtConfigurationModel
Link copied to clipboard
data class JwtConfigurationModel(issuer: String, secretKey: String)
JwtTokensAuthenticationProvider
Link copied to clipboard
class JwtTokensAuthenticationProvider(configuration: JwtTokensAuthenticationProvider.Configuration) : AuthenticationProvider
LowerCaseUnaccent
Link copied to clipboard
class LowerCaseUnaccent<T : String?>(expr: Expression<T>) : Function<T>

Functions

insertOrUpdate
Link copied to clipboard
fun <T : Table> T.insertOrUpdate(vararg keys: Column<*>, body: T.(InsertStatement<Number>) -> Unit): InsertOrUpdate<Number>
jwtTokenCredentials
Link copied to clipboard
fun ApplicationCall.jwtTokenCredentials(verifier: JWTVerifier?, cookieName: String?, secureCookie: Boolean): JWTCredential?
jwtTokens
Link copied to clipboard
fun Authentication.Configuration.jwtTokens(name: String? = null, configure: JwtTokensAuthenticationProvider.Configuration.() -> Unit)
loadConfigurationModel
Link copied to clipboard
fun ApplicationConfig.loadConfigurationModel(): ConfigurationModel
logger
Link copied to clipboard
fun Any.logger(): Lazy<Logger>
lowerCaseUnaccent
Link copied to clipboard
fun <T : String?> Expression<T>.lowerCaseUnaccent(): LowerCaseUnaccent<T>

Properties

globalLogger
Link copied to clipboard
val globalLogger: Logger