| Constructor and Description |
|---|
ZenodoClient(String baseURL,
String token) |
| Modifier and Type | Method and Description |
|---|---|
Deposition |
createDeposition() |
Deposition |
createDeposition(Metadata m) |
void |
deleteDeposition(Integer id) |
boolean |
discard(Integer id) |
Deposition |
getDeposition(Integer id) |
List<Deposition> |
getDepositions() |
List<DepositionFile> |
getFiles(Integer depositionId)
Created by agupta on 19.11.18.
|
boolean |
publish(Integer id) |
boolean |
test() |
Deposition |
updateDeposition(Deposition deposition) |
DepositionFile |
uploadFile(FileMetadata f,
Integer depositionId) |
public Deposition getDeposition(Integer id)
getDeposition in interface ZenodoAPIpublic List<Deposition> getDepositions()
getDepositions in interface ZenodoAPIpublic Deposition updateDeposition(Deposition deposition)
updateDeposition in interface ZenodoAPIpublic void deleteDeposition(Integer id)
deleteDeposition in interface ZenodoAPIpublic Deposition createDeposition() throws UnsupportedOperationException, IOException
public Deposition createDeposition(Metadata m) throws UnsupportedOperationException, IOException
createDeposition in interface ZenodoAPIUnsupportedOperationExceptionIOExceptionpublic List<DepositionFile> getFiles(Integer depositionId)
public DepositionFile uploadFile(FileMetadata f, Integer depositionId) throws UnsupportedOperationException, IOException
uploadFile in interface ZenodoAPIUnsupportedOperationExceptionIOExceptionpublic boolean publish(Integer id)
Copyright © 2019. All rights reserved.