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
Constructors Constructor Description CachedLDAPAuthorizationMapNamespaceChangeListener(SimpleCachedLDAPAuthorizationMap.DestinationType destinationType, SimpleCachedLDAPAuthorizationMap.PermissionType permissionType)Creates a new listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnamingExceptionThrown(NamingExceptionEvent evt)voidobjectAdded(NamingEvent evt)voidobjectChanged(NamingEvent evt)voidobjectRemoved(NamingEvent evt)voidobjectRenamed(NamingEvent evt)
-
-
-
Constructor Detail
-
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 Detail
-
namingExceptionThrown
public void namingExceptionThrown(NamingExceptionEvent evt)
- Specified by:
namingExceptionThrownin interfaceNamingListener
-
objectAdded
public void objectAdded(NamingEvent evt)
- Specified by:
objectAddedin interfaceNamespaceChangeListener
-
objectRemoved
public void objectRemoved(NamingEvent evt)
- Specified by:
objectRemovedin interfaceNamespaceChangeListener
-
objectRenamed
public void objectRenamed(NamingEvent evt)
- Specified by:
objectRenamedin interfaceNamespaceChangeListener
-
objectChanged
public void objectChanged(NamingEvent evt)
- Specified by:
objectChangedin interfaceObjectChangeListener
-
-