Package com.github.sardine.impl.methods

Examples of com.github.sardine.impl.methods.HttpAcl


  }

  @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());
  }
View Full Code Here

TOP

Related Classes of com.github.sardine.impl.methods.HttpAcl

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.