* Created collection has a default name and is uploaded to user's 'Home' project.
*
* @see ArvadosFacade#upload(List, String, String)
+ * @param files list of files to be uploaded within new collection
+ * @return collection object mapped from JSON that is returned from server after successful upload
*/
public Collection upload(List<File> files) {
return upload(files, null, null);
* Created collection has a default name and is uploaded to user's 'Home' project.
*
* @see ArvadosFacade#upload(List, String, String)
+ * @param file file to be uploaded
+ * @return collection object mapped from JSON that is returned from server after successful upload
*/
public Collection upload(File file) {
return upload(Collections.singletonList(file), null, null);
* Uploads a file to a specified collection.
*
* @see ArvadosFacade#uploadToExistingCollection(List, String)
+ * @param file file to be uploaded to existing collection. Filenames must be unique
+ * in comparison with files already existing within collection.
+ * @param collectionUUID UUID of collection to which files should be uploaded
+ * @return collection object mapped from JSON that is returned from server after successful upload
*/
public Collection uploadToExistingCollection(File file, String collectionUUID) {
return fileUploader.uploadToExistingCollection(Collections.singletonList(file), collectionUUID);
return collectionsApiClient.list(listArgument);
}
+ /**
+ * Gets project details by uuid.
+ *
+ * @param projectUuid uuid of project
+ * @return Group object containing information about project
+ */
+ public Group getProjectByUuid(String projectUuid) {
+ Group project = groupsApiClient.get(projectUuid);
+ log.debug("Retrieved " + project.getName() + " with UUID: " + project.getUuid());
+ return project;
+ }
+
/**
* Creates new project that will be a subproject of "home" for current user.
*