public void searchLab(String useremail, String groupname) { // "" in argument means not to search by a ID category // TODO clear and reparse data data.clear(); if (!useremail.equals("")) { data.addAll( cloud.getAllGroupsAssociatedwithUSER( cloud.retrieveUserfromDBviaEmail(useremail).getID())); } if (!groupname.equals("")) { data.addAll(cloud.retrieveGroupDatabyName(groupname)); } }
public void usersLab(String userid) { data.clear(); data.addAll(cloud.getAllGroupsAssociatedwithUSER(userid)); }