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 void
namingExceptionThrown(NamingExceptionEvent evt)
void
objectAdded(NamingEvent evt)
void
objectChanged(NamingEvent evt)
void
objectRemoved(NamingEvent evt)
void
objectRenamed(NamingEvent evt)
-
-
-
Constructor Detail
-
CachedLDAPAuthorizationMapNamespaceChangeListener
public CachedLDAPAuthorizationMapNamespaceChangeListener(SimpleCachedLDAPAuthorizationMap.DestinationType destinationType, SimpleCachedLDAPAuthorizationMap.PermissionType permissionType)
Creates a new listener. IfpermissionType
isnull
, 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:
namingExceptionThrown
in interfaceNamingListener
-
objectAdded
public void objectAdded(NamingEvent evt)
- Specified by:
objectAdded
in interfaceNamespaceChangeListener
-
objectRemoved
public void objectRemoved(NamingEvent evt)
- Specified by:
objectRemoved
in interfaceNamespaceChangeListener
-
objectRenamed
public void objectRenamed(NamingEvent evt)
- Specified by:
objectRenamed
in interfaceNamespaceChangeListener
-
objectChanged
public void objectChanged(NamingEvent evt)
- Specified by:
objectChanged
in interfaceObjectChangeListener
-
-