package dynamic;

import dynamic.common.LoginHandler;
import dynamic.people.dblist.StaffList;
import dynamic.people.dblist.StaffListEntry;

import java.util.ArrayList;
import java.util.HashSet;

/**
 * Created with IntelliJ IDEA.
 * User: John
 * Date: 25/05/12
 * Time: 09:46
 * To change this template use File | Settings | File Templates.
 */
public class PeopleInvestigation {


    public static void main(String[] args) {

        LoginHandler.login();

//        HashSet<String> values = StaffList.getAllDocStaff().getAllValues("Appointment");
//        for (String s: values) {System.out.println(s);}
//
        StaffList sl;
//
//        HashSet<String> values = StaffList.getAllDocStaff().getAllValues("Category");
//                for (String s: values) {System.out.println(s);}

        sl = StaffList.getAllDocStaff();
        for (StaffListEntry sle: sl) System.out.println(sle);
        System.out.println("==========================================================");
        sl = StaffList.getDocStaffSubList("Visitor", "*");
        for (StaffListEntry sle: sl) System.out.println(sle);
        System.out.println("==========================================================");
        sl = StaffList.getDocStaffSubList("*", "Visitor");
        for (StaffListEntry sle: sl) System.out.println(sle);
        System.out.println("==========================================================");
        sl = StaffList.getDocStaffSubList("Professor", "*");
        for (StaffListEntry sle: sl) System.out.println(sle);
        System.out.println("==========================================================");
        sl = StaffList.getDocStaffSubList("*", "Professor");
        for (StaffListEntry sle: sl) System.out.println(sle);
        System.out.println("==========================================================");


    }
}
