UserWithoutTenantId

mbauer83.zio_http_authorization.User$.UserWithoutTenantId
trait UserWithoutTenantId[I <: UserId] extends User[I, Nothing]

Simplifies User-models for single-tenant systems.

Attributes

Graph
Supertypes
trait User[I, Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def hasPermissionForResource(permission: String | Symbol)(resource: Resource[_]): Boolean

Returns true if and only if the user has the permission with an associated ResourceSelector that matches the given resource.

Returns true if and only if the user has the permission with an associated ResourceSelector that matches the given resource.

Attributes

Inherited from:
User
def hasRole(role: Role): Boolean

Returns true if and only if the role is associated with the user.

Returns true if and only if the role is associated with the user.

Attributes

Inherited from:
User

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

val tenantId: Option[Nothing]

Inherited fields

val id: I

Attributes

Inherited from:
User

Attributes

Inherited from:
User
val roles: Set[Role]

Attributes

Inherited from:
User