org.wicketstuff.shiro.authz
Class ShiroUnauthorizedComponentListener

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

public class ShiroUnauthorizedComponentListener
extends java.lang.Object
implements org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener


Constructor Summary
ShiroUnauthorizedComponentListener(java.lang.Class<? extends org.apache.wicket.Page> loginPage, java.lang.Class<? extends org.apache.wicket.Page> unauthorizedPage, AnnotationsShiroAuthorizationStrategy s)
           
 
Method Summary
protected  java.lang.Class<? extends org.apache.wicket.Page> addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint, org.apache.wicket.Component component, java.lang.Class<? extends org.apache.wicket.Page> page)
           
protected  java.lang.Class<? extends org.apache.wicket.Page> addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint, org.apache.wicket.Component component, java.lang.Class<? extends org.apache.wicket.Page> page)
           
 AnnotationsShiroAuthorizationStrategy getAnnotationStrategy()
           
protected  java.lang.String getMessage(java.lang.String key, ShiroSecurityConstraint anno, org.apache.wicket.Component comp)
           
 void onUnauthorizedInstantiation(org.apache.wicket.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(java.lang.Class<? extends org.apache.wicket.Page> loginPage,
                                          java.lang.Class<? extends org.apache.wicket.Page> unauthorizedPage,
                                          AnnotationsShiroAuthorizationStrategy s)
Method Detail

onUnauthorizedInstantiation

public void onUnauthorizedInstantiation(org.apache.wicket.Component component)
Specified by:
onUnauthorizedInstantiation in interface org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener

getAnnotationStrategy

public AnnotationsShiroAuthorizationStrategy getAnnotationStrategy()

setAnnotationStrategy

public void setAnnotationStrategy(AnnotationsShiroAuthorizationStrategy annotationStrategy)

addUnauthorizedMessagesAndGetPage

protected java.lang.Class<? extends org.apache.wicket.Page> addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint,
                                                                                              org.apache.wicket.Component component,
                                                                                              java.lang.Class<? extends org.apache.wicket.Page> page)

addLoginMessagesAndGetPage

protected java.lang.Class<? extends org.apache.wicket.Page> addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint,
                                                                                       org.apache.wicket.Component component,
                                                                                       java.lang.Class<? extends org.apache.wicket.Page> page)

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      ShiroSecurityConstraint anno,
                                      org.apache.wicket.Component comp)


Copyright © 2010. All Rights Reserved.