Package org.springframework.security.acls.domain

Examples of org.springframework.security.acls.domain.DefaultPermissionFactory


            return Collections.emptyList();
        }
       
        PermissionFactory permissionFactory = getBeanOfType(applicationContext, PermissionFactory.class);
        if (permissionFactory == null) {
            permissionFactory = new DefaultPermissionFactory();
        }
       
        final Set<Permission> permissions = new HashSet<Permission>();
        final StringTokenizer tokenizer = new StringTokenizer(permissionsString, ",", false);
View Full Code Here


    public void initializeBeans() {
        EhCacheBasedAclCache cache = new EhCacheBasedAclCache(getCache());
        AclAuthorizationStrategy authorizationStrategy = new AclAuthorizationStrategyImpl(new SimpleGrantedAuthority("ROLE_ADMINISTRATOR"));
        strategy = new BasicLookupStrategy(dataSource, cache, authorizationStrategy,
                new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()));
        strategy.setPermissionFactory(new DefaultPermissionFactory());
    }
View Full Code Here

        }
       
        map = _applicationContext.getBeansOfType(PermissionFactory.class);

        if (map.size() == 0) {
            permissionFactory = new DefaultPermissionFactory();
        } else if (map.size() == 1) {
          permissionFactory = (PermissionFactory) map.values().iterator().next();
        } else {
            throw new UiException("Found incorrect number of PermissionFactory instances in "
                    + "application context - you must have only have one!");
View Full Code Here

        }

        permissionFactory = getBeanOfType(PermissionFactory.class);

        if (permissionFactory == null) {
            permissionFactory = new DefaultPermissionFactory();
        }
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.acls.domain.DefaultPermissionFactory

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.