Search in sources :

Example 1 with CannedAccessControlList

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);
}
Also used : CannedAccessControlList(com.qcloud.cos.model.CannedAccessControlList) BucketConfig(com.jeesuite.cos.BucketConfig)

Example 2 with CannedAccessControlList

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);
}
Also used : CannedAccessControlList(com.qcloud.cos.model.CannedAccessControlList) BucketConfig(com.mendmix.cos.BucketConfig)

Aggregations

CannedAccessControlList (com.qcloud.cos.model.CannedAccessControlList)2 BucketConfig (com.jeesuite.cos.BucketConfig)1 BucketConfig (com.mendmix.cos.BucketConfig)1