Package com.cloud.bridge.persist.dao

Examples of com.cloud.bridge.persist.dao.SBucketDao.listBuckets()


    {
      S3ListAllMyBucketsResponse response = new S3ListAllMyBucketsResponse();    
      SBucketDao bucketDao = new SBucketDao();
     
      // -> "...you can only list buckets for which you are the owner."
      List<SBucket> buckets = bucketDao.listBuckets(UserContext.current().getCanonicalUserId());
      S3CanonicalUser owner = new S3CanonicalUser();
      owner.setID(UserContext.current().getCanonicalUserId());
      owner.setDisplayName("");
      response.setOwner(owner);
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.