jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:06:06 GMT
> +      if (options.isPublicRead()) {
> +         try {
> +            DefaultObjectAccessControlsTemplate doAclTemplate = new DefaultObjectAccessControlsTemplate().entity(
> +                     "allUsers").role(ObjectRole.READER);
> +            api.getDefaultObjectAccessControlsApi().createDefaultObjectAccessControls(container,
doAclTemplate);
> +         } catch (HttpResponseException e) {
> +            // If DefaultObjectAccessControls operation fail, Reverse create operation
the operation.
> +            api.getBucketApi().deleteBucket(container);
> +            return false;
> +         }
> +      }
> +
> +      return bucket != null;
> +   }
> +
> +   /** Returns list of of all the objects */

Remove this Javadoc? Doesn't really add much?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17817470
Mime
View raw message