Package org.apache.activemq.security
Class SimpleCachedLDAPAuthorizationMap.CachedLDAPAuthorizationMapNamespaceChangeListener
java.lang.Object
org.apache.activemq.security.SimpleCachedLDAPAuthorizationMap.CachedLDAPAuthorizationMapNamespaceChangeListener
- All Implemented Interfaces:
EventListener,NamespaceChangeListener,NamingListener,ObjectChangeListener
- Enclosing class:
- SimpleCachedLDAPAuthorizationMap
protected class SimpleCachedLDAPAuthorizationMap.CachedLDAPAuthorizationMapNamespaceChangeListener
extends Object
implements NamespaceChangeListener, ObjectChangeListener
Listener implementation for directory changes that maps change events to destination types.
-
Constructor Summary
ConstructorsConstructorDescriptionCachedLDAPAuthorizationMapNamespaceChangeListener(SimpleCachedLDAPAuthorizationMap.DestinationType destinationType, SimpleCachedLDAPAuthorizationMap.PermissionType permissionType) Creates a new listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidobjectAdded(NamingEvent evt) voidobjectChanged(NamingEvent evt) voidobjectRemoved(NamingEvent evt) voidobjectRenamed(NamingEvent evt)
-
Constructor Details
-
CachedLDAPAuthorizationMapNamespaceChangeListener
public CachedLDAPAuthorizationMapNamespaceChangeListener(SimpleCachedLDAPAuthorizationMap.DestinationType destinationType, SimpleCachedLDAPAuthorizationMap.PermissionType permissionType) Creates a new listener. IfpermissionTypeisnull, add and remove events are ignored as they do not directly affect policy state. This configuration is used when listening for changes on entries that represent destination patterns and not for entries that represent permissions.- Parameters:
destinationType- the type of the destination being listened forpermissionType- the optional permission type being listened for
-
-
Method Details
-
namingExceptionThrown
- Specified by:
namingExceptionThrownin interfaceNamingListener
-
objectAdded
- Specified by:
objectAddedin interfaceNamespaceChangeListener
-
objectRemoved
- Specified by:
objectRemovedin interfaceNamespaceChangeListener
-
objectRenamed
- Specified by:
objectRenamedin interfaceNamespaceChangeListener
-
objectChanged
- Specified by:
objectChangedin interfaceObjectChangeListener
-