예제 #1
0
  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));
    }
  }
예제 #2
0
 public void usersLab(String userid) {
   data.clear();
   data.addAll(cloud.getAllGroupsAssociatedwithUSER(userid));
 }