Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IAutoAddController |
|
| 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.services.impl.utils.EditArguments; | |
21 | import org.jtheque.films.services.impl.utils.web.FilmResult; | |
22 | import org.jtheque.films.view.able.IAutoAddView; | |
23 | ||
24 | /** | |
25 | * An auto add controller specification. | |
26 | * | |
27 | * @author Baptiste Wicht | |
28 | */ | |
29 | public interface IAutoAddController extends Controller { | |
30 | /** | |
31 | * Add a new film with the auto add view. | |
32 | */ | |
33 | void add(); | |
34 | ||
35 | /** | |
36 | * Edit a film with the auto add view. | |
37 | */ | |
38 | void edit(); | |
39 | ||
40 | /** | |
41 | * Set the arguments of the edit, it seems the fields we edit or not. | |
42 | * | |
43 | * @param args The arguments of the edit. | |
44 | */ | |
45 | void setFields(EditArguments args); | |
46 | ||
47 | /** | |
48 | * Auto edit the current film. | |
49 | * | |
50 | * @param selectedFilm The film on the site to get informations | |
51 | */ | |
52 | void auto(FilmResult selectedFilm); | |
53 | ||
54 | @Override | |
55 | IAutoAddView getView(); | |
56 | } |