use of com.qcloud.cos.model.CannedAccessControlList in project jeesuite-libs by vakinge.
the class QcloudProvider method getBucketConfig.
@Override
public BucketConfig getBucketConfig(String bucketName) {
bucketName = buildBucketName(bucketName);
if (!cosclient.doesBucketExist(bucketName))
return null;
CannedAccessControlList acl = cosclient.getBucketAcl(bucketName).getCannedAccessControl();
return new BucketConfig(bucketName, acl == CannedAccessControlList.Private, null);
}
use of com.qcloud.cos.model.CannedAccessControlList in project jeesuite-libs by vakinge.
the class QcloudProvider method getBucketConfig.
@Override
public BucketConfig getBucketConfig(String bucketName) {
bucketName = buildBucketName(bucketName);
if (!cosclient.doesBucketExist(bucketName))
return null;
CannedAccessControlList acl = cosclient.getBucketAcl(bucketName).getCannedAccessControl();
return new BucketConfig(bucketName, acl == CannedAccessControlList.Private, null);
}
Aggregations