git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@120298 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0ded2ac486
commit
b07d468ff1
|
@ -712,16 +712,11 @@ public class GWTWorkspaceBuilder {
|
|||
break;
|
||||
|
||||
}
|
||||
//ACCOUNTING
|
||||
//REMOVED IS MARK AS READ FROM HL
|
||||
// fileModel.setMarkAsRead(item.isMarkedAsRead());
|
||||
|
||||
if(parentFolderModel!=null && parentFolderModel.isShared()){
|
||||
fileModel.setShared(true);
|
||||
fileModel.setShareable(false); //UPDATED TO CHANGE PERMISSIONS TO SHARED SUBFOLDERS
|
||||
// fileModel.setShareable(true);
|
||||
}
|
||||
// fileModel.setOwner(new InfoContactModel(item.getOwner().getId(), item.getOwner().getPortalLogin(), "name"));
|
||||
//// fileModel.setShared(item.isShared());
|
||||
return fileModel;
|
||||
}
|
||||
|
||||
|
@ -788,15 +783,12 @@ public class GWTWorkspaceBuilder {
|
|||
fileGridModel.setShareable(false); //UPDATED TO CHANGE PERMISSIONS TO SHARED SUBFOLDERS
|
||||
}
|
||||
|
||||
//TODO ISSHARED IN SEARCH ITEM IN HL TO RETRIEVE SHARE ON WORKSPACEITEM
|
||||
//OWNER
|
||||
if(item.isShared()){ //IS READ FROM HL ONLY IF THE ITEM IS SHARED
|
||||
fileGridModel.setShared(true); //TEMPORARY SOLUTION: ADDED TO FIX WRONG TYPE SearchFolderItem
|
||||
String portalLogin = item.getOwner();
|
||||
String portalLogin = item.getOwner(); //IS PORTAL LOGIN
|
||||
if(portalLogin!=null){
|
||||
String fullName = portalLogin;
|
||||
fullName = UserUtil.getUserFullName(portalLogin);
|
||||
fileGridModel.setOwnerFullName(fullName);
|
||||
fileGridModel.setOwnerFullName(UserUtil.getUserFullName(portalLogin));
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
@ -891,9 +883,7 @@ public class GWTWorkspaceBuilder {
|
|||
if(owner!=null){
|
||||
// System.out.println("++++reading owner");
|
||||
String portalLogin = owner.getPortalLogin();
|
||||
String fullName = portalLogin;
|
||||
fullName = UserUtil.getUserFullName(portalLogin);
|
||||
fileGridModel.setOwnerFullName(fullName);
|
||||
fileGridModel.setOwnerFullName(UserUtil.getUserFullName(portalLogin));
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -69,8 +69,8 @@ public class UserUtil {
|
|||
}
|
||||
}else{
|
||||
logger.trace("DEVELOPEMENT MODE ON");
|
||||
logger.trace("Returning "+WsUtil.TEST_USER_FULL_NAME +" full name for: "+portalLogin);
|
||||
return WsUtil.TEST_USER_FULL_NAME;
|
||||
logger.trace("Returning input login: "+portalLogin);
|
||||
return portalLogin;
|
||||
}
|
||||
|
||||
logger.trace("Return portal login as full name for: "+portalLogin);
|
||||
|
|
Loading…
Reference in New Issue