pub struct QueryServerReadTransaction<'a> { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl<'a> QueryServerTransaction<'a> for QueryServerReadTransaction<'a>

§

type AccessControlsTransactionType = AccessControlsReadTransaction<'a>

§

type BackendTransactionType = BackendReadTransaction<'a>

§

type SchemaTransactionType = SchemaReadTransaction

source§

fn get_be_txn(&mut self) -> &mut BackendReadTransaction<'a>

source§

fn get_schema<'b>(&self) -> &'b SchemaReadTransaction

source§

fn get_accesscontrols(&self) -> &AccessControlsReadTransaction<'a>

source§

fn get_resolve_filter_cache( &mut self ) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>, ()>

source§

fn get_resolve_filter_cache_and_be_txn( &mut self ) -> (&mut BackendReadTransaction<'a>, &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>, ()>)

source§

fn get_domain_uuid(&self) -> Uuid

source§

fn get_domain_name(&self) -> &str

source§

fn get_domain_display_name(&self) -> &str

source§

fn search_ext( &mut self, se: &SearchEvent ) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>

Conduct a search and apply access controls to yield a set of entries that have been reduced to the set of user visible avas. Note that if you provide a SearchEvent for the internal user, this query will fail. It is invalid for the access module to attempt to reduce avas for internal searches, and you should use fn search instead.
source§

fn search( &mut self, se: &SearchEvent ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>

source§

fn exists(&mut self, ee: &ExistsEvent) -> Result<bool, OperationError>

source§

fn name_to_uuid(&mut self, name: &str) -> Result<Uuid, OperationError>

source§

fn sync_external_id_to_uuid( &mut self, external_id: &str ) -> Result<Option<Uuid>, OperationError>

source§

fn uuid_to_spn(&mut self, uuid: Uuid) -> Result<Option<Value>, OperationError>

source§

fn uuid_to_rdn(&mut self, uuid: Uuid) -> Result<String, OperationError>

source§

fn internal_exists( &mut self, filter: Filter<FilterInvalid> ) -> Result<bool, OperationError>

From internal, generate an “exists” event and dispatch
source§

fn impersonate_search_valid( &mut self, f_valid: Filter<FilterValid>, f_intent_valid: Filter<FilterValid>, event: &Identity ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>

source§

fn impersonate_search_ext_valid( &mut self, f_valid: Filter<FilterValid>, f_intent_valid: Filter<FilterValid>, event: &Identity ) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>

Applies ACP to filter result entries.
source§

fn impersonate_search_ext( &mut self, filter: Filter<FilterInvalid>, filter_intent: Filter<FilterInvalid>, event: &Identity ) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>

source§

fn internal_search_uuid( &mut self, uuid: Uuid ) -> Result<Arc<EntrySealedCommitted>, OperationError>

Get a single entry by its UUID. This is used heavily for internal server operations, especially in login and ACP checks.
source§

fn impersonate_search_ext_uuid( &mut self, uuid: Uuid, event: &Identity ) -> Result<Entry<EntryReduced, EntryCommitted>, OperationError>

source§

fn impersonate_search_uuid( &mut self, uuid: Uuid, event: &Identity ) -> Result<Arc<EntrySealedCommitted>, OperationError>

source§

fn clone_value( &mut self, attr: &str, value: &str ) -> Result<Value, OperationError>

Do a schema aware conversion from a String:String to String:Value for modification present.
source§

fn clone_partialvalue( &mut self, attr: &str, value: &str ) -> Result<PartialValue, OperationError>

source§

fn resolve_valueset( &mut self, value: &ValueSet ) -> Result<Vec<String>, OperationError>

source§

fn resolve_valueset_ldap( &mut self, value: &ValueSet, basedn: &str ) -> Result<Vec<Vec<u8>>, OperationError>

source§

fn get_db_domain_name(&mut self) -> Result<String, OperationError>

Pull the domain name from the database
source§

fn get_domain_fernet_private_key(&mut self) -> Result<String, OperationError>

source§

fn get_domain_es256_private_key(&mut self) -> Result<Vec<u8>, OperationError>

source§

fn get_password_badlist(&mut self) -> Result<HashSet<String>, OperationError>

source§

fn get_oauth2rs_set( &mut self ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>

source§

impl<'a> Send for QueryServerReadTransaction<'a>

source§

impl<'a> Sync for QueryServerReadTransaction<'a>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>

§

impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self>

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more