Package org.exist.security.internal.aider

Examples of org.exist.security.internal.aider.ACEAider


                    }
                    if((Boolean)tblAcl.getValueAt(i, 5)) {
                        mode |= Permission.EXECUTE;
                    }
                   
                    dlgAces.add(new ACEAider(access, target, who, mode));
                }
            }

            for(final ResourceDescriptor desc : applyTo) {
                if (desc.isCollection()) {
View Full Code Here


        }
        if((Boolean)tblPermission.getValueAt(0, 2)) {
            mode |= Permission.EXECUTE;
        }
       
        final ACEAider ace = new ACEAider(accessType, target, who, mode);
        for(final DialogCompleteWithResponse<ACEAider> callback : getDialogCompleteWithResponseCallbacks()) {
            callback.complete(ace);
        }
       
        setVisible(false);
View Full Code Here

        return owner;
    }

    @Override
    public void addACE(int index, ACE_TARGET target, String who, ACE_ACCESS_TYPE access_type, int mode) {
        aces.add(new ACEAider(access_type, target, who, mode));
    }
View Full Code Here

   
    private List<ACEAider> getACEs(Permission perm) {
        final List<ACEAider> aces = new ArrayList<ACEAider>();
        final ACLPermission aclPermission = (ACLPermission)perm;
        for(int i = 0; i < aclPermission.getACECount(); i++) {
            aces.add(new ACEAider(aclPermission.getACEAccessType(i), aclPermission.getACETarget(i), aclPermission.getACEWho(i), aclPermission.getACEMode(i)));
        }
        return aces;
    }
View Full Code Here

   
    private List<ACEAider> getACEs(Permission perm) {
        final List<ACEAider> aces = new ArrayList<ACEAider>();
        final ACLPermission aclPermission = (ACLPermission)perm;
        for(int i = 0; i < aclPermission.getACECount(); i++) {
            aces.add(new ACEAider(aclPermission.getACEAccessType(i), aclPermission.getACETarget(i), aclPermission.getACEWho(i), aclPermission.getACEMode(i)));
        }
        return aces;
    }
View Full Code Here

        final Permission perm = PermissionAiderFactory.getPermission(owner, group, mode);
        if(perm instanceof ACLPermission && listOfAces != null && !listOfAces.isEmpty()) {
            final ACLPermission aclPermission = (ACLPermission)perm;
            for(final Object listOfAcesItem : listOfAces) {
                if(listOfAcesItem instanceof ACEAider) {
                    final ACEAider ace = (ACEAider)listOfAcesItem;
                    aclPermission.addACE(ace.getAccessType(), ace.getTarget(), ace.getWho(), ace.getMode());
                }
            }
        }
        return perm;
    }
View Full Code Here

TOP

Related Classes of org.exist.security.internal.aider.ACEAider

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.