Trait kanidmd_lib::prelude::AccessControlsTransaction

source ·
pub trait AccessControlsTransaction<'a> {
Show 17 methods // Required methods fn get_search(&self) -> &Vec<AccessControlSearch>; fn get_create(&self) -> &Vec<AccessControlCreate>; fn get_modify(&self) -> &Vec<AccessControlModify>; fn get_delete(&self) -> &Vec<AccessControlDelete>; fn get_sync_agreements(&self) -> &HashMap<Uuid, BTreeSet<Attribute>>; fn get_acp_resolve_filter_cache(&self) -> &mut ResolveFilterCacheReadTxn<'a>; // Provided methods fn search_related_acp<'b>( &'b self, ident: &Identity, ) -> Vec<AccessControlSearchResolved<'b>> { ... } fn filter_entries( &self, ident: &Identity, filter_orig: &Filter<FilterValid>, entries: Vec<Arc<EntrySealedCommitted>>, ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError> { ... } fn search_filter_entries( &self, se: &SearchEvent, entries: Vec<Arc<EntrySealedCommitted>>, ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError> { ... } fn search_filter_entry_attributes( &self, se: &SearchEvent, entries: Vec<Arc<EntrySealedCommitted>>, ) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError> { ... } fn modify_related_acp<'b>( &'b self, ident: &Identity, ) -> Vec<AccessControlModifyResolved<'b>> { ... } fn modify_allow_operation( &self, me: &ModifyEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError> { ... } fn batch_modify_allow_operation( &self, me: &BatchModifyEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError> { ... } fn create_allow_operation( &self, ce: &CreateEvent, entries: &[Entry<EntryInit, EntryNew>], ) -> Result<bool, OperationError> { ... } fn delete_related_acp<'b>( &'b self, ident: &Identity, ) -> Vec<AccessControlDeleteResolved<'b>> { ... } fn delete_allow_operation( &self, de: &DeleteEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError> { ... } fn effective_permission_check( &self, ident: &Identity, attrs: Option<BTreeSet<Attribute>>, entries: &[Arc<EntrySealedCommitted>], ) -> Result<Vec<AccessEffectivePermission>, OperationError> { ... }
}

Required Methods§

source

fn get_create(&self) -> &Vec<AccessControlCreate>

source

fn get_modify(&self) -> &Vec<AccessControlModify>

source

fn get_delete(&self) -> &Vec<AccessControlDelete>

source

fn get_sync_agreements(&self) -> &HashMap<Uuid, BTreeSet<Attribute>>

source

fn get_acp_resolve_filter_cache(&self) -> &mut ResolveFilterCacheReadTxn<'a>

Provided Methods§

source

fn filter_entries( &self, ident: &Identity, filter_orig: &Filter<FilterValid>, entries: Vec<Arc<EntrySealedCommitted>>, ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>

source

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

source

fn search_filter_entry_attributes( &self, se: &SearchEvent, entries: Vec<Arc<EntrySealedCommitted>>, ) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>

source

fn modify_allow_operation( &self, me: &ModifyEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError>

source

fn batch_modify_allow_operation( &self, me: &BatchModifyEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError>

source

fn create_allow_operation( &self, ce: &CreateEvent, entries: &[Entry<EntryInit, EntryNew>], ) -> Result<bool, OperationError>

source

fn delete_allow_operation( &self, de: &DeleteEvent, entries: &[Arc<EntrySealedCommitted>], ) -> Result<bool, OperationError>

source

fn effective_permission_check( &self, ident: &Identity, attrs: Option<BTreeSet<Attribute>>, entries: &[Arc<EntrySealedCommitted>], ) -> Result<Vec<AccessEffectivePermission>, OperationError>

Implementors§