public ClientResponse fileUploadRequest(final String historyId, final String fileType, final String dbKey, final File file) { final FileUploadRequest request = new FileUploadRequest(historyId, file); request.setFileType(fileType); request.setDbKey(dbKey); return uploadRequest(request); }
public List<RepositoryWorkflow> exportedWorkflows(String toolShedId) { return super.read(this.exportedWorkflowsRequest(toolShedId), TOOL_SHED_REPOSITORY_WORKFLOW_LIST_TYPE_REFERENCE); }
public static GalaxyInstance get(final String url, final String apiKey) { return get(new DefaultWebResourceFactoryImpl(url, apiKey)); }
public static GalaxyInstance getFromCredentials(final String url, final String email, final String password, final boolean debug) { return get(new GalaxyAuthWebResourceFactoryImpl(url, email, password, debug)); }
public Map<String, Object> getRawConfiguration() { final String json = getJson(getWebResource()); return readJson(json, new TypeReference<Map<String, Object>>() { }); }
public ClientResponse uploadServerDirectoryRequest(final String libraryId, final DirectoryLibraryUpload upload) { return super.create(getWebResourceContents(libraryId), upload); }
public List<InstalledRepository> installRepository(final RepositoryInstall install) { final ClientResponse response = this.installRepositoryRequest(install); return super.read(response, TOOL_SHED_REPOSITORY_LIST_TYPE_REFERENCE); }
@Override public ClientResponse deleteLibraryRequest(String libraryId) { return deleteResponse(getWebResource(libraryId)); } }
@Override public ClientResponse deleteWorkflowRequest(String id) { return deleteResponse(getWebResource(id)); } }
public List<LibraryContent> getLibraryContents(final String libraryId) { return get(getWebResourceContents(libraryId), new TypeReference<List<LibraryContent>>() { }); }
public List<HistoryContents> showHistoryContents(String historyId) { return get(getWebResourceContents(historyId), new TypeReference<List<HistoryContents>>() { }); }
/** * {@inheritDoc} */ @Override public JobDetails showJob(final String id) { return super.show(id, JobDetails.class); }
/** * {@inheritDoc} */ @Override public List<Job> getJobs() { return get(new TypeReference<List<Job>>() { }); }
public List<History> getHistories() { final TypeReference<List<History>> typeReference = new TypeReference<List<History>>() { }; return get(typeReference); }
Client(final GalaxyInstanceImpl galaxyInstance, final String module) { super(galaxyInstance.getWebResource(), module); this.galaxyInstance = galaxyInstance; }
public static GalaxyInstance get(final String url, final String apiKey, final boolean debug) { return get(new DefaultWebResourceFactoryImpl(url, apiKey, debug)); }
public static GalaxyInstance getFromCredentials(final String url, final String email, final String password) { return get(new GalaxyAuthWebResourceFactoryImpl(url, email, password)); }
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); }