Package com.cloud.bridge.persist.dao

Examples of com.cloud.bridge.persist.dao.BucketPolicyDao.deletePolicy()


        
       // -> delete all the policy state associated with the bucket
       try {
                ServiceProvider.getInstance().deleteBucketPolicy( bucketName );
             BucketPolicyDao policyDao = new BucketPolicyDao();
             policyDao.deletePolicy( bucketName );
       }
       catch( Exception e ) {
                logger.error("When deleting a bucket we must try to delete its policy: ", e);
       }
      
View Full Code Here


      try {
        // -> first make sure that the policy is valid by parsing it
           PolicyParser parser = new PolicyParser();
        S3BucketPolicy sbp = parser.parse( policy, bucketName );

          policyDao.deletePolicy( bucketName );
          if (null != policy && !policy.isEmpty()) policyDao.addPolicy( bucketName, client, policy );
                 
        if (null != sbp) ServiceProvider.getInstance().setBucketPolicy( bucketName, sbp );
        response.setStatus(200);     
      }
View Full Code Here

          if ( null == policy ) {
           response.setStatus(204);
          }
          else {
                ServiceProvider.getInstance().deleteBucketPolicy( bucketName );
               policyDao.deletePolicy( bucketName );
             response.setStatus(200);
          }
      }
    catch( Exception e ) {
      logger.error("Delete Bucket Policy failed due to " + e.getMessage(), e)
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.