replaced the user ALL with empty string in case of unshare, removed

-SNAPSHOT to be released
This commit is contained in:
Francesco Mangiacrapa 2020-06-25 17:11:38 +02:00
parent 8cd11d782c
commit 2ff3ba214b
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
<groupId>org.gcube.portlets.user</groupId>
<artifactId>workspace-tree-widget</artifactId>
<version>6.30.1-SNAPSHOT</version>
<version>6.30.1</version>
<name>gCube Workspace Tree Widget</name>
<description>
gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace
@ -128,7 +128,7 @@
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-scope-maps</artifactId>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
<!-- END FWS -->

View File

@ -484,7 +484,7 @@ public class StorageHubToWorkpaceConverter implements Serializable{
user = buildGxtInfoContactFromPortalLogin(shubAccEntry.getUser());
}else {
//CASE ALL
user = new InfoContactModel(theUser, theUser, theUser, null, false);
user = new InfoContactModel(theUser, "", "", null, false);
}
af.setUser(user);
af.setDate(FormatterUtil.toDate(shubAccEntry.getDate()));
@ -687,7 +687,7 @@ public class StorageHubToWorkpaceConverter implements Serializable{
AccountEntryUnshare uns = (AccountEntryUnshare) shubAccEntry;
String msg = "Folder ";
msg+= uns.getItemName()==null || uns.getItemName().isEmpty()?"":uns.getItemName()+" ";
if(user.getName().equalsIgnoreCase("ALL")) {
if(shubAccEntry.getUser().equalsIgnoreCase("ALL")) {
msg+= "is no longer shared";
}else
msg+= "is no longer shared with "+user.getName();