public interface PrivilegeListener
Beans implementing this interface will be picked up to listen to any
privilege checks. Listeners will be notified about any call to UserContext.hasPrivilege(java.lang.String).
| Modifier and Type | Method and Description |
|---|---|
void |
privilegeChecked(User user,
String privilege,
boolean hasPrivilege)
Called whenever a privilege is checked.
|
void privilegeChecked(User user, String privilege, boolean hasPrivilege)
user - the authenticated user or null if not authenticatedprivilege - the checked privilegehasPrivilege - true if the authenticated user has the required privilege or if it is a proxy privilegeCopyright © 2024 OpenMRS Inc.. All rights reserved.