/** * Validates the provided ACL list for null, empty or null value in it. * * @param acl * ACL list * @throws InvalidACLException * if ACL list is not valid */ private void validateACL(List<ACL> acl) throws KeeperException.InvalidACLException { if (acl == null || acl.isEmpty() || acl.contains(null)) { throw new KeeperException.InvalidACLException(); } } }
List<ACL> rv = new LinkedList<ACL>(); if (uniqacls == null || uniqacls.size() == 0) { throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path);
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
throw new KeeperException.InvalidACLException(path); path = setAclRequest.getPath(); if (!fixupACL(request.authInfo, setAclRequest.getAcl())) { throw new KeeperException.InvalidACLException(path);
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
throw new KeeperException.InvalidACLException(path); listACL = removeDuplicates(setAclRequest.getAcl()); if (!fixupACL(request.authInfo, listACL)) { throw new KeeperException.InvalidACLException(path);
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException(clientPath);
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();