Package org.jtalks.common.security.acl.builders

Examples of org.jtalks.common.security.acl.builders.AclBuilders


     */
    private void changeGrantsOfGroup(Group group, JtalksPermission permission, Entity entity, boolean granted) {
        if (group instanceof AnonymousGroup) {
            changeGrantsOfAnonymousGroup(permission, entity, granted);
        } else {
            AclBuilders builders = new AclBuilders();
            if (granted) {
                builders.newBuilder(aclManager).grant(permission).to(group).on(entity).flush();
            } else {
                builders.newBuilder(aclManager).restrict(permission).to(group).on(entity).flush();
            }
        }
    }
View Full Code Here


                                     JtalksPermission permission,
                                     Entity entity) {
        if (group instanceof AnonymousGroup) {
            deleteGrantsOfAnonymousGroup(permission, entity);
        } else {
            AclBuilders builders = new AclBuilders();
            builders.newBuilder(aclManager).delete(permission).from(group).on(entity).flush();
        }
    }
View Full Code Here

TOP

Related Classes of org.jtalks.common.security.acl.builders.AclBuilders

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.