List of usage examples for org.apache.hadoop.hdfs.web.resources AclPermissionParam AclPermissionParam
public AclPermissionParam(List<AclEntry> acl)
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@Override public void modifyAclEntries(Path path, List<AclEntry> aclSpec) throws IOException { statistics.incrementWriteOps(1);/*from w w w. j a va 2s . c o m*/ final HttpOpParam.Op op = PutOpParam.Op.MODIFYACLENTRIES; new FsPathRunner(op, path, new AclPermissionParam(aclSpec)).run(); }
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@Override public void removeAclEntries(Path path, List<AclEntry> aclSpec) throws IOException { statistics.incrementWriteOps(1);//from w w w .j av a 2s . co m final HttpOpParam.Op op = PutOpParam.Op.REMOVEACLENTRIES; new FsPathRunner(op, path, new AclPermissionParam(aclSpec)).run(); }
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@Override public void setAcl(final Path p, final List<AclEntry> aclSpec) throws IOException { statistics.incrementWriteOps(1);//from ww w.j av a 2 s. co m final HttpOpParam.Op op = PutOpParam.Op.SETACL; new FsPathRunner(op, p, new AclPermissionParam(aclSpec)).run(); }