Package grails.plugin.springsecurity.annotation

Examples of grails.plugin.springsecurity.annotation.SecuredClosureDelegate


    if (attribute == null) {
      return ACCESS_ABSTAIN;
    }

    Closure<?> closure = (Closure<?>) attribute.getClosure().clone();
    closure.setDelegate(new SecuredClosureDelegate(authentication, fi, ctx));
    Object result = closure.call();
    if (result instanceof Boolean) {
      return ((Boolean)result) ? ACCESS_GRANTED : ACCESS_DENIED;
    }
View Full Code Here

TOP

Related Classes of grails.plugin.springsecurity.annotation.SecuredClosureDelegate

Copyright © 2018 www.massapicom. 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.