|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.spring.security.intercept.zkevent.ZkEventProcessDefinitionSourceImpl
public class ZkEventProcessDefinitionSourceImpl
Default implementation of ZkEventProcessDefinitionSource.
Stores an ordered map of compiled Component paths and event name to
ConfigAttributeDefinitions and provides Component path and event
matching against the items stored in this map using the configured
UrlMatcher.
The order of registering the regular expressions using the
addSecureEvent(java.lang.String, java.lang.String, java.util.Collection is very important. The matching is done per
the following rules:
ZkEventProcessDefinitionSourceBeanDefinitionParser| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
ZkEventProcessDefinitionSourceImpl(org.springframework.security.web.util.UrlMatcher pathMatcher)
|
|
ZkEventProcessDefinitionSourceImpl(org.springframework.security.web.util.UrlMatcher pathMatcher,
java.util.LinkedHashMap requestMap)
Builds the internal request map from the supplied map. |
|
| Method Summary | |
|---|---|
void |
addSecureEvent(java.lang.String path,
java.lang.String event,
java.util.Collection<org.springframework.security.access.ConfigAttribute> attr)
|
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getAllConfigAttributes()
|
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getAttributes(java.lang.Object object)
|
java.util.Collection |
getConfigAttributeDefinitions()
|
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
lookupAttributes(java.lang.String path,
java.lang.String event)
Performs the actual lookup of the relevant ConfigAttributeDefinition for the specified
Event. |
boolean |
supports(java.lang.Class clazz)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public ZkEventProcessDefinitionSourceImpl(org.springframework.security.web.util.UrlMatcher pathMatcher)
public ZkEventProcessDefinitionSourceImpl(org.springframework.security.web.util.UrlMatcher pathMatcher,
java.util.LinkedHashMap requestMap)
EventProcessKey, which contains a Component path
and an event name (may be null). The path stored in the key will depend
on the type of the supplied UrlMatcher.
pathMatcher - typically an ant or regular expression matcher.requestMap - order-preserving map of | Method Detail |
|---|
public void addSecureEvent(java.lang.String path,
java.lang.String event,
java.util.Collection<org.springframework.security.access.ConfigAttribute> attr)
public java.util.Collection<org.springframework.security.access.ConfigAttribute> getAttributes(java.lang.Object object)
throws java.lang.IllegalArgumentException
getAttributes in interface org.springframework.security.access.SecurityMetadataSourcejava.lang.IllegalArgumentException
public java.util.Collection<org.springframework.security.access.ConfigAttribute> lookupAttributes(java.lang.String path,
java.lang.String event)
ConfigAttributeDefinition for the specified
Event.
By default, iterates through the stored Path map and calls the
UrlMatcher.pathMatchesUrl(Object pattern, String path) method until a match is found.
Subclasses can override if required to perform any modifications to the path.
path - the Component path to retrieve configuration attributes forevent - the event name
ConfigAttributeDefinition that applies to the
specified Event or null if no match is foudpublic java.util.Collection getConfigAttributeDefinitions()
public boolean supports(java.lang.Class clazz)
supports in interface org.springframework.security.access.SecurityMetadataSourcepublic java.util.Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||