public class CachedLDAPAuthorizationMap extends DefaultAuthorizationMap implements NamespaceChangeListener, ObjectChangeListener, org.springframework.beans.factory.InitializingBean
DefaultAuthorizationMap
implementation which uses LDAP to initialize and updateANY_CHILD, ANY_DESCENDENT
Constructor and Description |
---|
CachedLDAPAuthorizationMap() |
get, getAdminACLs, getDefaultEntry, getEntryClass, getEntryFor, getReadACLs, getTempDestinationAdminACLs, getTempDestinationAuthorizationEntry, getTempDestinationReadACLs, getTempDestinationWriteACLs, getWriteACLs, setAuthorizationEntries, setDefaultEntry, setTempDestinationAuthorizationEntry
chooseValue, findWildcardMatches, getQueueRootChildCount, getQueueRootNode, getRootNode, getTempQueueRootNode, getTempTopicRootNode, getTopicRootChildCount, getTopicRootNode, put, remove, removeAll, reset, setEntries, union
protected DirContext open() throws NamingException
NamingException
protected void updated()
protected AuthorizationEntry getEntry(String name)
protected ActiveMQDestination formatDestination(String destinationName, String destinationType)
protected void applyACL(AuthorizationEntry entry, SearchResult result) throws NamingException
NamingException
protected boolean isPriviledge(Binding binding)
protected Set<AuthorizationEntry> getAllEntries(ActiveMQDestination destination)
getAllEntries
in class DefaultAuthorizationMap
public void objectAdded(NamingEvent namingEvent)
objectAdded
in interface NamespaceChangeListener
public void objectRemoved(NamingEvent namingEvent)
objectRemoved
in interface NamespaceChangeListener
public void objectRenamed(NamingEvent namingEvent)
objectRenamed
in interface NamespaceChangeListener
public void objectChanged(NamingEvent namingEvent)
objectChanged
in interface ObjectChangeListener
public void namingExceptionThrown(NamingExceptionEvent namingExceptionEvent)
namingExceptionThrown
in interface NamingListener
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public String getConnectionURL()
public void setConnectionURL(String connectionURL)
public String getConnectionUsername()
public void setConnectionUsername(String connectionUsername)
public String getConnectionPassword()
public void setConnectionPassword(String connectionPassword)
public String getConnectionProtocol()
public void setConnectionProtocol(String connectionProtocol)
public String getAuthentication()
public void setAuthentication(String authentication)
public String getBaseDn()
public void setBaseDn(String baseDn)
public int getRefreshInterval()
public void setRefreshInterval(int refreshInterval)
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.