ref 17169: Selection of users in the Sharing panel

https://support.d4science.org/issues/17169

Added users discovery by keyword search 

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@181304 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-07-24 15:53:51 +00:00
parent 05c926a1d6
commit b92962dac6
1 changed files with 18 additions and 3 deletions

View File

@ -463,10 +463,25 @@ public class DialogShareFolder extends Dialog {
public void onClick(ClickEvent event) {
final MultiDragContact multiDrag = new MultiDragContact();
multiDrag.show();
AsyncCallback<List<InfoContactModel>> callback=new AsyncCallback<List<InfoContactModel>>() {
List<InfoContactModel> exclusiveContacts = userStore
.getExclusiveContactsFromAllContact(suggestPanel.getSelectedUser());
multiDrag.addSourceContacts(exclusiveContacts);
@Override
public void onFailure(Throwable caught) {
GWT.log("Error retrieving contacts: "+caught,caught);
}
@Override
public void onSuccess(List<InfoContactModel> result) {
GWT.log("Contact List retrieved: ");
multiDrag.addSourceContacts(result);
}
};
userStore.getExclusiveContactsFromAllContact(suggestPanel.getSelectedUser(),callback);
for (InfoContactModel infoContactModel : suggestPanel.getSelectedUser()) {
// if(!listAlreadyShared.contains(infoContactModel))