Class AuthorizationMonitorImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorizationMonitorImpl​(@NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accessViolation()
      Called to mark an access violation in the default permission validator.
      @NotNull java.lang.Class<AuthorizationMonitor> getMonitorClass()  
      @NotNull java.util.Map<java.lang.Object,​java.lang.Object> getMonitorProperties()  
      void permissionAllLoaded​(long timeTakenNanos)
      Called to record the time it takes to eagerly load all permissions for a given principal.
      void permissionError()
      Called to mark unexpected errors related to the permission store.
      void permissionRefresh()
      Called when the PermissionProvider is being refreshed and permission caches are cleared.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizationMonitorImpl

        public AuthorizationMonitorImpl​(@NotNull
                                        @NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
    • Method Detail

      • getMonitorClass

        @NotNull
        public @NotNull java.lang.Class<AuthorizationMonitor> getMonitorClass()
        Specified by:
        getMonitorClass in interface org.apache.jackrabbit.oak.stats.Monitor<AuthorizationMonitor>
      • getMonitorProperties

        @NotNull
        public @NotNull java.util.Map<java.lang.Object,​java.lang.Object> getMonitorProperties()
        Specified by:
        getMonitorProperties in interface org.apache.jackrabbit.oak.stats.Monitor<AuthorizationMonitor>
      • permissionError

        public void permissionError()
        Description copied from interface: AuthorizationMonitor
        Called to mark unexpected errors related to the permission store. It does does not cover access violations, but actual operational errors that probably need to be investigated. Any triggered event should have a corresponding error logged to make this investigation possible.
        Specified by:
        permissionError in interface AuthorizationMonitor
      • permissionAllLoaded

        public void permissionAllLoaded​(long timeTakenNanos)
        Description copied from interface: AuthorizationMonitor
        Called to record the time it takes to eagerly load all permissions for a given principal.
        Specified by:
        permissionAllLoaded in interface AuthorizationMonitor
        Parameters:
        timeTakenNanos - Time in nanoseconds.