use of com.emc.storageos.db.client.model.Bucket in project coprhd-controller by CoprHD.
the class ObjectDeviceController method syncBucketACL.
@Override
public void syncBucketACL(URI storage, URI bucketId, String opId) throws InternalException {
ControllerUtils.setThreadLocalLogData(bucketId, opId);
_log.info("ObjectDeviceController:updateBucketACL Bucket URI : {} ", bucketId);
Bucket bucketObj = _dbClient.queryObject(Bucket.class, bucketId);
StorageSystem storageObj = _dbClient.queryObject(StorageSystem.class, storage);
ObjectDeviceInputOutput objectArgs = new ObjectDeviceInputOutput();
objectArgs.setName(bucketObj.getName());
objectArgs.setNamespace(bucketObj.getNamespace());
BiosCommandResult result = getDevice(storageObj.getSystemType()).doSyncBucketACL(storageObj, bucketObj, objectArgs, opId);
if (result.getCommandPending()) {
return;
}
bucketObj.getOpStatus().updateTaskStatus(opId, result.toOperation());
}
Aggregations