EffectiveAccess

org.llm4s.rag.permissions.EffectiveAccess
See theEffectiveAccess companion trait

Attributes

Companion
trait
Source
EffectiveAccess.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Level

One restricted collection on the path, and the principals that satisfy it.

One restricted collection on the path, and the principals that satisfy it.

Value parameters

anyOf

Its queryableBy: holding any one of these satisfies this level. Never empty.

path

The restricted collection: the queried collection or one of its ancestors

Attributes

Source
EffectiveAccess.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Nobody extends EffectiveAccess

Only an admin may query the collection. Returned when a collection on the path is queryable by no principal; a collection's own permissions cannot say that yet (an empty queryableBy means public), so this is what an explicit "nobody" visibility will produce (#3014).

Only an admin may query the collection. Returned when a collection on the path is queryable by no principal; a collection's own permissions cannot say that yet (an empty queryableBy means public), so this is what an explicit "nobody" visibility will produce (#3014).

Attributes

Source
EffectiveAccess.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Nobody.type
case object Public extends EffectiveAccess

No collection on the path restricts access: anyone may query it.

No collection on the path restricts access: anyone may query it.

Attributes

Source
EffectiveAccess.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Public.type
final case class Restricted extends EffectiveAccess

The collection is restricted: a non-admin user needs a principal of every level.

The collection is restricted: a non-admin user needs a principal of every level.

Value parameters

levels

The restricted collections from the root down to the queried one, public ones left out. Never empty.

Attributes

Source
EffectiveAccess.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

The effective access of the last collection of chain, given the collection and all its ancestors from the root down. A level whose queryableBy is empty is public and adds no requirement.

The effective access of the last collection of chain, given the collection and all its ancestors from the root down. A level whose queryableBy is empty is public and adds no requirement.

Value parameters

chain

The root first and the queried collection last

Attributes

Source
EffectiveAccess.scala