Groovy Documentation

org.codehaus.griffon.runtime.shiro
[Java] Class ShiroGriffonControllerActionInterceptor

java.lang.Object
  org.codehaus.griffon.runtime.core.controller.AbstractGriffonControllerActionInterceptor
      org.codehaus.griffon.runtime.shiro.ShiroGriffonControllerActionInterceptor

public class ShiroGriffonControllerActionInterceptor
extends AbstractGriffonControllerActionInterceptor

Authors:
Andres Almiray


Nested Class Summary
private static class ShiroGriffonControllerActionInterceptor.ActionRequirement

private static class ShiroGriffonControllerActionInterceptor.AuthenticationRequirementEvaluator

private static class ShiroGriffonControllerActionInterceptor.GuestRequirementEvaluator

private static class ShiroGriffonControllerActionInterceptor.PermissionsRequirementEvaluator

private enum ShiroGriffonControllerActionInterceptor.Requirement

private static class ShiroGriffonControllerActionInterceptor.RequirementConfiguration

private static interface ShiroGriffonControllerActionInterceptor.RequirementEvaluator

private static class ShiroGriffonControllerActionInterceptor.RolesRequirementEvaluator

 
Field Summary
private static String DEFAULT_SECURITY_FAILURE_HANDLER

private static String KEY_SECURITY_FAILURE_HANDLER

private org.slf4j.Logger LOG

private Map requirementsPerAction

SecurityFailureHandler securityFailureHandler

 
Constructor Summary
ShiroGriffonControllerActionInterceptor()

 
Method Summary
Object[] before(GriffonController controller, String actionName, Object[] args)

void configure(GriffonController controller, String actionName, Method method)

void configure(GriffonController controller, String actionName, Field closure)

private void configureAction(GriffonController controller, String actionName, AnnotatedElement annotatedElement)

private void processRequiresAuthentication(RequiresAuthentication annotation, Map requirements)

private void processRequiresGuest(RequiresGuest annotation, Map requirements)

private void processRequiresPermissions(RequiresPermissions annotation, Map requirements)

private void processRequiresRoles(RequiresRoles annotation, Map requirements)

void setApp(GriffonApplication app)

ShiroGriffonControllerActionInterceptor valueOf(String name)

Returns the enum constant of this type with the specified name.

ShiroGriffonControllerActionInterceptor[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class AbstractGriffonControllerActionInterceptor
after, before, exception, configure, configure, getApp, setApp, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

DEFAULT_SECURITY_FAILURE_HANDLER

private static final String DEFAULT_SECURITY_FAILURE_HANDLER


KEY_SECURITY_FAILURE_HANDLER

private static final String KEY_SECURITY_FAILURE_HANDLER


LOG

private final org.slf4j.Logger LOG


requirementsPerAction

private final Map requirementsPerAction


securityFailureHandler

SecurityFailureHandler securityFailureHandler


 
Constructor Detail

ShiroGriffonControllerActionInterceptor

ShiroGriffonControllerActionInterceptor()


 
Method Detail

before

public Object[] before(GriffonController controller, String actionName, Object[] args)


configure

public void configure(GriffonController controller, String actionName, Method method)


configure

public void configure(GriffonController controller, String actionName, Field closure)


configureAction

private void configureAction(GriffonController controller, String actionName, AnnotatedElement annotatedElement)


processRequiresAuthentication

private void processRequiresAuthentication(RequiresAuthentication annotation, Map requirements)


processRequiresGuest

private void processRequiresGuest(RequiresGuest annotation, Map requirements)


processRequiresPermissions

private void processRequiresPermissions(RequiresPermissions annotation, Map requirements)


processRequiresRoles

private void processRequiresRoles(RequiresRoles annotation, Map requirements)


setApp

@Overridepublic void setApp(GriffonApplication app) {
public void setApp(GriffonApplication app)


valueOf

ShiroGriffonControllerActionInterceptor valueOf(String name)
Returns the enum constant of this type with the specified name.


values

ShiroGriffonControllerActionInterceptor[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation