Francesco Mangiacrapa 2014-05-29 10:44:34 +00:00
parent d5ccb5d3d7
commit 462f4927de
2 changed files with 15 additions and 5 deletions

View File

@ -85,10 +85,10 @@ public class UserStore implements ContactFetcher{
List<InfoContactModel> listExclusiveContact = new ArrayList<InfoContactModel>(listAllContact); List<InfoContactModel> listExclusiveContact = new ArrayList<InfoContactModel>(listAllContact);
for (InfoContactModel contact : listSharedUser) { for (InfoContactModel contact : listSharedUser) {
if(listAllContact.contains(contact)){ if(listAllContact.contains(contact)){
// GWT.log("Removing not eclusive contact "+contact);
listExclusiveContact.remove(contact); listExclusiveContact.remove(contact);
} }
} }
return listExclusiveContact; return listExclusiveContact;
} }

View File

@ -148,8 +148,8 @@ public class GWTWorkspaceBuilder {
hashTestUser.put("massimiliano.assante", new InfoContactModel("massimiliano.assante", "massimiliano.assante", "Massimiliano Assante",false)); hashTestUser.put("massimiliano.assante", new InfoContactModel("massimiliano.assante", "massimiliano.assante", "Massimiliano Assante",false));
//GROUPS //GROUPS
hashTestUser.put("/gcube/devsec/devVRE", new InfoContactModel("/gcube/devsec/devVRE", "/gcube/devsec/devVRE", "",true)); // hashTestUser.put("/gcube/devsec/devVRE", new InfoContactModel("/gcube/devsec/devVRE", "/gcube/devsec/devVRE", "",true));
hashTestUser.put("/gcube/devsec/gcube-test-test", new InfoContactModel("/gcube/devsec/gcube-test-test", "/gcube/gcube-test-test", "",true)); // hashTestUser.put("/gcube/devsec/gcube-test-test", new InfoContactModel("/gcube/devsec/gcube-test-test", "/gcube/gcube-test-test", "",true));
} }
return hashTestUser; return hashTestUser;
@ -1717,10 +1717,20 @@ public class GWTWorkspaceBuilder {
if(groupDN==null || groupDN.isEmpty()) if(groupDN==null || groupDN.isEmpty())
groupDN = group.getName(); groupDN = group.getName();
listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), groupDN, true)); if(group.getName()== null || group.getName().isEmpty())
logger.warn("Skipping group with null or empty name "+group);
else{
InfoContactModel contact = new InfoContactModel(group.getName(), group.getName(), groupDN, true);
logger.trace("Adding group "+contact);
listContactsModel.add(contact);
}
}catch (InternalErrorException e) { }catch (InternalErrorException e) {
logger.warn("Dispaly name is not available to group "+group); logger.warn("Dispaly name is not available to group "+group);
logger.warn("Adding get name property "+group.getName()); logger.warn("Adding get name property "+group.getName());
if(group.getName()== null || group.getName().isEmpty())
logger.warn("Skipping group with null or empty name "+group);
else
listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), group.getName(), true)); listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), group.getName(), true));
} }
} }