Package be.c4j.ee.security.role

Examples of be.c4j.ee.security.role.NamedRole


            AnnotatedType<GenericRoleVoter> roleVoterAnnotatedType = beanManager
                    .createAnnotatedType(GenericRoleVoter.class);
            InjectionTarget<GenericRoleVoter> voterInjectionTarget = beanManager
                    .createInjectionTarget(roleVoterAnnotatedType);

            NamedRole namedRole;
            String beanName;

            for (Object permission : constants) {
                namedRole = (NamedRole) permission;
                beanName = nameFactory.generateRoleBeanName(namedRole.name());

                Bean<GenericRoleVoter> bean = new BeanBuilder<GenericRoleVoter>(beanManager)
                        .passivationCapable(false).beanClass(GenericRoleVoter.class)
                        .addTypes(AbstractAccessDecisionVoter.class, GenericRoleVoter.class)
                        .injectionPoints(voterInjectionTarget.getInjectionPoints()).name(beanName)
View Full Code Here


    }

    public AuthorizationInfoBuilder addRoles(Collection<? extends NamedRole> namedRoles) {
        Iterator<? extends NamedRole> iter = namedRoles.iterator();
        while (iter.hasNext()) {
            NamedRole namedRole = iter.next();
            addRole(namedRole);
        }
        return this;
    }
View Full Code Here

TOP

Related Classes of be.c4j.ee.security.role.NamedRole

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.