UserPrincipal

data class UserPrincipal(id: Long, organizationPermissions: Map<Long, Collection<Permission>>, projectPermissions: Map<Long, Collection<Permission>>) : AccessPrincipal

An authenticated user.

Constructors

Link copied to clipboard
fun UserPrincipal(id: Long, organizationPermissions: Map<Long, Collection<Permission>>, projectPermissions: Map<Long, Collection<Permission>>)

Functions

Link copied to clipboard
inline fun <T : Resource> getPermissions(): Map<Long, Collection<Permission>>
Link copied to clipboard
fun hasAccess(resource: Resource, permission: Permission): Boolean

Properties

Link copied to clipboard
val accesses: Collection<Access>
Link copied to clipboard
val id: Long
Link copied to clipboard
val organizationPermissions: Map<Long, Collection<Permission>>
Link copied to clipboard
val projectPermissions: Map<Long, Collection<Permission>>

Sources

Link copied to clipboard