Geekrapport
Denna gång kör vi på javaspåret…
//
// Det måste ju göras nån gång, så...
//
protected void generateGeekReport() {
overrideGeekinessAcceptance(GEEKINESS.HIGH);
Person tommy = Person.findByName("Tommy");
Person robert = Person.findByName("Robert");
Collection<Person> salesDepartment = Arrays.asList(robert, tommy);
Collection<Person> cygni = Person.findAll();
salesDepartment.isHappyWith(new Meeting("2010-01-14", MeetingTheme.ROO, MeetingTheme.OPEN_ID));
Collection<Customer> inHouseHackers = new ArrayList(salesDepartment);
Collection<Customer> existingProjects = Arrays.asList(new Customer("Metrojobb"), new Customer("Zenicor"));
timeReportedOn(existingProjects, inHouseHackers, Time.SIGNIFICANT);
Collection<Customer> possibleFutureProjects = Arrays.asList(new Customer("Metro"), new Customer("Gemalto"), new Customer("Soliditet"));
hasRegisteredInterestFor(possibleFutureProjects, salesDepartment);
if (getNowDate().equals("2010-01-18")) {
salesDepartment.add(Person.findByName("Jon"));
}
broadcastMessage(salesDepartment, cygni, StandardGreeting.TREVLIG_HELG);
}