org.codehaus.groovy.grails.plugins.springsecurity
Class AbstractFilterInvocationDefinition

java.lang.Object
  extended by org.codehaus.groovy.grails.plugins.springsecurity.AbstractFilterInvocationDefinition
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.intercept.ObjectDefinitionSource, org.springframework.security.intercept.web.FilterInvocationDefinitionSource
Direct Known Subclasses:
AnnotationFilterInvocationDefinition, RequestmapFilterInvocationDefinition

public abstract class AbstractFilterInvocationDefinition
extends Object
implements org.springframework.security.intercept.web.FilterInvocationDefinitionSource, org.springframework.beans.factory.InitializingBean

Author:
Burt Beckwith

Field Summary
protected  Map<Object,org.springframework.security.ConfigAttributeDefinition> _compiled
           
protected  org.apache.log4j.Logger _log
           
protected static org.springframework.security.ConfigAttributeDefinition DENY
           
 
Constructor Summary
AbstractFilterInvocationDefinition()
           
 
Method Summary
 void afterPropertiesSet()
          
protected abstract  String determineUrl(org.springframework.security.intercept.web.FilterInvocation filterInvocation)
           
 org.springframework.security.ConfigAttributeDefinition getAttributes(Object object)
          
 Collection getConfigAttributeDefinitions()
          
 Map<Object,org.springframework.security.ConfigAttributeDefinition> getConfigAttributeMap()
          For debugging.
protected  org.springframework.security.util.UrlMatcher getUrlMatcher()
           
protected  void initialize()
           
protected  String lowercaseAndStringQuerystring(String url)
           
 void setRejectIfNoRule(boolean reject)
          Dependency injection for whether to reject if there's no matching rule.
 void setUrlMatcher(org.springframework.security.util.UrlMatcher urlMatcher)
          Dependency injection for the url matcher.
 boolean supports(Class clazz)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DENY

protected static final org.springframework.security.ConfigAttributeDefinition DENY

_compiled

protected final Map<Object,org.springframework.security.ConfigAttributeDefinition> _compiled

_log

protected final org.apache.log4j.Logger _log
Constructor Detail

AbstractFilterInvocationDefinition

public AbstractFilterInvocationDefinition()
Method Detail

getAttributes

public org.springframework.security.ConfigAttributeDefinition getAttributes(Object object)

Specified by:
getAttributes in interface org.springframework.security.intercept.ObjectDefinitionSource
See Also:
ObjectDefinitionSource.getAttributes(java.lang.Object)

determineUrl

protected abstract String determineUrl(org.springframework.security.intercept.web.FilterInvocation filterInvocation)

initialize

protected void initialize()

supports

public boolean supports(Class clazz)

Specified by:
supports in interface org.springframework.security.intercept.ObjectDefinitionSource
See Also:
ObjectDefinitionSource.supports(java.lang.Class)

getConfigAttributeDefinitions

public Collection getConfigAttributeDefinitions()

Specified by:
getConfigAttributeDefinitions in interface org.springframework.security.intercept.ObjectDefinitionSource
See Also:
ObjectDefinitionSource.getConfigAttributeDefinitions()

setUrlMatcher

public void setUrlMatcher(org.springframework.security.util.UrlMatcher urlMatcher)
Dependency injection for the url matcher.

Parameters:
urlMatcher - the matcher

setRejectIfNoRule

public void setRejectIfNoRule(boolean reject)
Dependency injection for whether to reject if there's no matching rule.

Parameters:
reject - if true, reject access unless there's a pattern for the specified resource

lowercaseAndStringQuerystring

protected String lowercaseAndStringQuerystring(String url)

getUrlMatcher

protected org.springframework.security.util.UrlMatcher getUrlMatcher()

getConfigAttributeMap

public Map<Object,org.springframework.security.ConfigAttributeDefinition> getConfigAttributeMap()
For debugging.

Returns:
an unmodifiable map of AnnotationFilterInvocationDefinitionConfigAttributeDefinition keyed by compiled patterns

afterPropertiesSet

public void afterPropertiesSet()

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
See Also:
InitializingBean.afterPropertiesSet()