updated "Edit Administrators"

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@100190 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-09-24 14:51:42 +00:00
parent 745d0bde2b
commit 44c32e14f4
1 changed files with 12 additions and 4 deletions

View File

@ -772,6 +772,15 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
workspaceLogger.trace("User: "+infoContactModel); workspaceLogger.trace("User: "+infoContactModel);
} }
} }
//DEBUG
private void printList(List<String> list){
for (String string : list) {
workspaceLogger.trace(string);
}
}
@Override @Override
public Boolean removeItem(String itemId) throws Exception { public Boolean removeItem(String itemId) throws Exception {
@ -3058,10 +3067,9 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
if(item!=null && item.getType().equals(WorkspaceItemType.SHARED_FOLDER)){ if(item!=null && item.getType().equals(WorkspaceItemType.SHARED_FOLDER)){
WorkspaceSharedFolder sharedFolder = (WorkspaceSharedFolder) item; WorkspaceSharedFolder sharedFolder = (WorkspaceSharedFolder) item;
for (String login : listContactLogins) { workspaceLogger.info("Setting administators:");
workspaceLogger.info("Setting administator: "+login); printList(listContactLogins);
sharedFolder.setAdmin(login); sharedFolder.setAdmins(listContactLogins);
}
return true; return true;
}else }else