GuardContext

works.iterative.workflow.GuardContext
final case class GuardContext[R, S](roles: Set[R], userId: UserId, entity: S)

The context available during guard evaluation.

Value parameters

entity

the current entity state being guarded

roles

the full set of roles held by the calling user, typed as R — the application-supplied role type.

userId

the identity of the calling user (canonical idDO-based UserId)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product