PrincipalId

org.llm4s.rag.permissions.PrincipalId
See thePrincipalId companion object
final case class PrincipalId(value: Int) extends AnyVal

Type-safe wrapper for principal IDs.

Uses integer representation for efficient database queries:

  • Positive integers represent users
  • Negative integers represent groups
  • Zero is reserved (not used)

Value parameters

value

The integer ID (positive=user, negative=group)

Attributes

Companion
object
Source
PermissionTypes.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

True if this represents a group (negative ID)

True if this represents a group (negative ID)

Attributes

Source
PermissionTypes.scala

True if this represents a user (positive ID)

True if this represents a user (positive ID)

Attributes

Source
PermissionTypes.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
PermissionTypes.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product