public ClientResponse runWorkflowResponse(WorkflowInputs workflowInputs) { return super.create(workflowInputs); }
public ClientResponse createRequest(final History history) { return super.create(history); }
public ClientResponse createLibraryRequest(final Library library) { return super.create(library); }
public SearchResponse search(String searchQuery) { final HashMap<String, String> postObject = new HashMap<String, String>(); postObject.put("query", searchQuery); final ClientResponse response = super.create(postObject); return response.getEntity(SearchResponse.class); }
public ClientResponse repairRepositoryRequest(final InstallableRepositoryRevision repositoryIdentifier) { final WebResource resource = super.webResource.path("repair_repository_revision"); return super.create(resource, repositoryIdentifier); }
public ClientResponse uploadServerDirectoryRequest(final String libraryId, final DirectoryLibraryUpload upload) { return super.create(getWebResourceContents(libraryId), upload); }
public ClientResponse uploadFileFromUrlRequest(final String libraryId, final UrlLibraryUpload upload) { return super.create(getWebResourceContents(libraryId), upload); }
public ClientResponse uploadFilesystemPathsRequest(final String libraryId, final FilesystemPathsLibraryUpload upload) { return super.create(getWebResourceContents(libraryId), upload); }
public ClientResponse uploadFileFromUrl(final String libraryId, final FilesystemPathsLibraryUpload upload) { return super.create(getWebResourceContents(libraryId), upload); }
public ClientResponse importWorkflowRequest(String toolShedId, int index) { final WebResource resource = super.webResource.path(toolShedId).path("import_workflow"); final HashMap<String, Object> postObject = new HashMap<String, Object>(); postObject.put("index", index); return super.create(resource, postObject); }
public ClientResponse createFolderRequest(final String libraryId, final LibraryFolder folder) { final String baseFolderId = folder.getFolderId(); if(baseFolderId == null) { throw new IllegalArgumentException("Must specify parent folder id"); } return super.create(getWebResourceContents(libraryId), folder); }
@Override public ClientResponse createDatasetCollectionRequest(String historyId, CollectionDescription collectionDescription) { final ClientResponse response = super.create(super.path(historyId).path("contents"), collectionDescription); return response; }
public ClientResponse installRepositoryRequest(final RepositoryInstall install) { final WebResource resource = super.webResource.path("new").path("install_repository_revision"); return super.create(resource, install); }
public ClientResponse importWorkflowsRequest(String toolShedId) { final WebResource resource = super.webResource.path(toolShedId).path("import_workflows"); return super.create(resource); }
public ToolExecution create(History history, ToolInputs inputs) { inputs.setHistoryId(history.getId()); return super.create(inputs).getEntity(ToolExecution.class); // XXX Datasets not yet properly returned from Tool creation // return new ArrayList(); }
public ClientResponse setLibraryPermissions(String libraryId, LibraryPermissions permissions) { final String payload = write(permissions); return super.create(getWebResource(libraryId).path("permissions"), payload); }
public HistoryDetails createHistoryDataset(String historyId, HistoryDataset hd) { final ClientResponse response = super.create(super.path(historyId).path("contents"), hd); return response.getEntity(HistoryDetails.class); }