added isCurrent to Version

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@173408 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-12 15:31:59 +00:00
parent 848bf79920
commit b1a2d03e59
2 changed files with 2 additions and 1 deletions

View File

@ -853,7 +853,7 @@ public final class WorkspaceStorageHubClientService implements Workspace{
return listVersions;
}catch(Exception e){
logger.error("Error on getting public link: "+fileItemId, e);
logger.error("Error on getting list of versions for: "+fileItemId, e);
String error = e.getMessage()!=null?e.getMessage():"Operation not allowed";
throw new Exception("Error on getting public link. "+error);
}

View File

@ -128,6 +128,7 @@ public class HLMapper {
wsFileVersion.setId(fileVersion.getId());
wsFileVersion.setName(fileVersion.getName());
wsFileVersion.setCreated(fileVersion.getCreated());
wsFileVersion.setCurrentVersion(fileVersion.isCurrent());
//TODO MUST BE TERMINATED
return wsFileVersion;
}