use of site.model.Visitor in project jprime by bgjug.
the class AdminRegistrantController method getAddVisitorToRegistrantForm.
@RequestMapping(value = "/{itemId}/addVisitor", method = RequestMethod.GET)
public String getAddVisitorToRegistrantForm(@PathVariable("itemId") Long itemId, Model model) {
Visitor visitor = new Visitor();
visitor.setRegistrant(adminFacade.findOneRegistrant(itemId));
model.addAttribute("visitor", visitor);
model.addAttribute("statuses", VisitorStatus.values());
return AdminVisitorController.VISITOR_EDIT_JSP;
}
use of site.model.Visitor in project jprime by bgjug.
the class AdminVisitorController method getEditVisitorForm.
@RequestMapping(value = "/edit/{itemId}", method = RequestMethod.GET)
public String getEditVisitorForm(@PathVariable("itemId") Long itemId, Model model) {
Visitor visitor = adminFacade.findOneVisitor(itemId);
model.addAttribute("statuses", VisitorStatus.values());
model.addAttribute("visitor", visitor);
return VISITOR_EDIT_JSP;
}
use of site.model.Visitor in project jprime by bgjug.
the class TicketsController method handlePersonalRegistrant.
/**
* if registrant info is not filled, copy it from the first visitor
*/
private void handlePersonalRegistrant(Registrant registrant) {
Visitor firstVisitor = registrant.getVisitors().get(0);
registrant.setName(firstVisitor.getName());
registrant.setEmail(firstVisitor.getEmail());
}
Aggregations