Examples of ShiroSecurityConstraint


Examples of org.wicketstuff.shiro.annotation.ShiroSecurityConstraint

    Subject subject = SecurityUtils.getSubject();
    boolean notLoggedIn = (subject.getPrincipal()==null);
    Class<? extends Page> page = notLoggedIn ? loginPage : unauthorizedPage;
   
    if( annotationStrategy != null ) {
      ShiroSecurityConstraint fail = annotationStrategy.checkInvalidInstantiationcomponent.getClass() );
      if( fail != null ) {
        if( notLoggedIn ) {
          addLoginMessagesAndGetPage(fail, component, page);
        }
        else {
View Full Code Here

Examples of org.wicketstuff.shiro.annotation.ShiroSecurityConstraint

    final boolean notLoggedIn = !subject.isAuthenticated();
    final Class<? extends Page> page = notLoggedIn ? loginPage : unauthorizedPage;

    if (annotationStrategy != null)
    {
      final ShiroSecurityConstraint fail = annotationStrategy.checkInvalidInstantiation(component.getClass());
      if (fail != null)
        if (notLoggedIn)
          addLoginMessagesAndGetPage(fail, component, page);
        else
          addUnauthorizedMessagesAndGetPage(fail, component, page);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.