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 voidaccessViolation()Called to mark an access violation in the default permission validator.@NotNull Class<AuthorizationMonitor>getMonitorClass()@NotNull Map<Object,Object>getMonitorProperties()voidpermissionAllLoaded(long timeTakenNanos)Called to record the time it takes to eagerly load all permissions for a given principal.voidpermissionError()Called to mark unexpected errors related to the permission store.voidpermissionRefresh()Called when thePermissionProvideris 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:
getMonitorClassin interfaceMonitor<AuthorizationMonitor>- Returns:
- The type to be passed to
Whiteboard.register(Class, Object, Map)
-
getMonitorProperties
@NotNull public @NotNull Map<Object,Object> getMonitorProperties()
- Specified by:
getMonitorPropertiesin interfaceMonitor<AuthorizationMonitor>- Returns:
- The properties to be passed to
Whiteboard.register(Class, Object, Map)
-
accessViolation
public void accessViolation()
Description copied from interface:AuthorizationMonitorCalled to mark an access violation in the default permission validator.- Specified by:
accessViolationin interfaceAuthorizationMonitor
-
permissionError
public void permissionError()
Description copied from interface:AuthorizationMonitorCalled 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:
permissionErrorin interfaceAuthorizationMonitor
-
permissionRefresh
public void permissionRefresh()
Description copied from interface:AuthorizationMonitorCalled when thePermissionProvideris being refreshed and permission caches are cleared.- Specified by:
permissionRefreshin interfaceAuthorizationMonitor
-
permissionAllLoaded
public void permissionAllLoaded(long timeTakenNanos)
Description copied from interface:AuthorizationMonitorCalled to record the time it takes to eagerly load all permissions for a given principal.- Specified by:
permissionAllLoadedin interfaceAuthorizationMonitor- Parameters:
timeTakenNanos- Time in nanoseconds.
-
-