public interface ExternalFile extends FolderItem, File
| Modifier and Type | Method and Description |
|---|---|
InputStream |
downloadVersion(String version)
Get a previous version
|
org.gcube.common.homelibary.model.versioning.WorkspaceVersion |
getCurrentVersion()
Get Current version
|
org.gcube.common.homelibary.model.versioning.WorkspaceVersion |
getVersion(String versionID)
Get a version by version ID
|
List<org.gcube.common.homelibary.model.versioning.WorkspaceVersion> |
getVersionHistory()
Get a list of versions
|
void |
removeVersion(String version)
Remove a version
|
void |
removeVersions(List<String> versions)
Remove a list of versions
|
void |
restoreVersion(String version)
Restore a version
|
void |
setData(InputStream data)
Set Data
|
getFolderItemType, getLength, getMimeTypecloneItem, deleteACL, getAccounting, getACLOwner, getACLUser, getChildren, getCreationTime, getDescription, getId, getIdSharedFolder, getLastAction, getLastModificationTime, getLastUpdatedBy, getName, getOwner, getParent, getPath, getProperties, getPublicLink, getReaders, getRemotePath, getSecurePublicLink, getStorageID, getType, hasAccessRight, isFolder, isHidden, isMarkedAsRead, isRoot, isShared, isTrashed, markAsRead, move, remove, removeChild, rename, setDescription, setHidden, updateItemgetData, getHardLink, getLength, getMimeType, getName, getPublicLink, getStorageIdvoid setData(InputStream data) throws InternalErrorException
data - an inputstreamInternalErrorExceptionList<org.gcube.common.homelibary.model.versioning.WorkspaceVersion> getVersionHistory() throws InternalErrorException
InternalErrorExceptionvoid restoreVersion(String version) throws InternalErrorException, InsufficientPrivilegesException
version - a previous versionInternalErrorExceptionInsufficientPrivilegesExceptionvoid removeVersion(String version) throws InternalErrorException, InsufficientPrivilegesException
version - a previous versionInternalErrorExceptionInsufficientPrivilegesExceptionvoid removeVersions(List<String> versions) throws InternalErrorException, InsufficientPrivilegesException
versions - a list of versionsInternalErrorExceptionInsufficientPrivilegesExceptionorg.gcube.common.homelibary.model.versioning.WorkspaceVersion getCurrentVersion()
throws InternalErrorException
InternalErrorExceptionorg.gcube.common.homelibary.model.versioning.WorkspaceVersion getVersion(String versionID) throws InternalErrorException
versionID - InternalErrorExceptionInputStream downloadVersion(String version) throws InternalErrorException
InternalErrorExceptionCopyright © 2020. All Rights Reserved.