@Override
public void setAcl(String url, List<DavAce> aces) throws IOException
{
HttpAcl entity = new HttpAcl(url);
// Build WebDAV <code>ACL</code> entity.
Acl body = new Acl();
body.setAce(new ArrayList<Ace>());
for (DavAce davAce : aces)
{
// protected and inherited acl must not be part of ACL http request
if (davAce.getInherited() != null || davAce.isProtected())
{
continue;
}
Ace ace = davAce.toModel();
body.getAce().add(ace);
}
entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
this.execute(entity, new VoidResponseHandler());
}