Examples of CanonicalGrantee


Examples of org.jets3t.service.acl.CanonicalGrantee

        for (int i = 0; i < s3AclRetries; ++i) {
            try {
                AccessControlList acl = s3Service.getObjectAcl(object.getBucketName(), object.getKey());
                for (String id : s3Acl.split(",")) {
                    acl.grantPermission(new CanonicalGrantee(id), Permission.PERMISSION_READ);
                }
                s3Service.putObjectAcl(object.getBucketName(), object.getKey(), acl);
                return true;
            } catch (Exception e) {
                log.error("Exception while granting ACL: " + e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.