Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ISagasService |
|
| 1.0;1 |
1 | package org.jtheque.primary.services.able; | |
2 | ||
3 | import org.jtheque.core.managers.persistence.able.DataContainer; | |
4 | import org.jtheque.primary.od.able.Saga; | |
5 | ||
6 | /* | |
7 | * This file is part of JTheque. | |
8 | * | |
9 | * JTheque is free software: you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License as published by | |
11 | * the Free Software Foundation, either version 3 of the License. | |
12 | * | |
13 | * JTheque is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
20 | */ | |
21 | ||
22 | /** | |
23 | * A sagas service specification. | |
24 | * | |
25 | * @author Baptiste Wicht | |
26 | */ | |
27 | public interface ISagasService extends DataContainer<Saga> { | |
28 | String DATA_TYPE = "Sagas"; | |
29 | ||
30 | /** | |
31 | * Create a saga. | |
32 | * | |
33 | * @param saga The saga to create. | |
34 | */ | |
35 | void create(Saga saga); | |
36 | ||
37 | /** | |
38 | * Save the saga. | |
39 | * | |
40 | * @param saga The saga to save. | |
41 | */ | |
42 | void save(Saga saga); | |
43 | ||
44 | /** | |
45 | * Delete a saga. | |
46 | * | |
47 | * @param saga The saga to delete. | |
48 | * @return true if the saga has been deleted. | |
49 | */ | |
50 | boolean delete(Saga saga); | |
51 | ||
52 | /** | |
53 | * Return an empty saga. | |
54 | * | |
55 | * @return An empty saga. | |
56 | */ | |
57 | Saga getEmptySaga(); | |
58 | } |