Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IExportController |
|
| 1.0;1 |
1 | package org.jtheque.films.controllers.able; | |
2 | ||
3 | /* | |
4 | * This file is part of JTheque. | |
5 | * | |
6 | * JTheque is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 3 of the License. | |
9 | * | |
10 | * JTheque is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | import org.jtheque.core.managers.view.able.controller.Controller; | |
20 | import org.jtheque.films.persistence.od.able.Film; | |
21 | import org.jtheque.films.services.impl.utils.search.Searcher; | |
22 | import org.jtheque.films.utils.Constants; | |
23 | import org.jtheque.films.view.able.IExportView; | |
24 | ||
25 | /** | |
26 | * An export controller specification. | |
27 | * | |
28 | * @author Baptiste Wicht | |
29 | */ | |
30 | public interface IExportController extends Controller { | |
31 | /** | |
32 | * Open the export view. | |
33 | * | |
34 | * @param fileType The type of the file we want to export to. | |
35 | */ | |
36 | void openExportView(Constants.Files.FileType fileType); | |
37 | ||
38 | /** | |
39 | * Export data to the file type. | |
40 | * | |
41 | * @param search The search who define the datas we must export. | |
42 | * @param filePath The path to the file. | |
43 | */ | |
44 | void export(Searcher<Film> search, String filePath); | |
45 | ||
46 | /** | |
47 | * Export a film to a file of a specific type. | |
48 | * | |
49 | * @param filePath The path to the film. | |
50 | * @param film The film to export. | |
51 | */ | |
52 | void exportFilm(String filePath, Film film); | |
53 | ||
54 | @Override | |
55 | IExportView getView(); | |
56 | } |