Package org.internna.iwebmvc.metadata

Examples of org.internna.iwebmvc.metadata.EntitySecurity


        authorities.add(RoleImpl.ROLE_ANONYMOUS);
        authorities.add(RoleImpl.ROLE_ADMINISTRATOR);
        try {
            Set<Class<DomainEntity>> entities = scanner.collect(EntitySecurity.class);
            for (Class<DomainEntity> entityClass : entities) {
                EntitySecurity es = entityClass.getAnnotation(EntitySecurity.class);
                if (es != null) {
                    for (EntitySecurityRule rule : es.value()) {
                        authorities.addAll(Arrays.asList(rule.ifAllGranted()));
                        authorities.addAll(Arrays.asList(rule.ifAnyGranted()));
                        authorities.addAll(Arrays.asList(rule.ifNotGranted()));
                    }
                }
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.metadata.EntitySecurity

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.