Package be.c4j.ee.security.view

Examples of be.c4j.ee.security.view.InvocationContextImpl


            AbstractAccessDecisionVoter bean = getBean(voter.trim());

            if (bean == null) {
                return false;
            }
            InvocationContext ic = new InvocationContextImpl(secureComponentData
                    .getTargetComponent(), contextParameters);
            Set<SecurityViolation> securityViolations = bean.checkPermission(ic);

            partialResult = securityViolations.isEmpty();
            if (secureComponentData.isNot()) {
View Full Code Here


        String[] voters = (String[]) mappedValue;

        BeanManager bm = BeanManagerProvider.getInstance().getBeanManager();

        String url = ((HttpServletRequest) request).getRequestURL().toString();
        InvocationContext ic = new InvocationContextImpl(url, new Object[]{request});

        boolean permitted = true;

        for (String voter : voters) {
            AbstractGenericVoter voterObj = CDIUtil.getContextualReferenceByName(bm, voter, AbstractGenericVoter.class);
View Full Code Here

TOP

Related Classes of be.c4j.ee.security.view.InvocationContextImpl

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.