public List<LibraryContent> getLibraryContents(final String libraryId) { return get(getWebResourceContents(libraryId), new TypeReference<List<LibraryContent>>() { }); }
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 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 showDatasetRequest(String libraryId, String datasetId) { return getResponse(getWebResourceContents(libraryId).path(datasetId)); }
public ClientResponse uploadFile(String libraryId, FileLibraryUpload upload) { final Map<String, Object> entityMap = new HashMap<String, Object>(); entityMap.put("file_type", upload.getFileType()); entityMap.put("db_key", upload.getDbkey()); entityMap.put("files_0|NAME", upload.getName()); entityMap.put("upload_option", upload.getUploadOption()); entityMap.put("folder_id", upload.getFolderId()); entityMap.put("create_type", upload.getCreateType()); return super.multipartPost(getWebResourceContents(libraryId), entityMap, prepareUpload(upload.getFile())); }