Package org.projectnessie.server.authz
Class CelAccessChecker
- java.lang.Object
-
- org.projectnessie.server.authz.CelAccessChecker
-
- All Implemented Interfaces:
AccessChecker
@ApplicationScoped public class CelAccessChecker extends Object implements AccessChecker
A reference implementation of theAccessCheckerthat performs access checks using CEL expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelAccessChecker.AuthorizationRuleType
-
Constructor Summary
Constructors Constructor Description CelAccessChecker(QuarkusNessieAuthorizationConfig config, CompiledAuthorizationRules compiledRules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcanAssignRefToHash(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanCommitChangeAgainstReference(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanCreateReference(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanDeleteEntity(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId)voidcanDeleteReference(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanListCommitLog(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanReadEntityValue(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId)voidcanReadEntries(AccessContext context, org.projectnessie.versioned.NamedRef ref)voidcanUpdateEntity(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId)voidcanViewReference(AccessContext context, org.projectnessie.versioned.NamedRef ref)
-
-
-
Constructor Detail
-
CelAccessChecker
@Inject public CelAccessChecker(QuarkusNessieAuthorizationConfig config, CompiledAuthorizationRules compiledRules)
-
-
Method Detail
-
canViewReference
public void canViewReference(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canViewReferencein interfaceAccessChecker- Throws:
AccessControlException
-
canCreateReference
public void canCreateReference(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canCreateReferencein interfaceAccessChecker- Throws:
AccessControlException
-
canAssignRefToHash
public void canAssignRefToHash(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canAssignRefToHashin interfaceAccessChecker- Throws:
AccessControlException
-
canDeleteReference
public void canDeleteReference(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canDeleteReferencein interfaceAccessChecker- Throws:
AccessControlException
-
canReadEntries
public void canReadEntries(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canReadEntriesin interfaceAccessChecker- Throws:
AccessControlException
-
canListCommitLog
public void canListCommitLog(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canListCommitLogin interfaceAccessChecker- Throws:
AccessControlException
-
canCommitChangeAgainstReference
public void canCommitChangeAgainstReference(AccessContext context, org.projectnessie.versioned.NamedRef ref) throws AccessControlException
- Specified by:
canCommitChangeAgainstReferencein interfaceAccessChecker- Throws:
AccessControlException
-
canReadEntityValue
public void canReadEntityValue(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId) throws AccessControlException
- Specified by:
canReadEntityValuein interfaceAccessChecker- Throws:
AccessControlException
-
canUpdateEntity
public void canUpdateEntity(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId) throws AccessControlException
- Specified by:
canUpdateEntityin interfaceAccessChecker- Throws:
AccessControlException
-
canDeleteEntity
public void canDeleteEntity(AccessContext context, org.projectnessie.versioned.NamedRef ref, org.projectnessie.model.ContentsKey key, String contentsId) throws AccessControlException
- Specified by:
canDeleteEntityin interfaceAccessChecker- Throws:
AccessControlException
-
-