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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isGroup: Boolean

True if this represents a group (negative ID)

True if this represents a group (negative ID)

Attributes

def isUser: Boolean

True if this represents a user (positive ID)

True if this represents a user (positive ID)

Attributes

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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product