Examples of deleteObject()


Examples of org.jets3t.service.impl.rest.httpclient.GoogleStorageService.deleteObject()

        } catch (ServiceException e) {
            e.printStackTrace();
        }

        // Delete all the objects in the bucket
        gsService.deleteObject(BUCKET_NAME, object.getKey());
        gsService.deleteObject(BUCKET_NAME, helloWorldObject.getKey());
        gsService.deleteObject(BUCKET_NAME, stringObject.getKey());
        gsService.deleteObject(BUCKET_NAME, fileObject.getKey());

        // Now that the bucket is empty, you can delete it.
View Full Code Here

Examples of org.jets3t.service.impl.rest.httpclient.RestS3Service.deleteObject()

        } catch (S3ServiceException e) {
            e.printStackTrace();
        }

        // Delete all the objects in the bucket
        s3Service.deleteObject(testBucket, object.getKey());
        s3Service.deleteObject(testBucket, helloWorldObject.getKey());

        // Now that the bucket is empty, you can delete it.
        s3Service.deleteBucket(testBucket.getName());
        System.out.println("Deleted bucket " + testBucket.getName());
View Full Code Here

Examples of org.jets3t.service.impl.rest.httpclient.RestStorageService.deleteObject()

                assertEquals("Expected denied access (403) error", 403, ((HttpURLConnection) url
                    .openConnection()).getResponseCode());
            }

            // Clean-up.
            service.deleteObject(bucketName, privateKey);
            service.deleteObject(bucketName, publicKey);
            service.deleteObject(bucketName, publicKey2);
        } finally {
            cleanupBucketForTest("testACLManagement");
        }
View Full Code Here

Examples of org.jets3t.service.impl.soap.axis._2006_03_01.AmazonS3SoapBindingStub.deleteObject()

        try {
            AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
            Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
            String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
                Constants.SOAP_SERVICE_NAME + "DeleteObject" + convertDateToString(timestamp));
            s3SoapBinding.deleteObject(bucketName, objectKey,
                getAWSAccessKey(), timestamp, signature, null);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Delete Object: " + objectKey, e);  
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

      // Original rating has been deleted in the meantime. Don't delete it again.
      return 0;
    }
    // Delete this rating and finish
    DB db = DBFactory.getInstance();
    db.deleteObject(rating);
    return 1;

  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

        reply.setParent(comment.getParent());
        db.updateObject(reply);
      }
    }
    // Now delete this comment and finish
    db.deleteObject(comment);
    return counter+1;
  }
 
  /**
   * @see org.olat.core.commons.services.commentAndRating.UserCommentsManager#deleteAllComments()
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

    // make sure the message is reloaded if it is not in the hibernate session
    // cache
    m = (Message) db.loadObject(m);
    // delete all properties of one single message
    deleteMessageProperties(forumKey, m);
    db.deleteObject(m);
   
    if(isLogDebugEnabled()){
      logDebug("Deleting message ", m.getKey().toString());
    }
  }
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

    final DB db = DBFactory.getInstance();
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(Checklist.class, cl.getKey());
    CoordinatorManager.getCoordinator().getSyncer().doInSync(ores, new SyncerExecutor() {
        public void execute() {
          Checklist checklist = (Checklist) db.loadObject(cl);
          db.deleteObject(checklist);
        }
    });
  }

  /**
 
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

        .getKey() }, new Type[] { Hibernate.LONG });
    // 2) delete all policies
    db.delete("from org.olat.basesecurity.PolicyImpl as poi where poi.securityGroup = ?", new Object[] { secGroup.getKey() },
        new Type[] { Hibernate.LONG });
    // 3) delete security group
    db.deleteObject(secGroup);
  }

  /**
   * @see org.olat.basesecurity.Manager#addIdentityToSecurityGroup(org.olat.core.id.Identity, org.olat.basesecurity.SecurityGroup)
   */
 
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.deleteObject()

    if (owner != null) secGroupsToBeDeleted.add(owner);
    // delete user bookmarks
    OLATResourceable ores = createOLATResouceableFor(ce);
    BookmarkManager.getInstance().deleteAllBookmarksFor(ores);
    // delete catalog entry itself
    db.deleteObject(ce);
  }

  /**
   * find all catalog entries referencing the supplied Repository Entry.
   *
 
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.