nu.localhost.tapestry.acegi.services.internal
Class StaticSecurityChecker

java.lang.Object
  extended by org.acegisecurity.intercept.AbstractSecurityInterceptor
      extended by nu.localhost.tapestry.acegi.services.internal.StaticSecurityChecker
All Implemented Interfaces:
SecurityChecker, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware

public class StaticSecurityChecker
extends org.acegisecurity.intercept.AbstractSecurityInterceptor
implements SecurityChecker

Straighforward implementation of the SecurityChecker.

Author:
Ivan Dubrov

Field Summary
 
Fields inherited from class org.acegisecurity.intercept.AbstractSecurityInterceptor
logger, messages
 
Constructor Summary
StaticSecurityChecker()
           
 
Method Summary
 Object checkAfter(org.acegisecurity.intercept.InterceptorStatusToken token, Object returnedObject)
          Delegate to the AbstractSecurityInterceptor.afterInvocation(InterceptorStatusToken , Object).
 org.acegisecurity.intercept.InterceptorStatusToken checkBefore(Object object)
          Delegate to the AbstractSecurityInterceptor.beforeInvocation(Object).
 Class getSecureObjectClass()
          Get secured object class.
 org.acegisecurity.intercept.ObjectDefinitionSource obtainObjectDefinitionSource()
          Obtain ObjectDefinitionSource.
 
Methods inherited from class org.acegisecurity.intercept.AbstractSecurityInterceptor
afterInvocation, afterPropertiesSet, beforeInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticSecurityChecker

public StaticSecurityChecker()
Method Detail

checkBefore

public final org.acegisecurity.intercept.InterceptorStatusToken checkBefore(Object object)
Delegate to the AbstractSecurityInterceptor.beforeInvocation(Object).

Specified by:
checkBefore in interface SecurityChecker
Parameters:
object - security object.
Returns:
interceptor status token

checkAfter

public final Object checkAfter(org.acegisecurity.intercept.InterceptorStatusToken token,
                               Object returnedObject)
Delegate to the AbstractSecurityInterceptor.afterInvocation(InterceptorStatusToken , Object).

Specified by:
checkAfter in interface SecurityChecker
Parameters:
token - security token.
returnedObject - object returned by the secured method.
Returns:
object to return from the secured method

getSecureObjectClass

public final Class getSecureObjectClass()
Get secured object class.

Specified by:
getSecureObjectClass in class org.acegisecurity.intercept.AbstractSecurityInterceptor
Returns:
secured object class.

obtainObjectDefinitionSource

public final org.acegisecurity.intercept.ObjectDefinitionSource obtainObjectDefinitionSource()
Obtain ObjectDefinitionSource.

Specified by:
obtainObjectDefinitionSource in class org.acegisecurity.intercept.AbstractSecurityInterceptor
Returns:
ObjectDefinitionSource.


Copyright © 2007-2008 Robin Helgelin. All Rights Reserved.