1 package org.myorg.jpatickets.bl; 2 3 import java.util.List; 4 5 import org.myorg.jpatickets.bo.Event; 6 import org.myorg.jpatickets.bo.Seat; 7 import org.myorg.jpatickets.bo.Ticket; 8 import org.myorg.jpatickets.bo.Venue; 9 10 public interface EventMgmt { 11 Event createEvent(Event event, Venue venue) throws UnavailableException; 12 Event getEvent(int id); 13 List<Seat> findSeats(Event event, String section, Integer row, Integer position, int offset, int limit); 14 List<Ticket> getTickets(Event event, List<Seat> seats); 15 List<Ticket> reserveSeats(Event event, List<Seat> seats) throws UnavailableException; 16 Event fetchEventTickets(int id); 17 Event fetchEventTicketsSeats(int id); 18 }