Class AuthorizationMonitorImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.security.authorization.monitor.AuthorizationMonitorImpl
-
- All Implemented Interfaces:
AuthorizationMonitor
,Monitor<AuthorizationMonitor>
public class AuthorizationMonitorImpl extends Object implements AuthorizationMonitor
-
-
Constructor Summary
Constructors Constructor Description AuthorizationMonitorImpl(@NotNull 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 Class<AuthorizationMonitor>
getMonitorClass()
@NotNull Map<Object,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 thePermissionProvider
is being refreshed and permission caches are cleared.
-
-
-
Constructor Detail
-
AuthorizationMonitorImpl
public AuthorizationMonitorImpl(@NotNull @NotNull StatisticsProvider statisticsProvider)
-
-
Method Detail
-
getMonitorClass
@NotNull public @NotNull Class<AuthorizationMonitor> getMonitorClass()
- Specified by:
getMonitorClass
in interfaceMonitor<AuthorizationMonitor>
- Returns:
- The type to be passed to
Whiteboard.register(Class, Object, Map)
-
getMonitorProperties
@NotNull public @NotNull Map<Object,Object> getMonitorProperties()
- Specified by:
getMonitorProperties
in interfaceMonitor<AuthorizationMonitor>
- Returns:
- The properties to be passed to
Whiteboard.register(Class, Object, Map)
-
accessViolation
public void accessViolation()
Description copied from interface:AuthorizationMonitor
Called to mark an access violation in the default permission validator.- Specified by:
accessViolation
in interfaceAuthorizationMonitor
-
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 interfaceAuthorizationMonitor
-
permissionRefresh
public void permissionRefresh()
Description copied from interface:AuthorizationMonitor
Called when thePermissionProvider
is being refreshed and permission caches are cleared.- Specified by:
permissionRefresh
in interfaceAuthorizationMonitor
-
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 interfaceAuthorizationMonitor
- Parameters:
timeTakenNanos
- Time in nanoseconds.
-
-