Struct kanidmd_lib::server::QueryServerReadTransaction
source · pub struct QueryServerReadTransaction<'a> { /* private fields */ }
Implementations§
source§impl<'a> QueryServerReadTransaction<'a>
impl<'a> QueryServerReadTransaction<'a>
pub fn consumer_get_state(&mut self) -> Result<(), OperationError>
source§impl<'a> QueryServerReadTransaction<'a>
impl<'a> QueryServerReadTransaction<'a>
pub fn supplier_provide_changes(&mut self) -> Result<(), OperationError>
pub fn supplier_provide_refresh(
&mut self
) -> Result<ReplRefreshContext, OperationError>
Trait Implementations§
source§impl<'a> QueryServerTransaction<'a> for QueryServerReadTransaction<'a>
impl<'a> QueryServerTransaction<'a> for QueryServerReadTransaction<'a>
type AccessControlsTransactionType = AccessControlsReadTransaction<'a>
type BackendTransactionType = BackendReadTransaction<'a>
type SchemaTransactionType = SchemaReadTransaction
fn get_be_txn(&mut self) -> &mut BackendReadTransaction<'a>
fn get_schema<'b>(&self) -> &'b SchemaReadTransaction
fn get_accesscontrols(&self) -> &AccessControlsReadTransaction<'a>
fn get_resolve_filter_cache(
&mut self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>, ()>
fn get_resolve_filter_cache_and_be_txn(
&mut self
) -> (&mut BackendReadTransaction<'a>, &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>, ()>)
fn get_domain_uuid(&self) -> Uuid
fn get_domain_name(&self) -> &str
fn get_domain_display_name(&self) -> &str
source§fn search_ext(
&mut self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
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. Read morefn search(
&mut self,
se: &SearchEvent
) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>
fn exists(&mut self, ee: &ExistsEvent) -> Result<bool, OperationError>
fn name_to_uuid(&mut self, name: &str) -> Result<Uuid, OperationError>
fn sync_external_id_to_uuid(
&mut self,
external_id: &str
) -> Result<Option<Uuid>, OperationError>
fn uuid_to_spn(&mut self, uuid: Uuid) -> Result<Option<Value>, OperationError>
fn uuid_to_rdn(&mut self, uuid: Uuid) -> Result<String, OperationError>
source§fn internal_exists(
&mut self,
filter: Filter<FilterInvalid>
) -> Result<bool, OperationError>
fn internal_exists(
&mut self,
filter: Filter<FilterInvalid>
) -> Result<bool, OperationError>
From internal, generate an “exists” event and dispatch
fn internal_search(
&mut self,
filter: Filter<FilterInvalid>
) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>
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>
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.
fn impersonate_search(
&mut self,
filter: Filter<FilterInvalid>,
filter_intent: Filter<FilterInvalid>,
event: &Identity
) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>
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>
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. Read more
fn impersonate_search_ext_uuid(
&mut self,
uuid: Uuid,
event: &Identity
) -> Result<Entry<EntryReduced, EntryCommitted>, OperationError>
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>
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. Read more
fn clone_partialvalue(
&mut self,
attr: &str,
value: &str
) -> Result<PartialValue, OperationError>
fn resolve_valueset(
&mut self,
value: &ValueSet
) -> Result<Vec<String>, OperationError>
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>
fn get_db_domain_name(&mut self) -> Result<String, OperationError>
Pull the domain name from the database