UserPermission

Provides factory for creating user permissions.

A user permission should be applied to an operation that must be restricted to a specific user. For example, if a user owns a resource, then write access to the resource can be restricted to the user.

See also
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(userId: String): Permission

Creates user permission with supplied user identifier.

Creates user permission with supplied user identifier.

Value Params
userId

user identifier

def toSet(ids: Iterable[String]): Set[Permission]

Creates set of user permissions with supplied identifiers.

Creates set of user permissions with supplied identifiers.

Value Params
ids

user identifiers

def toSet(one: String, more: String*): Set[Permission]

Creates set of user permissions with supplied identifiers.

Creates set of user permissions with supplied identifiers.

Value Params
more

additional user identifiers

one

user identifier

def unapply(perm: Permission): Option[String]

Destructures user permission to its user identifier.

Destructures user permission to its user identifier.

Value Params
perm

permission