EffectiveAccess

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

Who may query a collection once every collection above it is taken into account: what CollectionStore.effectiveAccess returns, and the rule CollectionStore.canQuery and CollectionStore.findAccessible apply.

A collection is queryable by a non-admin user only if, at every restricted level from the root down to the collection itself, the user holds at least one of that level's principals. The principal may differ from level to level: with company queryable by employees and company/executive by managers, a user in both groups may query company/executive, and a user in only one may not. An admin may query every collection.

Unlike the deprecated CollectionStore.getEffectivePermissions, an empty answer never means public: "anyone" is EffectiveAccess.Public, "these principals at these levels" is EffectiveAccess.Restricted, and "no non-admin user" is EffectiveAccess.Nobody.

Attributes

Companion
object
Source
EffectiveAccess.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Nobody
object Public
class Restricted

Members list

Value members

Abstract methods

True if auth may query the collection: the same answer as CollectionStore.canQuery.

True if auth may query the collection: the same answer as CollectionStore.canQuery.

Attributes

Source
EffectiveAccess.scala

Concrete methods

True if anyone, including an anonymous user, may query the collection.

True if anyone, including an anonymous user, may query the collection.

Attributes

Source
EffectiveAccess.scala