GroupPermission

Provides factory for creating group permissions.

A group permission should be applied to an operation that must be restricted to a specific group of users. For example, if a user owns a resource, then read access to the resource can be restricted to the user's group.

See also
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(groupId: String): Permission

Creates group permission with supplied group identifier.

Creates group permission with supplied group identifier.

Value Params
groupId

group identifier

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

Creates set of group permissions with supplied identifiers.

Creates set of group permissions with supplied identifiers.

Value Params
ids

group identifiers

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

Creates set of group permissions with supplied identifiers.

Creates set of group permissions with supplied identifiers.

Value Params
more

additional group identifiers

one

group identifier

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

Destructures group permission to its group identifier.

Destructures group permission to its group identifier.

Value Params
perm

permission