Class 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
    • 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:
        onPermissionCheck in interface ca.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:
        onOptionCheck in interface ca.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:
        onParentCheck in interface ca.stellardrift.permissionsex.logging.PermissionCheckNotifier