Package org.jets3t.service.acl.gs

Examples of org.jets3t.service.acl.gs.AllUsersGrantee


        gsService.createBucket(publicBucketName);

        // Retrieve the bucket's ACL and modify it to grant public access,
        // ie READ access to the ALL_USERS group.
        GSAccessControlList bucketAcl = gsService.getBucketAcl(publicBucketName);
        bucketAcl.grantPermission(new AllUsersGrantee(), Permission.PERMISSION_READ);

        // Update the bucket's ACL. Now anyone can view the list of objects in this bucket.
        publicBucket.setAcl(bucketAcl);
        gsService.putBucketAcl(publicBucket);
View Full Code Here


            linkUrlPrefix = "https://s3.amazonaws.com";
        }
        // Use Google- or S3-specific ACL elements depending on which service class we're using
        GranteeInterface allUsersGrantee = null;
        if (service instanceof GoogleStorageService) {
            allUsersGrantee = new AllUsersGrantee();
        } else {
            allUsersGrantee = GroupGrantee.ALL_USERS;
        }

        StorageBucket bucket = createBucketForTest("testACLManagement");
View Full Code Here

           } else if (scopeType.equals("GroupByEmail")) {
               currentGrantee = new GroupByEmailAddressGrantee();
           } else if (scopeType.equals("GroupByDomain")) {
               currentGrantee = new GroupByDomainGrantee();
           } else if (scopeType.equals("AllUsers")) {
               currentGrantee = new AllUsersGrantee();
           } else if (scopeType.equals("AllAuthenticatedUsers")) {
               currentGrantee = new AllAuthenticatedUsersGrantee();
           }
       }
   }
View Full Code Here

TOP

Related Classes of org.jets3t.service.acl.gs.AllUsersGrantee

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.