Add @Beta annotations to BlobStore ACL methods

Also add missing @Override annotations.
This commit is contained in:
Andrew Gaul 2015-02-21 10:18:57 -08:00
parent be7b9f4cc4
commit bc81919c58
3 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,8 @@ package org.jclouds.blobstore;
import java.util.Set;
import com.google.common.annotations.Beta;
import org.jclouds.blobstore.domain.Blob;
import org.jclouds.blobstore.domain.BlobBuilder;
import org.jclouds.blobstore.domain.BlobMetadata;
@ -92,8 +94,10 @@ public interface BlobStore {
*/
boolean createContainerInLocation(@Nullable Location location, String container, CreateContainerOptions options);
@Beta
ContainerAccess getContainerAccess(String container);
@Beta
void setContainerAccess(String container, ContainerAccess access);
/**

View File

@ -17,6 +17,9 @@
package org.jclouds.blobstore.domain;
import com.google.common.annotations.Beta;
@Beta
public enum ContainerAccess {
/** Only allow bucket owner to read and write objects. */
PRIVATE,

View File

@ -284,6 +284,7 @@ public class AzureBlobStore extends BaseBlobStore {
return sync.createContainer(container, createContainerOptions);
}
@Override
public ContainerAccess getContainerAccess(String container) {
PublicAccess access = sync.getPublicAccessForContainer(container);
if (access == PublicAccess.BLOB) {
@ -293,6 +294,7 @@ public class AzureBlobStore extends BaseBlobStore {
}
}
@Override
public void setContainerAccess(String container, ContainerAccess access) {
PublicAccess publicAccess;
if (access == ContainerAccess.PUBLIC_READ) {