mirror of https://github.com/apache/jclouds.git
Add @Beta annotations to BlobStore ACL methods
Also add missing @Override annotations.
This commit is contained in:
parent
be7b9f4cc4
commit
bc81919c58
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue