Package com.softwaremill.common.cdi.el

Examples of com.softwaremill.common.cdi.el.ELEvaluator


        }
        ctx.responseComplete();
    }

    private void evaluateSecurityExpression(FacesContext ctx, Page page) {
        ELEvaluator evaluator = BeanInject.lookup(ELEvaluator.class);
        Boolean securityResult = evaluator.evaluate(page.getSecurityEL(), Boolean.class);
        if (securityResult == null) {
            throw new RuntimeException("Security EL: " + page.getSecurityEL() + " on page " + page.s() + " doesn't resolve to Boolean");
        }
        if (!securityResult) {
            nav.responseForbidden(ctx);
View Full Code Here

TOP

Related Classes of com.softwaremill.common.cdi.el.ELEvaluator

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.