pub trait AclResolver: Send + Sync {
// Required method
fn find_effective_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
resource_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AclDocument>, PodError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Resolves the effective ACL document for a resource using the WAC walk-up-the-tree algorithm.
Starting at the resource path, the resolver looks for an .acl sidecar at each ancestor
container up to the root. The first parseable ACL document found (JSON-LD or Turtle) is
returned. If no ACL is found at any level, returns Ok(None) – callers must deny access
when no ACL exists (deny-by-default).
Required Methods§
Sourcefn find_effective_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
resource_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AclDocument>, PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_effective_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
resource_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AclDocument>, PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Locate the nearest ACL document that governs resource_path.