All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.dev.neeffect.nee.security.User.kt Maven / Gradle / Ivy

The newest version!
package dev.neeffect.nee.security

import io.vavr.collection.List
import io.vavr.kotlin.toVavrList
import java.util.UUID

data class User(
    val id: UUID,
    val login: String,
    val roles: List,
    val displayName: String = login
)

data class UserRole(val roleName: String) {
    companion object {
        fun roles(vararg names: String): List = names.toVavrList()
            .map { UserRole(it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy