RootContext

bolster.security.RootContext
object RootContext extends SecurityContext

Defines root context in which all permissions are granted.

Attributes

See also
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def all[T](perms: Set[Permission])(op: => T): T

Tests permissions before applying operation.

Tests permissions before applying operation.

If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.

Attributes

def all[T](one: Permission, more: Permission*)(op: => T): T

Tests permissions before applying operation.

Tests permissions before applying operation.

If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.

Attributes

def any[T](perms: Set[Permission])(op: => T): T

Tests permissions before applying operation.

Tests permissions before applying operation.

If any of supplied permissions is granted, the operation is applied; otherwise, SecurityViolation is thrown.

Attributes

def any[T](one: Permission, more: Permission*)(op: => T): T

Tests permissions before applying operation.

Tests permissions before applying operation.

If any of supplied permissions is granted, the operation is applied; otherwise, SecurityViolation is thrown.

Attributes

def apply[T](perm: Permission)(op: => T): T

Tests permission before applying operation.

Tests permission before applying operation.

If supplied permission is granted, the operation is applied; otherwise, SecurityViolation is thrown.

Attributes

def test(perm: Permission): Boolean

Tests whether supplied permission is granted.

Tests whether supplied permission is granted.

Attributes

def testAll(perms: Set[Permission]): Boolean

Tests whether all supplied permissions are granted.

Tests whether all supplied permissions are granted.

Attributes

def testAll(one: Permission, more: Permission*): Boolean

Tests whether all supplied permissions are granted.

Tests whether all supplied permissions are granted.

Attributes

def testAny(perms: Set[Permission]): Boolean

Tests whether any of supplied permissions is granted.

Tests whether any of supplied permissions is granted.

Attributes

def testAny(one: Permission, more: Permission*): Boolean

Tests whether any of supplied permissions is granted.

Tests whether any of supplied permissions is granted.

Attributes

Concrete fields

override val toString: String

Gets string representation.

Gets string representation.

Attributes