Class RecordingPermissionCheckNotifier
- java.lang.Object
-
- ca.stellardrift.permissionsex.impl.logging.RecordingPermissionCheckNotifier
-
- All Implemented Interfaces:
ca.stellardrift.permissionsex.logging.PermissionCheckNotifier
public class RecordingPermissionCheckNotifier extends Object implements ca.stellardrift.permissionsex.logging.PermissionCheckNotifier
Notification delegate for permissions checks that tracks recent permission checks. Allows accessing currently known permissions
-
-
Constructor Summary
Constructors Constructor Description RecordingPermissionCheckNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getKnownOptions()Set<String>getKnownPermissions()voidonOptionCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, String option, String value)voidonParentCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, List<ca.stellardrift.permissionsex.subject.SubjectRef<?>> parents)voidonPermissionCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, String permission, int value)
-
-
-
Constructor Detail
-
RecordingPermissionCheckNotifier
public RecordingPermissionCheckNotifier()
-
-
Method Detail
-
onPermissionCheck
public void onPermissionCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, String permission, int value)
- Specified by:
onPermissionCheckin interfaceca.stellardrift.permissionsex.logging.PermissionCheckNotifier
-
onOptionCheck
public void onOptionCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, String option, String value)
- Specified by:
onOptionCheckin interfaceca.stellardrift.permissionsex.logging.PermissionCheckNotifier
-
onParentCheck
public void onParentCheck(ca.stellardrift.permissionsex.subject.SubjectRef<?> subject, Set<ca.stellardrift.permissionsex.context.ContextValue<?>> contexts, List<ca.stellardrift.permissionsex.subject.SubjectRef<?>> parents)
- Specified by:
onParentCheckin interfaceca.stellardrift.permissionsex.logging.PermissionCheckNotifier
-
getKnownPermissions
public Set<String> getKnownPermissions()
-
getKnownOptions
public Set<String> getKnownOptions()
-
-