org.wicketstuff.shiro.authz
Class ShiroUnauthorizedComponentListener

java.lang.Object
  extended by org.wicketstuff.shiro.authz.ShiroUnauthorizedComponentListener
All Implemented Interfaces:
IUnauthorizedComponentInstantiationListener

public class ShiroUnauthorizedComponentListener
extends Object
implements IUnauthorizedComponentInstantiationListener


Constructor Summary
ShiroUnauthorizedComponentListener(Class<? extends Page> loginPage, Class<? extends Page> unauthorizedPage, AnnotationsShiroAuthorizationStrategy s)
           
 
Method Summary
protected  Class<? extends Page> addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)
           
protected  Class<? extends Page> addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)
           
 AnnotationsShiroAuthorizationStrategy getAnnotationStrategy()
           
protected  String getMessage(String key, ShiroSecurityConstraint anno, Component comp)
           
 void onUnauthorizedInstantiation(Component component)
          
 void setAnnotationStrategy(AnnotationsShiroAuthorizationStrategy annotationStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiroUnauthorizedComponentListener

public ShiroUnauthorizedComponentListener(Class<? extends Page> loginPage,
                                          Class<? extends Page> unauthorizedPage,
                                          AnnotationsShiroAuthorizationStrategy s)
Method Detail

addLoginMessagesAndGetPage

protected Class<? extends Page> addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint,
                                                           Component component,
                                                           Class<? extends Page> page)

addUnauthorizedMessagesAndGetPage

protected Class<? extends Page> addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint,
                                                                  Component component,
                                                                  Class<? extends Page> page)

getAnnotationStrategy

public AnnotationsShiroAuthorizationStrategy getAnnotationStrategy()

getMessage

protected String getMessage(String key,
                            ShiroSecurityConstraint anno,
                            Component comp)

onUnauthorizedInstantiation

public void onUnauthorizedInstantiation(Component component)

Specified by:
onUnauthorizedInstantiation in interface IUnauthorizedComponentInstantiationListener

setAnnotationStrategy

public void setAnnotationStrategy(AnnotationsShiroAuthorizationStrategy annotationStrategy)


Copyright © 2015. All Rights Reserved.