Principal

com.alecdorrington.hecate.model.Principal
See thePrincipal companion object
enum Principal(val kind: String)

A user, a group or the system, any of which access may be granted to. Access granted to a group reaches the members of it and of every group nested inside it, never of the groups enclosing it; access granted to the system reaches every user the host names as acting for it. Stored and sent as its kind and id.

Value parameters

kind

The name this kind of principal is stored and sent as (e.g. person). Must never change once stored.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Person
class Group

Members list

Type members

Enum entries

final case class Group(id: Long) extends Principal

A group.

A group.

Value parameters

id

The identifier of the group.

Attributes

final case class Person(id: Long) extends Principal

A user.

A user.

Value parameters

id

The identifier of the user.

Attributes

case System extends Principal

The system itself, which nobody signs in as: the users the host names act for it. It is told apart by its kind, never by a name.

The system itself, which nobody signs in as: the users the host names act for it. It is told apart by its kind, never by a name.

Attributes