Package be.c4j.ee.security.permission

Examples of be.c4j.ee.security.permission.GenericPermissionVoter.checkPermission()


        for (Object permissionConstant : AnnotationUtil.getPermissionValues(customNamedCheck)) {
            String beanName = nameFactory.generatePermissionBeanName(((NamedPermission) permissionConstant).name());

            GenericPermissionVoter voter = CDIUtil.getContextualReferenceByName(beanmanager, beanName
                    , GenericPermissionVoter.class);
            result.addAll(voter.checkPermission(invocationContext));

        }
        return result;
    }
View Full Code Here


        for ( Object permissionConstant :  AnnotationUtil.getRoleValues(customNamedCheck)) {
            String beanName = nameFactory.generateRoleBeanName(((NamedRole) permissionConstant).name());

            GenericPermissionVoter voter = CDIUtil.getContextualReferenceByName(beanmanager,  beanName
                    , GenericPermissionVoter.class);
            result.addAll(voter.checkPermission(invocationContext));

        }
        return result;
    }
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.