diff --git a/src/main/java/org/gcube/common/storagehubwrapper/server/tohl/Workspace.java b/src/main/java/org/gcube/common/storagehubwrapper/server/tohl/Workspace.java index d4fa60c..24899d5 100644 --- a/src/main/java/org/gcube/common/storagehubwrapper/server/tohl/Workspace.java +++ b/src/main/java/org/gcube/common/storagehubwrapper/server/tohl/Workspace.java @@ -278,9 +278,8 @@ public interface Workspace{ public WorkspaceItem renameItem(String itemId, String newName) throws ItemNotFoundException, InternalErrorException, ItemAlreadyExistException, InsufficientPrivilegesException, Exception; - /** - * Gets the public link for file. + * Gets the public link to the latest version of file item. * * @param fileItemId the file item id * @return the public link for file @@ -288,6 +287,16 @@ public interface Workspace{ */ public URL getPublicLinkForFile(String fileItemId) throws Exception; + /** + * Gets the public link of the file at the input version + * + * @param fileItemId the file item id + * @param version the version + * @return the public link for file + * @throws Exception the exception + */ + public URL getPublicLinkForFile(String fileItemId, String version) throws Exception; + /** * Gets the list versions for file.