galaxyproject / blend4j

blend4j is a JVM partial reimplementation of the Python library bioblend for interacting with Galaxy, CloudMan, and BioCloudCentral.
Eclipse Public License 1.0
16 stars 22 forks source link

Feature/delete galaxy objects #28

Closed apetkau closed 9 years ago

apetkau commented 9 years ago

This adds the methods to delete Histories, Data Libraries, and Workflows. This can be accomplished by running the methods:

HistoriesClient.deleteHistory(String historyId);
LibrariesClient.deleteLibraryResponse(String libraryId);
WorkflowsClient.deleteWorkflowResponse(String workflowId);

The HistoriesClient.deleteHistory will return a HistoryDeleteResponse representing the information returned from a DELETE operation. Deleting libraries or workflows will just return a ClientResponse (specific response objects for each could be added though).

Also, HistoriesClient.deleteHistory does not allow for purging of histories. This is due to a bug in Java 6 and 7 which disallows sending a body along with a DELETE request (see http://bugs.java.com/view_bug.do?bug_id=7157360 and http://stackoverflow.com/questions/12670169/not-able-to-invoke-an-delete-web-service-in-rest-jersey/20075713#20075713).

Please let me know if you'd like to see any additional changes.

jmchilton commented 9 years ago

Absolutely brilliant - the quality of the code you produce is really quite humbling.

apetkau commented 9 years ago

Heh, thanks.