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

@ -773,6 +773,15 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
}
}
//DEBUG
private void printList(List<String> list){
for (String string : list) {
workspaceLogger.trace(string);
}
}
@Override
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)){
WorkspaceSharedFolder sharedFolder = (WorkspaceSharedFolder) item;
for (String login : listContactLogins) {
workspaceLogger.info("Setting administator: "+login);
sharedFolder.setAdmin(login);
}
workspaceLogger.info("Setting administators:");
printList(listContactLogins);
sharedFolder.setAdmins(listContactLogins);
return true;
}else