Class DebugPermissionCheckNotifier

  • All Implemented Interfaces:
    ca.stellardrift.permissionsex.logging.PermissionCheckNotifier

    public class DebugPermissionCheckNotifier
    extends Object
    implements ca.stellardrift.permissionsex.logging.PermissionCheckNotifier
    Log debug messages
    • Constructor Summary

      Constructors 
      Constructor Description
      DebugPermissionCheckNotifier​(ca.stellardrift.permissionsex.logging.FormattedLogger logger, ca.stellardrift.permissionsex.logging.PermissionCheckNotifier delegate, @Nullable Predicate<String> filterPredicate)  
    • Constructor Detail

      • DebugPermissionCheckNotifier

        public DebugPermissionCheckNotifier​(ca.stellardrift.permissionsex.logging.FormattedLogger logger,
                                            ca.stellardrift.permissionsex.logging.PermissionCheckNotifier delegate,
                                            @Nullable Predicate<String> filterPredicate)
    • Method Detail

      • getDelegate

        public ca.stellardrift.permissionsex.logging.PermissionCheckNotifier getDelegate()
      • 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