UserAuthorization

org.llm4s.rag.permissions.UserAuthorization
See theUserAuthorization companion object
final case class UserAuthorization(principalIds: Set[PrincipalId], isAdmin: Boolean)

User authorization context for permission-filtered queries.

Contains the set of principal IDs (user + groups) that the current user belongs to, which is used to filter collections and documents.

Value parameters

isAdmin

True if this user has admin privileges (bypasses permission checks)

principalIds

The set of principal IDs for this user (includes user ID and all group IDs)

Attributes

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

Members list

Value members

Concrete methods

def asArray: Array[Int]

Get the principal IDs as a raw integer array (for SQL queries)

Get the principal IDs as a raw integer array (for SQL queries)

Attributes

def asSeq: Seq[Int]

Get the principal IDs as a sequence (for SQL binding)

Get the principal IDs as a sequence (for SQL binding)

Attributes

def includes(principalId: PrincipalId): Boolean

Check if this authorization includes a specific principal

Check if this authorization includes a specific principal

Attributes

Add a principal to this authorization

Add a principal to this authorization

Attributes

Add multiple principals to this authorization

Add multiple principals to this authorization

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product