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:
parent
848bf79920
commit
b1a2d03e59
|
@ -853,7 +853,7 @@ public final class WorkspaceStorageHubClientService implements Workspace{
|
||||||
return listVersions;
|
return listVersions;
|
||||||
|
|
||||||
}catch(Exception e){
|
}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";
|
String error = e.getMessage()!=null?e.getMessage():"Operation not allowed";
|
||||||
throw new Exception("Error on getting public link. "+error);
|
throw new Exception("Error on getting public link. "+error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,6 +128,7 @@ public class HLMapper {
|
||||||
wsFileVersion.setId(fileVersion.getId());
|
wsFileVersion.setId(fileVersion.getId());
|
||||||
wsFileVersion.setName(fileVersion.getName());
|
wsFileVersion.setName(fileVersion.getName());
|
||||||
wsFileVersion.setCreated(fileVersion.getCreated());
|
wsFileVersion.setCreated(fileVersion.getCreated());
|
||||||
|
wsFileVersion.setCurrentVersion(fileVersion.isCurrent());
|
||||||
//TODO MUST BE TERMINATED
|
//TODO MUST BE TERMINATED
|
||||||
return wsFileVersion;
|
return wsFileVersion;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue