1   package org.wcb.model.service;
2   
3   import org.wcb.model.vo.hibernate.Logbook;
4   import org.wcb.model.vo.hibernate.AircraftTypeBO;
5   import org.wcb.model.vo.hibernate.AircraftBO;
6   import org.wcb.model.vo.hibernate.AirportBO;
7   import org.wcb.exception.ServiceException;
8   
9   import java.util.List;
10  import java.util.Collection;
11  
12  /**
13   * <small>
14   * Copyright (c)  2006  wbogaardt.
15   * Permission is granted to copy, distribute and/or modify this document
16   * under the terms of the GNU Free Documentation License, Version 1.2
17   * or any later version published by the Free Software Foundation;
18   * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
19   * Texts.  A copy of the license is included in the section entitled "GNU
20   * Free Documentation License".
21   * <p/>
22   * $File:  $ <br>
23   * $Change:  $ submitted by $Author: wbogaardt $ at $DateTime: Mar 24, 2006 1:19:38 PM $ <br>
24   * </small>
25   *
26   * @author wbogaardt
27   * @version 1
28   *          Date: Mar 24, 2006
29   *          Time: 1:19:38 PM
30   */
31  public interface ILogbookService {
32  
33      Logbook findLogBookEntry(Integer pkId) throws ServiceException;
34  
35      void saveLogBookEntry(Logbook oEntry) throws ServiceException;
36  
37      void saveLogBookEntry(Collection<Logbook> oSaveEntries) throws ServiceException;
38  
39      void deleteLogBookEntry(Logbook oEntry) throws ServiceException;
40  
41      List<Logbook> getAllLogbookEntries() throws ServiceException;
42  
43      List<Logbook> findByRegistration(String reg) throws ServiceException;
44  
45      AircraftBO getAircraftByRegistration(String regid) throws ServiceException;
46  
47      void saveAircraft(AircraftBO craft) throws ServiceException;
48  
49      void deleteAircraft(AircraftBO craft) throws ServiceException;
50  
51      List<AircraftTypeBO> findAllAircraftType() throws ServiceException;
52  
53      void saveAircraftType(AircraftTypeBO type) throws ServiceException;
54  
55      AircraftTypeBO getAircraftTypeById(Integer id) throws ServiceException;
56  
57      List<AircraftBO> findAllAircraft() throws ServiceException;
58  
59      List<AirportBO> findAllAirport() throws ServiceException;
60  
61      AirportBO findByAirportFaa(String faaCode) throws ServiceException;
62  
63      void saveAirport(AirportBO oSave) throws ServiceException;
64  
65      void saveAirports(Collection<AirportBO> oSave) throws ServiceException;
66  
67      void deleteAirport(AirportBO oAirport) throws ServiceException;
68  }